25 #ifndef __DOTS_ENTITY_ID_H__
26 #define __DOTS_ENTITY_ID_H__
58 : m_typeId(typeId),m_instanceId(instanceId) {}
108 return m_typeId == other.m_typeId && m_instanceId == other.m_instanceId;
119 return !(*
this==other);
131 if (m_typeId == other.m_typeId)
133 return m_instanceId < other.m_instanceId;
137 return m_typeId < other.m_typeId;
175 {
return out << entityId.
ToString();}
Class containing the identity of an entity.
Definition: EntityId.h:41
DOTS_CPP_API const std::wstring ToStringNumeric() const
Convert an entity id to a string that has only numeric parts.
void SetInstanceId(const Dob::Typesystem::InstanceId &instanceId)
Set the instance number of the EntityId.
Definition: EntityId.h:84
Class containing the identity of an instance.
Definition: InstanceId.h:47
DOTS_CPP_API const std::wstring ToString() const
Convert an entity id to a string.
void RemoveString()
Remove the included string from the instance id.
Definition: InstanceId.h:116
DotsC_TypeId TypeId
A unique type identifier.
Definition: Defs.h:219
const Dob::Typesystem::InstanceId & GetInstanceId() const
Get the Instance number out of the EntityId.
Definition: EntityId.h:77
EntityId()
Default constructor.
Definition: EntityId.h:47
Dob::Typesystem::TypeId GetTypeId() const
Get the type id out of the EntityId.
Definition: EntityId.h:91
bool operator==(const EntityId &other) const
Equality operator.
Definition: EntityId.h:106
void SetTypeId(const Dob::Typesystem::TypeId typeId)
Set the type id of the EntityId.
Definition: EntityId.h:98
bool operator<(const EntityId &other) const
Less-than operator.
Definition: EntityId.h:129
bool operator!=(const EntityId &other) const
Inequality operator.
Definition: EntityId.h:117
EntityId(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::InstanceId instanceId)
Constructor with type id and instance arguments.
Definition: EntityId.h:56
static std::wostream & operator<<(std::wostream &out, const ChannelId &channelId)
Definition: ChannelId.h:223
void RemoveString()
Remove the included string from the instance id of the entity id.
Definition: EntityId.h:69
#define DOTS_CPP_API
Definition: Defs.h:33