Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simplify the way free and used space are accessed
[simgrid.git] / src / surf / storage_interface.hpp
index d0e7df6..9db89ae 100644 (file)
@@ -233,6 +233,21 @@ public:
    */
   virtual sg_size_t getSize();
 
+  /**
+   * @brief Get the available size in bytes of the current Storage
+   *
+   * @return The available size in bytes of the current Storage
+   */
+  virtual sg_size_t getFreeSize();
+
+  /**
+   * @brief Get the used size in bytes of the current Storage
+   *
+   * @return The used size in bytes of the current Storage
+   */
+  virtual sg_size_t getUsedSize();
+
+
   xbt_dict_t parseContent(char *filename);
 
   xbt_dynar_t p_writeActions;
@@ -262,11 +277,6 @@ typedef enum {
  */
 class StorageAction : public Action {
 public:
-  /**
-   * @brief StorageAction constructor
-   */
-  StorageAction() : m_type(READ) {};//FIXME:REMOVE
-
   /**
    * @brief StorageAction constructor
    *
@@ -298,6 +308,7 @@ public:
   StoragePtr p_storage;
   surf_file_t p_file;
   xbt_dict_t p_lsDict;
+  double progress;
 };
 
 typedef struct s_storage_type {