Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
another move to FileImpl
[simgrid.git] / src / surf / FileImpl.hpp
index 938a1b5..98cb343 100644 (file)
@@ -7,6 +7,9 @@
 #ifndef SRC_SURF_FILEIMPL_HPP_
 #define SRC_SURF_FILEIMPL_HPP_
 
+#include "surf/surf.h"
+#include <string>
+
 namespace simgrid {
 namespace surf {
 
@@ -23,11 +26,15 @@ public:
   void setPosition(sg_size_t size) { current_position_ = size; }
   void incrPosition(sg_size_t incr) { current_position_ += incr; }
   sg_size_t tell() { return current_position_; }
+  int seek(sg_offset_t offset, int origin);
+  int unlink(sg_host_t host);
+  void move(sg_host_t host, const char* fullpath);
+
 private:
   std::string path_;
   std::string mount_point_;
   sg_size_t size_;
-  sg_size_t current_position_ = 0;
+  sg_size_t current_position_ = SEEK_SET;
 };
 }
 }