Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Restructure surf++ cpu and network
[simgrid.git] / src / surf / workstation.hpp
index 8ce487e..f70781b 100644 (file)
@@ -1,7 +1,7 @@
 #include "surf.hpp"
 #include "storage.hpp"
-#include "cpu.hpp"
-#include "network.hpp"
+#include "cpu_interface.hpp"
+#include "network_interface.hpp"
 
 #ifndef WORKSTATION_HPP_
 #define WORKSTATION_HPP_
@@ -90,15 +90,17 @@ public:
   ActionPtr read(surf_file_t fd, sg_size_t size);
   ActionPtr write(surf_file_t fd, sg_size_t size);
   xbt_dynar_t getInfo( surf_file_t fd);
+  sg_size_t fileTell(surf_file_t fd);
   sg_size_t getFreeSize(const char* name);
   sg_size_t getUsedSize(const char* name);
+  int fileSeek(surf_file_t fd, sg_size_t offset, int origin);
 
   bool isUsed();
   //bool isShared();
   xbt_dynar_t p_storage;
   RoutingEdgePtr p_netElm;
   CpuPtr p_cpu;
-  NetworkCm02LinkPtr p_network;
+  NetworkLinkPtr p_network;
 
   xbt_dynar_t getVms();