X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6847a26d9973030337f6ef9f18464b1f04ce7452..7cee0f64a84b4459068dc23ff23e491a3e3b288b:/teshsuite/s4u/storage_client_server/storage_client_server.cpp diff --git a/teshsuite/s4u/storage_client_server/storage_client_server.cpp b/teshsuite/s4u/storage_client_server/storage_client_server.cpp index 4a876018ae..2cdf4b71b9 100644 --- a/teshsuite/s4u/storage_client_server/storage_client_server.cpp +++ b/teshsuite/s4u/storage_client_server/storage_client_server.cpp @@ -60,7 +60,7 @@ static void hsm_put(const std::string& remote_host, const std::string& src, cons static void display_storage_content(simgrid::s4u::Storage* storage) { XBT_INFO("Print the content of the storage element: %s", storage->get_cname()); - std::map* content = storage->extension()->getContent(); + std::map* content = storage->extension()->get_content(); if (not content->empty()) { for (auto const& entry : *content) XBT_INFO("\t%s size: %llu bytes", entry.first.c_str(), entry.second); @@ -91,7 +91,7 @@ static void get_set_storage_data(const std::string& storage_name) static void dump_platform_storages() { - std::vector storages = simgrid::s4u::Engine::getInstance()->getAllStorages(); + std::vector storages = simgrid::s4u::Engine::get_instance()->get_all_storages(); for (auto const& s : storages) { XBT_INFO("Storage %s is attached to %s", s->get_cname(), s->getHost()->get_cname()); @@ -157,13 +157,13 @@ int main(int argc, char* argv[]) simgrid::s4u::Engine e(&argc, argv); sg_storage_file_system_init(); xbt_assert(argc == 2, "Usage: %s platform_file\n", argv[0]); - e.loadPlatform(argv[1]); + e.load_platform(argv[1]); simgrid::s4u::Actor::create("server", simgrid::s4u::Host::by_name("alice"), server); simgrid::s4u::Actor::create("client", simgrid::s4u::Host::by_name("bob"), client); e.run(); - XBT_INFO("Simulated time: %g", e.getClock()); + XBT_INFO("Simulated time: %g", e.get_clock()); return 0; }