X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2807fde4fd1f59c230d69a934634c5dfb77905f2..ea2d0086fb4b575694258781bfc102d2202543c6:/include/simgrid/jedule/jedule.hpp diff --git a/include/simgrid/jedule/jedule.hpp b/include/simgrid/jedule/jedule.hpp index eb25b52fbe..8e2d80405c 100644 --- a/include/simgrid/jedule/jedule.hpp +++ b/include/simgrid/jedule/jedule.hpp @@ -1,41 +1,44 @@ -/* Copyright (c) 2010-2012, 2014-2017. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2010-2018. 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 "simgrid_config.h" -#include -#include "jedule_events.hpp" -#include "jedule_platform.hpp" +#include +#include -#if SIMGRID_HAVE_JEDULE +#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); + std::vector event_set_; + Container* root_container_ = nullptr; + void add_meta_info(char* key, char* value); + 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); } + +private: + std::unordered_map meta_info_; }; } } -extern "C" { typedef simgrid::jedule::Jedule *jedule_t; -} -#endif #endif /* JEDULE_HPP_ */