X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ddc2e5141b85593da4b84cc214674e68c6b49e27..7c77c6877f59b1fa95da6d76e1bdbf6e0ac5ddef:/src/surf/storage_interface.hpp diff --git a/src/surf/storage_interface.hpp b/src/surf/storage_interface.hpp index e2b39efafc..555de3ef8f 100644 --- a/src/surf/storage_interface.hpp +++ b/src/surf/storage_interface.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2004-2015. The SimGrid Team. +/* Copyright (c) 2004-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -7,8 +7,9 @@ #include #include -#include "surf_interface.hpp" #include "src/surf/PropertyHolder.hpp" +#include "surf_interface.hpp" +#include #ifndef STORAGE_INTERFACE_HPP_ #define STORAGE_INTERFACE_HPP_ @@ -20,8 +21,6 @@ namespace surf { * Classes * ***********/ -class StorageModel; -class Storage; class StorageAction; /************* @@ -101,7 +100,7 @@ public: void turnOn() override; void turnOff() override; - xbt_dict_t content_; + std::map* content_; char* contentType_; sg_size_t size_; sg_size_t usedSize_; @@ -149,14 +148,7 @@ public: * * @return A xbt_dict_t with path as keys and size in bytes as values */ - virtual xbt_dict_t getContent(); - - /** - * @brief Get the size in bytes of the current Storage - * - * @return The size in bytes of the current Storage - */ - virtual sg_size_t getSize(); + virtual std::map* getContent(); /** * @brief Get the available size in bytes of the current Storage @@ -172,8 +164,7 @@ public: */ virtual sg_size_t getUsedSize(); - - xbt_dict_t parseContent(const char *filename); + std::map* parseContent(const char* filename); std::vector writeActions_; @@ -243,14 +234,16 @@ typedef struct s_storage_type { char *content_type; char *type_id; xbt_dict_t properties; - xbt_dict_t model_properties; + std::map* model_properties; sg_size_t size; -} s_storage_type_t, *storage_type_t; +} s_storage_type_t; +typedef s_storage_type_t* storage_type_t; typedef struct s_mount { void *storage; char *name; -} s_mount_t, *mount_t; +} s_mount_t; +typedef s_mount_t* mount_t; typedef struct surf_file { char *name;