X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d656f9465e7b1c36319f86eeafdcec58fe9551a4..b6407261ff7738ea4bd6cb7f3a620bc82931f9b1:/include/simgrid/jedule/jedule_events.hpp diff --git a/include/simgrid/jedule/jedule_events.hpp b/include/simgrid/jedule/jedule_events.hpp index 704d4f6d22..5ab0f8f108 100644 --- a/include/simgrid/jedule/jedule_events.hpp +++ b/include/simgrid/jedule/jedule_events.hpp @@ -1,5 +1,4 @@ -/* 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. */ @@ -7,43 +6,41 @@ #ifndef JEDULE_EVENTS_H_ #define JEDULE_EVENTS_H_ -#include "simgrid_config.h" -#include "simgrid/forward.h" +#include + +#include +#include + #include #include #include -#include "jedule_platform.hpp" - #if SIMGRID_HAVE_JEDULE namespace simgrid { namespace jedule{ -XBT_PUBLIC_CLASS 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); - - 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 */ +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); + +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 */ }; } } -extern "C" { -typedef simgrid::jedule::Event * jed_event_t; -} - +typedef simgrid::jedule::Event* jed_event_t; #endif #endif /* JEDULE_EVENTS_H_ */