#include "surf_private.h"
#include "xbt/file.h" /* xbt_getline */
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_storage, surf,
- "Logging specific to the SURF storage module");
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_storage, surf, "Logging specific to the SURF storage module");
xbt_lib_t file_lib;
xbt_lib_t storage_lib;
* Model *
*********/
-StorageModel::StorageModel()
- : Model()
+StorageModel::StorageModel(): Model()
{
- p_storageList = nullptr;
}
StorageModel::~StorageModel(){
lmm_system_free(maxminSystem_);
surf_storage_model = nullptr;
- xbt_dynar_free(&p_storageList);
}
/************
, p_contentType(xbt_strdup(content_type))
, m_size(size), m_usedSize(0)
, p_typeId(xbt_strdup(type_id))
- , p_writeActions(xbt_dynar_new(sizeof(Action*),nullptr))
+ , p_writeActions(std::vector<StorageAction*>())
{
p_content = parseContent(content_name);
turnOn();
, p_contentType(xbt_strdup(content_type))
, m_size(size), m_usedSize(0)
, p_typeId(xbt_strdup(type_id))
- , p_writeActions(xbt_dynar_new(sizeof(Action*),nullptr))
+ , p_writeActions(std::vector<StorageAction*>())
{
p_content = parseContent(content_name);
p_attach = xbt_strdup(attach);
Storage::~Storage(){
storageDestructedCallbacks(this);
xbt_dict_free(&p_content);
- xbt_dynar_free(&p_writeActions);
free(p_typeId);
free(p_contentType);
free(p_attach);