X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/74c1bf2b26c5a3aa0d8c29674dc12993e7c0de15..dc63d290001cd127af79685f3cd811e03eebcece:/src/instr/jedule/jedule_events.cpp diff --git a/src/instr/jedule/jedule_events.cpp b/src/instr/jedule/jedule_events.cpp index 01ca092499..7047f22c36 100644 --- a/src/instr/jedule/jedule_events.cpp +++ b/src/instr/jedule/jedule_events.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2016. The SimGrid Team. +/* Copyright (c) 2010-2018. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -27,18 +27,19 @@ Event::~Event() } } -void Event::addResources(std::vector *host_selection) +void Event::add_resources(std::vector* host_selection) { get_resource_selection_by_hosts(this->resource_subsets, host_selection); } -void Event::addCharacteristic(char *characteristic) +void Event::add_characteristic(char* characteristic) { xbt_assert( characteristic != nullptr ); this->characteristics_list.push_back(characteristic); } -void Event::addInfo(char* key, char *value) { +void Event::add_info(char* key, char* value) +{ xbt_assert((key != nullptr) && value != nullptr); this->info_map.insert({key, value}); } @@ -55,7 +56,7 @@ void Event::print(FILE *jed_file) fprintf(jed_file, " \n"); for (auto const& subset : *this->resource_subsets) { fprintf(jed_file, "