/* 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. */
- Container(const std::string& name, const std::string& type_name, Container* father);
+ static xbt::signal<void(Container const&)> on_creation;
+ static xbt::signal<void(Container const&)> on_destruction;
+
+ explicit Container(const std::string& name, const std::string& type_name, Container* father);
Type* type_; /* Type of this container */
Container* father_;
std::map<std::string, Container*> children_;
Type* type_; /* Type of this container */
Container* father_;
std::map<std::string, Container*> children_;
static Container* by_name_or_null(const std::string& name);
static Container* by_name(const std::string& name);
const std::string& get_name() const { return name_; }
static Container* by_name_or_null(const std::string& name);
static Container* by_name(const std::string& name);
const std::string& get_name() const { return name_; }
StateType* get_state(const std::string& name);
LinkType* get_link(const std::string& name);
VariableType* get_variable(const std::string& name);
void create_child(const std::string& name, const std::string& type_name);
StateType* get_state(const std::string& name);
LinkType* get_link(const std::string& name);
VariableType* get_variable(const std::string& name);
void create_child(const std::string& name, const std::string& type_name);