X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dc63d290001cd127af79685f3cd811e03eebcece..e9994d33a883aa73468e38d54cf377f52b3fd950:/include/simgrid/jedule/jedule.hpp diff --git a/include/simgrid/jedule/jedule.hpp b/include/simgrid/jedule/jedule.hpp index 1a1e859d3a..55b84eba46 100644 --- a/include/simgrid/jedule/jedule.hpp +++ b/include/simgrid/jedule/jedule.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. */ @@ -8,6 +8,7 @@ #include #include +#include #include @@ -15,27 +16,23 @@ namespace simgrid { namespace jedule{ class XBT_PUBLIC Jedule { + std::unordered_map meta_info_; + std::vector event_set_; + Container root_container_; + public: - Jedule()=default; - ~Jedule(); - std::vector event_set; - Container* root_container = nullptr; - std::unordered_map meta_info; + explicit Jedule(const std::string& name) : root_container_(name) + { + root_container_.create_hierarchy(s4u::Engine::get_instance()->get_netzone_root()); + } void add_meta_info(char* key, char* value); + void add_event(const Event& event); void cleanup_output(); void write_output(FILE* file); - - // deprecated - XBT_ATTRIB_DEPRECATED_v323("Please use Jedule::add_meta_info()") void addMetaInfo(char* key, char* value) - { - add_meta_info(key, value); - } - XBT_ATTRIB_DEPRECATED_v323("Please use Jedule::cleanup_output()") void cleanupOutput() { cleanup_output(); } - XBT_ATTRIB_DEPRECATED_v323("Please use Jedule::write_output()") void writeOutput(FILE* file) { write_output(file); } }; -} -} +} // namespace jedule +} // namespace simgrid typedef simgrid::jedule::Jedule *jedule_t;