- std::map<std::string, Type*> children_;
- std::map<std::string, Value*> values_; // valid for all types except variable and container
-
- Type(std::string name, std::string alias, std::string color, e_entity_types kind, Type* father);
- ~Type();
-
- std::string getName() { return name_; }
- const char* getCname() { return name_.c_str(); }
- const char* getId() { return id_.c_str(); }
- e_entity_types getKind() { return kind_; }
- bool isColored() { return not color_.empty(); }
-
- Type* byName(std::string name);
-
- Type* addEventType(std::string name);
- Type* addLinkType(std::string name, Type* source, Type* dest);
- Type* addStateType(std::string name);
- Type* addVariableType(std::string name, std::string color);
-
- void logContainerTypeDefinition();
- void logVariableTypeDefinition();
- void logStateTypeDefinition();
- void logLinkTypeDefinition(simgrid::instr::Type* source, simgrid::instr::Type* dest);
- void logDefineEventType();
-
- Type* getChildOrNull(std::string name);
- static Type* containerNew(const char* name, Type* father);
-};
-
-//--------------------------------------------------
-class Value {
- std::string name_;
- std::string id_;
- std::string color_;
-
- explicit Value(std::string name, std::string color, Type* father);
-
-public:
- ~Value() = default;
- Type* father_;
- static Value* byNameOrCreate(std::string name, std::string color, Type* father);
- static Value* byName(std::string name, Type* father);