X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a92d7b716f51a53dea7f59db8524d4add713b910..274ff3a104711075a837ddc6e677e713b3348354:/src/surf/StorageImpl.hpp?ds=sidebyside diff --git a/src/surf/StorageImpl.hpp b/src/surf/StorageImpl.hpp index b02503e94e..9b1af7f869 100644 --- a/src/surf/StorageImpl.hpp +++ b/src/surf/StorageImpl.hpp @@ -7,6 +7,7 @@ #include #include +#include "simgrid/s4u/Storage.hpp" #include "src/surf/PropertyHolder.hpp" #include "surf_interface.hpp" #include @@ -86,7 +87,12 @@ public: StorageImpl(Model* model, const char* name, lmm_system_t maxminSystem, double bread, double bwrite, const char* type_id, const char* content_name, sg_size_t size, const char* attach); - ~StorageImpl(); + ~StorageImpl() override; + +public: + /** @brief Public interface */ + s4u::Storage piface_; + static StorageImpl* byName(const char* name); /** @brief Check if the Storage is used (if an action currently uses its resources) */ bool isUsed() override; @@ -160,7 +166,8 @@ public: virtual sg_size_t getUsedSize(); std::map* parseContent(const char* filename); - + static std::unordered_map* storages; + static std::unordered_map* storagesMap() { return StorageImpl::storages; } std::vector writeActions_; lmm_constraint_t constraintWrite_; /* Constraint for maximum write bandwidth*/