Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Strange that this include line is only missing on appveyor.
[simgrid.git] / src / s4u / s4u_storage.cpp
index 0507ac3..6dd8fe9 100644 (file)
@@ -30,7 +30,12 @@ Storage* Storage::byName(std::string name)
   return &res->piface_;
 }
 
-const char* Storage::getName()
+const std::string& Storage::getName() const
+{
+  return pimpl_->getName();
+}
+
+const char* Storage::getCname() const
 {
   return pimpl_->getCname();
 }
@@ -65,12 +70,12 @@ std::map<std::string, std::string>* Storage::getProperties()
   return simgrid::simix::kernelImmediate([this] { return pimpl_->getProperties(); });
 }
 
-const char* Storage::getProperty(const char* key)
+const char* Storage::getProperty(std::string key)
 {
   return this->pimpl_->getProperty(key);
 }
 
-void Storage::setProperty(const char* key, const char* value)
+void Storage::setProperty(std::string key, std::string value)
 {
   simgrid::simix::kernelImmediate([this, key, value] { this->pimpl_->setProperty(key, value); });
 }