X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/07e23d67fa051a2507972338c09151e69c1ad2d4..8c416e92254512408c1d0ce729e8d3cf82ec9938:/examples/s4u/io-file-system/s4u-io-file-system.cpp?ds=sidebyside diff --git a/examples/s4u/io-file-system/s4u-io-file-system.cpp b/examples/s4u/io-file-system/s4u-io-file-system.cpp index 832d267821..6f0f84b4fe 100644 --- a/examples/s4u/io-file-system/s4u-io-file-system.cpp +++ b/examples/s4u/io-file-system/s4u-io-file-system.cpp @@ -15,14 +15,14 @@ class MyHost { public: void show_info(std::unordered_map const& mounts) { - XBT_INFO("Storage info on %s:", simgrid::s4u::Host::current()->getCname()); + XBT_INFO("Storage info on %s:", simgrid::s4u::Host::current()->get_cname()); for (auto const& kv : mounts) { std::string mountpoint = kv.first; simgrid::s4u::Storage* storage = kv.second; // Retrieve disk's information - XBT_INFO(" %s (%s) Used: %llu; Free: %llu; Total: %llu.", storage->getCname(), mountpoint.c_str(), + XBT_INFO(" %s (%s) Used: %llu; Free: %llu; Total: %llu.", storage->get_cname(), mountpoint.c_str(), sg_storage_get_size_used(storage), sg_storage_get_size_free(storage), sg_storage_get_size(storage)); } } @@ -71,7 +71,7 @@ public: delete file; // Now attach some user data to disk1 - XBT_INFO("Get/set data for storage element: %s", storage->getCname()); + XBT_INFO("Get/set data for storage element: %s", storage->get_cname()); XBT_INFO(" Uninitialized storage data: '%s'", static_cast(storage->getUserdata())); storage->setUserdata(new std::string("Some user data")); @@ -94,8 +94,8 @@ int main(int argc, char** argv) { simgrid::s4u::Engine e(&argc, argv); sg_storage_file_system_init(); - e.loadPlatform(argv[1]); - simgrid::s4u::Actor::createActor("host", simgrid::s4u::Host::by_name("denise"), MyHost()); + e.load_platform(argv[1]); + simgrid::s4u::Actor::create("host", simgrid::s4u::Host::by_name("denise"), MyHost()); e.run(); return 0;