Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add a name() to all F2C objects.
[simgrid.git] / src / smpi / include / smpi_file.hpp
index 1d73605..dc95b2c 100644 (file)
@@ -42,6 +42,8 @@ class File : public F2C{
   int get_position_shared(MPI_Offset* offset) const;
   int flags() const;
   MPI_Comm comm() const;
+  std::string name() const {return file_ ? std::string("MPI_File:" + file_->get_path()): std::string("MPI_File");}
+
   int sync();
   int seek(MPI_Offset offset, int whence);
   int seek_shared(MPI_Offset offset, int whence);