- XBT_DEBUG("ContainerType %s(%lld), child of %s(%lld)", get_cname(), get_id(), father->get_cname(), father->get_id());
- log_definition(PAJE_DefineContainerType);
-}
-
-EventType::EventType(std::string name, Type* father) : ValueType(name, father)
-{
- XBT_DEBUG("EventType %s(%lld), child of %s(%lld)", get_cname(), get_id(), father->get_cname(), father->get_id());
- log_definition(PAJE_DefineEventType);
-}
-
-StateType::StateType(std::string name, Type* father) : ValueType(name, father)
-{
- XBT_DEBUG("StateType %s(%lld), child of %s(%lld)", get_cname(), get_id(), father->get_cname(), father->get_id());
- log_definition(PAJE_DefineStateType);
-}
+ if (name_.empty() || alias.empty())
+ throw TracingError(XBT_THROW_POINT, "can't create a new type with no name or alias");