X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/435eac9875f286908c7ead8f6b50fd9bb23690b8..8c753c341f0c7f6d5ea38c4cb7bf7da6f0ef0a1b:/src/surf/StorageImpl.hpp?ds=sidebyside diff --git a/src/surf/StorageImpl.hpp b/src/surf/StorageImpl.hpp index 6d47c15022..e3c508acd3 100644 --- a/src/surf/StorageImpl.hpp +++ b/src/surf/StorageImpl.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2004-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2004-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -6,9 +6,10 @@ #include "simgrid/kernel/resource/Action.hpp" #include "simgrid/kernel/resource/Model.hpp" #include "simgrid/kernel/resource/Resource.hpp" +#include "simgrid/s4u/Io.hpp" #include "simgrid/s4u/Storage.hpp" +#include "src/kernel/resource/profile/trace_mgr.hpp" #include "src/surf/PropertyHolder.hpp" -#include "src/surf/trace_mgr.hpp" #include "surf_interface.hpp" #include @@ -27,11 +28,6 @@ class StorageAction; /** @ingroup SURF_storage_interface * @brief The possible type of action for the storage component */ -enum e_surf_action_storage_type_t { - READ = 0, /**< Read a file */ - WRITE /**< Write in a file */ -}; - /************* * Callbacks * *************/ @@ -55,6 +51,8 @@ simgrid::xbt::signal* properties, std::unordered_map* model_properties, sg_size_t size) - : id(id), model(model), content(content), properties(properties), model_properties(model_properties), size(size) + : id(std::move(id)) + , model(std::move(model)) + , content(std::move(content)) + , properties(properties) + , model_properties(model_properties) + , size(size) { } };