1 #ifndef MHO_ClassIdentity_HH__
2 #define MHO_ClassIdentity_HH__
36 template<
typename XClassType >
static std::string
ClassName() {
return MHO_ClassName< XClassType >(); };
45 template<
typename XClassType >
static std::string
ClassName(
const XClassType&)
47 return MHO_ClassName< XClassType >();
59 std::string name = ClassName< XClassType >();
72 std::string name = ClassName< XClassType >();
102 <<
", version: " <<
version <<
" is not recognized." << eom);
#define msg_error(xKEY, xCONTENT)
Definition: MHO_Message.hh:244
Class MHO_MD5HashGenerator declares the concrete class which does the work for file streams.
Definition: MHO_MD5HashGenerator.hh:135
void Finalize()
Finalizes the MD5 hash calculation and stores the result in fDigest.
Definition: MHO_MD5HashGenerator.hh:156
MHO_UUID GetDigestAsUUID()
Getter for digest as uuid.
Definition: MHO_MD5HashGenerator.hh:182
void Initialize()
Recursive function to initialize a game state.
Definition: MHO_MD5HashGenerator.hh:144
Class MHO_UUID - a class for a 16 byte UUID (for object and type identification)
Definition: MHO_UUID.hh:27
const char version[]
Definition: difx2mark4.c:37
Definition: MHO_ChannelLabeler.hh:17
uint32_t MHO_ClassVersion
Definition: MHO_ClassIdentity.hh:22
Class MHO_ClassIdentity.
Definition: MHO_ClassIdentity.hh:28
static MHO_UUID GetUUIDFromClass()
Returns the class name as a string.
Definition: MHO_ClassIdentity.hh:57
static std::string ClassName(const XClassType &)
Returns the class name as a string.
Definition: MHO_ClassIdentity.hh:45
static MHO_UUID GetUUIDFromClassName(std::string name)
Generates a UUID from the class name.
Definition: MHO_ClassIdentity.hh:82
static MHO_UUID GetUUIDFromClass(const XClassType &)
Returns the UUID associated with a class type.
Definition: MHO_ClassIdentity.hh:70
static void ClassVersionErrorMsg(const XClassType &obj, MHO_ClassVersion version)
Generates an error message for when an unknown or unsupported class version is encountered.
Definition: MHO_ClassIdentity.hh:99
static std::string ClassName()
Returns the class name as a string.
Definition: MHO_ClassIdentity.hh:36