19#ifndef FASTDDS_RTPS_COMMON__GUID_HPP
20#define FASTDDS_RTPS_COMMON__GUID_HPP
22#include <fastdds/fastdds_dll.hpp>
23#include <fastdds/rtps/common/Types.hpp>
24#include <fastdds/rtps/common/GuidPrefix_t.hpp>
25#include <fastdds/rtps/common/EntityId_t.hpp>
61 : guidPrefix(guid_prefix)
73 : guidPrefix(guid_prefix)
88 const GUID_t& other_guid)
const
113 const GUID_t& other_guid)
const
135 return entityId.
value[3] >= 0xC0;
150#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC
201 else if (prefix_cmp > 0)
215#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC
224 std::ostream& output,
233 output <<
"|GUID UNKNOWN|";
248 std::istream::sentry s(input);
252 std::ios_base::iostate excp_mask = input.exceptions();
256 input.exceptions(excp_mask | std::ios_base::failbit | std::ios_base::badbit);
263 input.setstate(std::ios_base::failbit);
266 catch (std::ios_base::failure&)
272 input.exceptions(excp_mask);
eprosima::fastdds::rtps::InstanceHandle_t InstanceHandle_t
Definition InstanceHandle.hpp:31
std::istream & operator>>(std::istream &input, EntityId_t &enP)
Definition EntityId_t.hpp:289
bool operator==(const BuiltinTransportsOptions &bto1, const BuiltinTransportsOptions &bto2)
Equal to operator.
Definition BuiltinTransports.hpp:79
std::ostream & operator<<(std::ostream &output, BuiltinTransports transports)
Definition BuiltinTransports.hpp:117
bool operator!=(const EntityId_t &id1, const EntityId_t &id2)
Guid prefix comparison operator.
Definition EntityId_t.hpp:267
bool operator<(const GUID_t &g1, const GUID_t &g2)
Definition Guid.hpp:192
const GUID_t c_Guid_Unknown
Definition Guid.hpp:213
Structure EntityId_t, entity id part of GUID_t.
Definition EntityId_t.hpp:77
octet value[size]
Definition EntityId_t.hpp:79
Structure GUID_t, entity identifier, unique in DDS-RTPS Domain.
Definition Guid.hpp:40
bool is_from_this_host() const
Checks whether this guid is from a (Fast-DDS) entity created on this host (from where this method is ...
Definition Guid.hpp:98
bool is_from_this_process() const
Checks whether this guid is from a (Fast-DDS) entity created on this process (from where this method ...
Definition Guid.hpp:123
GUID_t(const GuidPrefix_t &guid_prefix, const EntityId_t &entity_id) noexcept
Definition Guid.hpp:70
GUID_t(const GuidPrefix_t &guid_prefix, uint32_t id) noexcept
Construct.
Definition Guid.hpp:58
EntityId_t entityId
Entity id.
Definition Guid.hpp:44
static GUID_t unknown() noexcept
Definition Guid.hpp:138
bool is_builtin() const
Checks whether this guid corresponds to a builtin entity.
Definition Guid.hpp:133
bool is_on_same_process_as(const GUID_t &other_guid) const
Checks whether this guid is for an entity on the same host and process as another guid.
Definition Guid.hpp:112
bool is_on_same_host_as(const GUID_t &other_guid) const
Checks whether this guid is from an entity on the same host as another guid.
Definition Guid.hpp:87
GUID_t() noexcept
Default constructor.
Definition Guid.hpp:49
GuidPrefix_t guidPrefix
Guid prefix.
Definition Guid.hpp:42
Structure GuidPrefix_t, Guid Prefix of GUID_t.
Definition GuidPrefix_t.hpp:37
bool is_from_this_host() const
Checks whether this guid prefix is from a (Fast-DDS) entity created on this host (from where this met...
bool is_from_this_process() const
Checks whether this guid prefix is from a (Fast-DDS) entity created on this host and process (from wh...
static int cmp(const GuidPrefix_t &prefix1, const GuidPrefix_t &prefix2)
Guid Prefix compare static method.
Definition GuidPrefix_t.hpp:135
bool is_on_same_host_as(const GuidPrefix_t &other_guid_prefix) const
Checks whether this guid prefix is from an entity on the same host as another guid prefix.
bool is_on_same_process_as(const GuidPrefix_t &other_guid_prefix) const
Checks whether this guid prefix is for an entity on the same host and process as another guid prefix.
Struct InstanceHandle_t, used to contain the key for WITH_KEY topics.
Definition InstanceHandle.hpp:154