X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f368403c7b31807751cbc287deeb4d92e90070cd..a493dab29fff80a4d222c18c3057c811b8b06d3f:/src/instr/instr_paje_values.hpp diff --git a/src/instr/instr_paje_values.hpp b/src/instr/instr_paje_values.hpp index ee9d3f992f..ce7dcc3289 100644 --- a/src/instr/instr_paje_values.hpp +++ b/src/instr/instr_paje_values.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2022. 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. */ @@ -18,8 +18,10 @@ class EntityValue { std::string color_; Type* parent_; -public: static xbt::signal on_creation; + +public: + static void on_creation_cb(const std::function& cb) { on_creation.connect(cb); } explicit EntityValue(const std::string& name, const std::string& color, Type* parent); long long int get_id() const { return id_; }