* 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. */
* 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. */
-Jedule::~Jedule() {
- delete this->root_container;
- for (auto evt: this->event_set)
- delete evt;
- this->event_set.clear();
-}
-
-void Jedule::addMetaInfo(char *key, char *value) {
+void Jedule::add_meta_info(char* key, char* value)
+{
-void Jedule::cleanupOutput() {
- for (auto evt: this->event_set)
- delete evt;
- this->event_set.clear();
+void Jedule::add_event(const Event& event)
+{
+ event_set_.emplace_back(event);
fprintf(file, " <prop key=\"%s\" value=\"%s\" />\n",elm.first,elm.second);
fprintf(file, " </jedule_meta>\n");
}
fprintf(file, " <platform>\n");
fprintf(file, " <prop key=\"%s\" value=\"%s\" />\n",elm.first,elm.second);
fprintf(file, " </jedule_meta>\n");
}
fprintf(file, " <platform>\n");
fprintf(file, " </platform>\n");
fprintf(file, " <events>\n");
fprintf(file, " </platform>\n");
fprintf(file, " <events>\n");
fprintf(file, " </events>\n");
fprintf(file, "</jedule>\n");
}
}
fprintf(file, " </events>\n");
fprintf(file, "</jedule>\n");
}
}