X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a9361ff5f9057e93ed0bbdfac0eab6e5ba8aeab8..e04e3ae8fec7cb28eef7705e4aebf2370e6fdd6a:/include/simgrid/jedule/jedule.hpp diff --git a/include/simgrid/jedule/jedule.hpp b/include/simgrid/jedule/jedule.hpp index 8d7fd7bee8..007c97097c 100644 --- a/include/simgrid/jedule/jedule.hpp +++ b/include/simgrid/jedule/jedule.hpp @@ -1,46 +1,35 @@ -/* Copyright (c) 2010-2012, 2014-2016. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2010-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. */ #ifndef JEDULE_HPP_ #define JEDULE_HPP_ -#include -#include "simgrid_config.h" -#include "jedule_events.hpp" -#include "jedule_platform.hpp" +#include +#include -#if HAVE_JEDULE - -XBT_ATTRIB_UNUSED static std::unordered_map host2_simgrid_parent_container; -XBT_ATTRIB_UNUSED static std::unordered_map container_name2container; +#include namespace simgrid { namespace jedule{ - -XBT_PUBLIC_CLASS Jedule { +class XBT_PUBLIC Jedule { public: - Jedule()=default; - ~Jedule(); - std::vector event_set; - Container* root_container = nullptr; - std::unordered_map meta_info; - void addMetaInfo(char* key, char* value); - void cleanupOutput(); - void writeOutput(FILE *file); + explicit Jedule(const std::string& name) : root_container_(name) {} + std::vector event_set_; + Container root_container_; + void add_meta_info(char* key, char* value); + void cleanup_output(); + void write_output(FILE* file); + +private: + std::unordered_map meta_info_; }; } } -SG_BEGIN_DECL() - typedef simgrid::jedule::Jedule *jedule_t; -SG_END_DECL() -#endif - #endif /* JEDULE_HPP_ */