25 #ifndef __DOTS_ENTITY_ID_H__
26 #define __DOTS_ENTITY_ID_H__
28 #include <boost/functional/hash.hpp>
59 : m_typeId(typeId),m_instanceId(instanceId) {}
109 return m_typeId == other.m_typeId && m_instanceId == other.m_instanceId;
120 return !(*
this==other);
132 if (m_typeId == other.m_typeId)
134 return m_instanceId < other.m_instanceId;
138 return m_typeId < other.m_typeId;
176 {
return out << entityId.
ToString();}
bool operator!=(const EntityId &other) const
Inequality operator.
Definition: EntityId.h:118
Class containing the identity of an entity.
Definition: EntityId.h:42
DotsC_TypeId TypeId
A unique type identifier.
Definition: Defs.h:218
This namespace contains all the functionality and definitions of the SAFIR SDK.
Definition: Backdoor.h:30
Class containing the identity of an instance.
Definition: InstanceId.h:48
EntityId(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::InstanceId instanceId)
Constructor with type id and instance arguments.
Definition: EntityId.h:57
EntityId()
Default constructor.
Definition: EntityId.h:48
void SetTypeId(const Dob::Typesystem::TypeId typeId)
Set the type id of the EntityId.
Definition: EntityId.h:99
#define DOTS_CPP_API
Definition: Defs.h:33
void RemoveString()
Remove the included string from the instance id.
Definition: InstanceId.h:117
std::size_t hash_value(const Safir::Dob::Typesystem::ChannelId &val)
Definition: ChannelId.h:228
UnderlyingType GetRawValue() const
Get the raw 64 bit integer identifier.
Definition: InstanceId.h:174
void RemoveString()
Remove the included string from the instance id of the entity id.
Definition: EntityId.h:70
static std::wostream & operator<<(std::wostream &out, const ChannelId &channelId)
Definition: ChannelId.h:224
bool operator==(const EntityId &other) const
Equality operator.
Definition: EntityId.h:107
DOTS_CPP_API const std::wstring ToString() const
Convert an entity id to a string.
Dob::Typesystem::TypeId GetTypeId() const
Get the type id out of the EntityId.
Definition: EntityId.h:92
void SetInstanceId(const Dob::Typesystem::InstanceId &instanceId)
Set the instance number of the EntityId.
Definition: EntityId.h:85
DOTS_CPP_API const std::wstring ToStringNumeric() const
Convert an entity id to a string that has only numeric parts.
const Dob::Typesystem::InstanceId & GetInstanceId() const
Get the Instance number out of the EntityId.
Definition: EntityId.h:78
bool operator<(const EntityId &other) const
Less-than operator.
Definition: EntityId.h:130
std::size_t hash_value(const Safir::Dob::Typesystem::EntityId &eid)
Definition: EntityId.h:179