X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ab2f258eb5e0f714e4219125e51c118d958bb66d..75d29f0fa7f6c7c590075dd654d8ee70c80ff24a:/include/simgrid/s4u/Storage.hpp diff --git a/include/simgrid/s4u/Storage.hpp b/include/simgrid/s4u/Storage.hpp index 854e0f9ab9..efad7b826d 100644 --- a/include/simgrid/s4u/Storage.hpp +++ b/include/simgrid/s4u/Storage.hpp @@ -28,7 +28,7 @@ public: explicit Storage(surf::StorageImpl * pimpl) : pimpl_(pimpl) {} virtual ~Storage() = default; /** Retrieve a Storage by its name. It must exist in the platform file */ - static Storage* byName(const char* name); + static Storage* byName(std::string name); const char* getName(); const char* getType(); Host* getHost(); @@ -36,9 +36,9 @@ public: sg_size_t getSizeFree(); sg_size_t getSizeUsed(); - xbt_dict_t getProperties(); + std::map* getProperties(); const char* getProperty(const char* key); - void setProperty(const char* key, char* value); + void setProperty(const char* key, const char* value); std::map* getContent(); void setUserdata(void* data) { userdata_ = data; }