X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dc9b8feaddd53842f6204f4f24409b2382393fa9..d8232f0af88b82c158f0451e3b41ef9ec85ced02:/include/simgrid/jedule/jedule_events.hpp diff --git a/include/simgrid/jedule/jedule_events.hpp b/include/simgrid/jedule/jedule_events.hpp index 3e96e66646..5af7f4e576 100644 --- a/include/simgrid/jedule/jedule_events.hpp +++ b/include/simgrid/jedule/jedule_events.hpp @@ -19,38 +19,23 @@ namespace jedule{ class XBT_PUBLIC Event { public: - Event(const std::string& name, double start_time, double end_time, const std::string& type); - Event(const Event&) = delete; - Event& operator=(const Event&) = delete; - ~Event(); - void add_characteristic(char* characteristic); - void add_resources(std::vector* host_selection); - void add_info(char* key, char* value); - void print(FILE* file); - - // deprecated - XBT_ATTRIB_DEPRECATED_v323("Please use Event::add_characteristic()") void addCharacteristic(char* characteristic) - { - add_characteristic(characteristic); - } - XBT_ATTRIB_DEPRECATED_v323("Please use Event::add_resources()") void addResources( - std::vector* host_selection) + Event(const std::string& name, double start_time, double end_time, const std::string& type) + : name_(name), start_time_(start_time), end_time_(end_time), type_(type) { - add_resources(host_selection); - } - XBT_ATTRIB_DEPRECATED_v323("Please use Event::add_info()") void addInfo(char* key, char* value) - { - add_info(key, value); } + void add_characteristic(char* characteristic); + void add_resources(const std::vector& host_selection); + void add_info(char* key, char* value); + void print(FILE* file) const; private: std::string name_; double start_time_; double end_time_; std::string type_; - std::vector* resource_subsets_; - std::vector characteristics_list_; /* just a list of names */ - std::unordered_map info_map_; /* key/value pairs */ + std::vector resource_subsets_; + std::vector characteristics_list_; /* just a list of names */ + std::unordered_map info_map_; /* key/value pairs */ }; } }