-/* 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. */
class XBT_PUBLIC Jedule {
public:
- Jedule()=default;
- ~Jedule();
- std::vector<Event *> event_set;
- Container* root_container = nullptr;
- std::unordered_map<char*, char*> 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> 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<char*, char*> meta_info_;
};
}