-class ess_type {
- public:
- char *id;
- char *name;
- char *color;
-};
-
-class Type;
-typedef Type *type_t;
-class Type : public ess_type {
- public:
- e_entity_types kind;
- Type *father;
- xbt_dict_t children;
- xbt_dict_t values; //valid for all types except variable and container
- Type (const char *typeNameBuff, const char *key, const char *color, e_entity_types kind, type_t father);
- static type_t getOrNull (const char *name, type_t father);
- static type_t containerNew (const char *name, type_t father);
- static type_t eventNew (const char *name, type_t father);
- static type_t variableNew (const char *name, const char *color, type_t father);
- static type_t linkNew (const char *name, type_t father, type_t source, type_t dest);
- static type_t stateNew (const char *name, type_t father);
+class Type {
+public:
+ char* id_;
+ char* name_;
+ char* color_;
+
+ e_entity_types kind_;
+ Type* father_;
+ xbt_dict_t children_;
+ xbt_dict_t values_; // valid for all types except variable and container
+ Type(const char* typeNameBuff, const char* key, const char* color, e_entity_types kind, Type* father);
+ ~Type();
+ static Type* getOrNull(const char* name, Type* father);
+ static Type* containerNew(const char* name, Type* father);
+ static Type* eventNew(const char* name, Type* father);
+ static Type* variableNew(const char* name, const char* color, Type* father);
+ static Type* linkNew(const char* name, Type* father, Type* source, Type* dest);
+ static Type* stateNew(const char* name, Type* father);