Go to the documentation of this file.
31 for (
int i = 0; i < T::UNKNOWN; i++)
35 if (i != T::UNKNOWN-1) s += std::string(
"|");
44 std::vector<std::string> l;
45 for (
int i = 0; i < T::UNKNOWN; i++)
46 l.push_back(T::TypeNames[i]);
69 if (t == T::UNKNOWN)
return "unknown";
70 else return T::TypeNames[t];
77 for (
int i = 0; i < T::UNKNOWN; i++)
79 if (s == T::TypeNames[i])
return typename T::Type(i);
81 if (s ==
"unknown")
return T::UNKNOWN;
std::string defaultTypeName()
Returns the default type name.
T::Type typeFromName(std::string s)
Returns the type whose name is s.
#define NUKLEI_ASSERT(expression)
Throws an Error if expression is not true.
std::vector< std::string > listTypeNames()
Fills a std::vector with all type names.
std::string nameFromType(int t)
Returns the name of type t.
std::string catTypeNames()
Cats all type names into a string.
T::Type defaultType()
Returns the default type.
#define NUKLEI_THROW(x)
Throws an Error.