Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove useless type aliases.
[simgrid.git] / src / instr / instr_paje_values.hpp
index 53626d5..1fbcc48 100644 (file)
@@ -1,4 +1,4 @@
-/* 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. */
@@ -19,13 +19,16 @@ class EntityValue {
   Type* father_;
 
 public:
-  explicit EntityValue(std::string name, std::string color, Type* father);
-  ~EntityValue() = default;
-  const char* get_cname() { return name_.c_str(); }
-  long long int get_id() { return id_; }
-  void print();
+  static xbt::signal<void(const EntityValue&)> on_creation;
+  explicit EntityValue(const std::string& name, const std::string& color, Type* father);
+
+  long long int get_id() const { return id_; }
+  std::string get_name() const { return name_; }
+  const char* get_cname() const { return name_.c_str(); }
+  std::string get_color() const { return color_; }
+  Type* get_father() const { return father_; }
 };
-}
-}
+} // namespace instr
+} // namespace simgrid
 
 #endif