X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/364eee0fc6ab77fddc5437ac273527bd27711724..f733ac8e268fb0f6a8afbd44e889ac7e27d16047:/include/simgrid/s4u/Storage.hpp diff --git a/include/simgrid/s4u/Storage.hpp b/include/simgrid/s4u/Storage.hpp index f28f936188..c009740e9d 100644 --- a/include/simgrid/s4u/Storage.hpp +++ b/include/simgrid/s4u/Storage.hpp @@ -38,15 +38,18 @@ public: sg_size_t getSize(); /** Retrieve the total amount of space of this storage element */ sg_size_t getSizeFree(); sg_size_t getSizeUsed(); + void decrUsedSize(sg_size_t size); std::map* getProperties(); - const char* getProperty(const char* key); - void setProperty(const char* key, const char* value); + const char* getProperty(std::string key); + void setProperty(std::string, std::string value); std::map* getContent(); void setUserdata(void* data) { userdata_ = data; } void* getUserdata() { return userdata_; } + sg_size_t read(sg_size_t size); + sg_size_t write(sg_size_t size); surf::StorageImpl* getImpl() { return pimpl_; } /* The signals */