X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6f5244f66ccb7d30d43a57d3a2a54710b204c6e9..84402e8e2ee2a2d0bef25fdceb0a263ed8b471f6:/include/simgrid/jedule/jedule_events.hpp diff --git a/include/simgrid/jedule/jedule_events.hpp b/include/simgrid/jedule/jedule_events.hpp index 71bced756d..e7987cb486 100644 --- a/include/simgrid/jedule/jedule_events.hpp +++ b/include/simgrid/jedule/jedule_events.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2020. 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. */ @@ -19,21 +19,23 @@ namespace jedule{ class XBT_PUBLIC Event { public: - Event(std::string name, double start_time, double end_time, std::string type); - ~Event(); - void addCharacteristic(char* characteristic); - void addResources(std::vector* host_selection); - void addInfo(char* key, char* value); - void print(FILE* file); + 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) + { + } + void add_characteristic(const 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 (strings) */ - std::unordered_map info_map; /* key/value pairs */ + 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 */ }; } }