* Classes *
***********/
-class StorageModel;
-class Storage;
class StorageAction;
/*************
public simgrid::surf::PropertyHolder {
public:
- /**
- * @brief Storage constructor
- *
- * @param model StorageModel associated to this Storage
- * @param name The name of the Storage
- * @param props Dictionary of properties associated to this Storage
- */
+ /** @brief Storage constructor */
Storage(Model* model, const char* name, lmm_system_t maxminSystem, double bread, double bwrite, double bconnection,
const char* type_id, const char* content_name, const char* content_type, sg_size_t size, const char* attach);
/** @brief Check if the Storage is used (if an action currently uses its resources) */
bool isUsed() override;
- void apply_event(tmgr_trace_iterator_t event, double value) override;
+ void apply_event(tmgr_trace_event_t event, double value) override;
void turnOn() override;
void turnOff() override;
*
* @return A xbt_dict_t with path as keys and size in bytes as values
*/
- virtual xbt_dict_t getContent();
+ virtual std::map<std::string, sg_size_t*>* getContent();
/**
* @brief Get the available size in bytes of the current Storage
char *content_type;
char *type_id;
xbt_dict_t properties;
- xbt_dict_t model_properties;
+ std::map<std::string, std::string>* 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;