X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a8175c21a299a621a7cba1803830ae2034369d9b..f9e6853d2c5b7b867211700bc12f0ee57f640b30:/src/surf/storage_interface.hpp diff --git a/src/surf/storage_interface.hpp b/src/surf/storage_interface.hpp index b014d25f8e..c63d044a69 100644 --- a/src/surf/storage_interface.hpp +++ b/src/surf/storage_interface.hpp @@ -85,10 +85,15 @@ public: * @param content_name [description] * @param content_type [description] * @param properties [description] + * @param attach [description] * @return The created Storage */ - virtual StoragePtr createResource(const char* id, const char* type_id, - const char* content_name, const char* content_type, xbt_dict_t properties)=0; + virtual StoragePtr createResource(const char* id, + const char* type_id, + const char* content_name, + const char* content_type, + xbt_dict_t properties, + const char *attach) = 0; xbt_dynar_t p_storageList; }; @@ -131,12 +136,13 @@ public: * @param content_name [description] * @param content_type [description] * @param size [description] + * @param attach [description] */ Storage(ModelPtr model, const char *name, xbt_dict_t props, lmm_system_t maxminSystem, double bread, double bwrite, double bconnection, const char* type_id, char *content_name, char *content_type, - sg_size_t size); + sg_size_t size, char *attach); /** * @brief Storage destructor @@ -166,6 +172,7 @@ public: sg_size_t m_size; sg_size_t m_usedSize; char * p_typeId; + char* p_attach; /** * @brief Open a file @@ -212,14 +219,6 @@ public: */ virtual StorageActionPtr write(surf_file_t fd, sg_size_t size)=0; - /** - * @brief Rename a path - * - * @param src The old path - * @param dest The new path - */ - virtual void rename(const char *src, const char *dest)=0; - /** * @brief Get the content of the current Storage * @@ -307,6 +306,7 @@ typedef struct s_storage_type { char *content_type; char *type_id; xbt_dict_t properties; + xbt_dict_t model_properties; sg_size_t size; } s_storage_type_t, *storage_type_t;