X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5a5f54e7f74566a2418d243e7885e737c2312a36..b9d2f7277242a82702b73e4ccdf63aec98855b5e:/include/simgrid/s4u/Storage.hpp diff --git a/include/simgrid/s4u/Storage.hpp b/include/simgrid/s4u/Storage.hpp index b8d328ef7c..571c3b1d92 100644 --- a/include/simgrid/s4u/Storage.hpp +++ b/include/simgrid/s4u/Storage.hpp @@ -7,6 +7,7 @@ #ifndef INCLUDE_SIMGRID_S4U_STORAGE_HPP_ #define INCLUDE_SIMGRID_S4U_STORAGE_HPP_ +#include "xbt/Extendable.hpp" #include #include #include @@ -15,11 +16,14 @@ #include namespace simgrid { +namespace xbt { +extern template class XBT_PUBLIC() Extendable; +} namespace s4u { -XBT_ATTRIB_PUBLIC std::map* allStorages(); +XBT_ATTRIB_PUBLIC void getStorageList(std::map* whereTo); -XBT_PUBLIC_CLASS Storage +XBT_PUBLIC_CLASS Storage : public simgrid::xbt::Extendable { friend s4u::Engine; friend simgrid::surf::StorageImpl; @@ -35,18 +39,16 @@ public: const char* getCname() const; const char* getType(); Host* getHost(); - sg_size_t getSize(); /** Retrieve the total amount of space of this storage element */ - sg_size_t getSizeFree(); - sg_size_t getSizeUsed(); std::map* getProperties(); 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 */