Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
snake_casing file system plugin
[simgrid.git] / examples / s4u / io-file-remote / s4u-io-file-remote.cpp
index e7d1ee1..6cbd818 100644 (file)
@@ -14,7 +14,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(remote_io, "Messages specific for this io example")
 static int host(int argc, char* argv[])
 {
   simgrid::s4u::File file(argv[1], nullptr);
-  const char* filename = file.getPath();
+  const char* filename = file.get_path();
   XBT_INFO("Opened file '%s'", filename);
   file.dump();
 
@@ -27,7 +27,7 @@ static int host(int argc, char* argv[])
 
   if (argc > 5) {
     simgrid::s4u::File remoteFile(argv[2], nullptr);
-    filename = remoteFile.getPath();
+    filename = remoteFile.get_path();
     XBT_INFO("Opened file '%s'", filename);
     XBT_INFO("Try to write %llu MiB to '%s'", remoteFile.size() / 1024, filename);
     sg_size_t write = remoteFile.write(remoteFile.size() * 1024);
@@ -36,11 +36,11 @@ static int host(int argc, char* argv[])
     if (std::stoi(argv[5]) != 0) {
       XBT_INFO("Move '%s' (of size %llu) from '%s' to '%s'", filename, remoteFile.size(),
                simgrid::s4u::Host::current()->get_cname(), argv[3]);
-      remoteFile.remoteMove(simgrid::s4u::Host::by_name(argv[3]), argv[4]);
+      remoteFile.remote_move(simgrid::s4u::Host::by_name(argv[3]), argv[4]);
     } else {
       XBT_INFO("Copy '%s' (of size %llu) from '%s' to '%s'", filename, remoteFile.size(),
                simgrid::s4u::Host::current()->get_cname(), argv[3]);
-      remoteFile.remoteCopy(simgrid::s4u::Host::by_name(argv[3]), argv[4]);
+      remoteFile.remote_copy(simgrid::s4u::Host::by_name(argv[3]), argv[4]);
     }
   }
 
@@ -54,7 +54,7 @@ int main(int argc, char** argv)
   e.load_platform(argv[1]);
   e.register_function("host", host);
   e.load_deployment(argv[2]);
-  std::vector<simgrid::s4u::Storage*> allStorages = e.getAllStorages();
+  std::vector<simgrid::s4u::Storage*> allStorages = e.get_all_storages();
 
   for (auto const& s : allStorages) {
     XBT_INFO("Init: %llu/%llu MiB used/free on '%s'", sg_storage_get_size_used(s) / INMEGA,
@@ -68,6 +68,6 @@ int main(int argc, char** argv)
              sg_storage_get_size_free(s) / INMEGA, s->get_cname());
   }
 
-  XBT_INFO("Simulation time %g", simgrid::s4u::Engine::getClock());
+  XBT_INFO("Simulation time %g", simgrid::s4u::Engine::get_clock());
   return 0;
 }