X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c97cae03adbd2e3159e5e909b050183dbcf49d60..8db87bde70b28b9c6fcf5be4d924f6c3a141c715:/src/s4u/s4u_storage.cpp?ds=sidebyside diff --git a/src/s4u/s4u_storage.cpp b/src/s4u/s4u_storage.cpp index fae9e32aba..7f52311364 100644 --- a/src/s4u/s4u_storage.cpp +++ b/src/s4u/s4u_storage.cpp @@ -39,19 +39,34 @@ Storage &Storage::byName(const char*name) { return *res; } -const char*Storage::name() { +const char* Storage::name() +{ return name_.c_str(); } -sg_size_t Storage::sizeFree() { +sg_size_t Storage::sizeFree() +{ return simcall_storage_get_free_size(pimpl_); } -sg_size_t Storage::sizeUsed() { + +sg_size_t Storage::sizeUsed() +{ return simcall_storage_get_used_size(pimpl_); } + sg_size_t Storage::size() { return size_; } +xbt_dict_t Storage::properties() +{ + return simcall_storage_get_properties(pimpl_); +} + +xbt_dict_t Storage::content() +{ + return simcall_storage_get_content(pimpl_); +} + } /* namespace s4u */ } /* namespace simgrid */