X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ecd5f7562caf1d443bf22788fa5f4fac408776ec..e99273780a983ac4a6fafbfbe91e7fdfb954d35c:/include/simgrid/s4u/File.hpp diff --git a/include/simgrid/s4u/File.hpp b/include/simgrid/s4u/File.hpp index e821cc196f..2bdd632b79 100644 --- a/include/simgrid/s4u/File.hpp +++ b/include/simgrid/s4u/File.hpp @@ -80,12 +80,14 @@ public: ~FileSystemStorageExt(); std::map* parseContent(std::string filename); std::map* getContent() { return content_; } + sg_size_t getSize() { return size_; } sg_size_t getUsedSize() { return usedSize_; } void decrUsedSize(sg_size_t size) { usedSize_ -= size; } void incrUsedSize(sg_size_t size) { usedSize_ += size; } private: std::map* content_; sg_size_t usedSize_ = 0; + sg_size_t size_ = 0; }; } } // namespace simgrid::s4u