Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make s4u::File extendable
[simgrid.git] / examples / s4u / io-file-system / s4u-io-file-system.cpp
index 4c91e69..6a74e1b 100644 (file)
@@ -56,8 +56,8 @@ public:
     file->move(newpath);
 
     // Test attaching some user data to the file
-    file->set_userdata(new std::string("777"));
-    std::string* file_data = static_cast<std::string*>(file->get_userdata());
+    file->set_data(new std::string("777"));
+    std::string* file_data = static_cast<std::string*>(file->get_data());
     XBT_INFO("User data attached to the file: %s", file_data->c_str());
     delete file_data;