/* 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. */
/* 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. */
- explicit EntityValue(const std::string& name, const std::string& color, Type* father);
+
+public:
+ static void on_creation_cb(const std::function<void(const EntityValue&)>& 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_; }
std::string get_name() const { return name_; }
const char* get_cname() const { return name_.c_str(); }
std::string get_color() const { return color_; }
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_; }