OpenDDS  Snapshot(2023/04/28-20:55)
RepoIdConverter.cpp
Go to the documentation of this file.
1 /*
2  *
3  *
4  * Distributed under the OpenDDS License.
5  * See: http://www.opendds.org/license.html
6  */
7 
8 #include "DCPS/DdsDcps_pch.h" //Only the _pch include should start with DCPS/
9 
10 #include "RepoIdConverter.h"
11 
13 
14 namespace OpenDDS {
15 namespace DCPS {
16 
18  : GuidConverter(repoId)
19 {}
20 
22 {}
23 
26 {
27  return guid_.guidPrefix[4] << 24 |
28  guid_.guidPrefix[5] << 16 |
29  guid_.guidPrefix[6] << 8 |
30  guid_.guidPrefix[7];
31 }
32 
35 {
36  return guid_.guidPrefix[ 8] << 24 |
37  guid_.guidPrefix[ 9] << 16 |
38  guid_.guidPrefix[10] << 8 |
39  guid_.guidPrefix[11];
40 }
41 
42 } // namespace DCPS
43 } // namespace OpenDDS
44 
ParticipantId participantId() const
Get the participant id from the GUID.
key GuidPrefix_t guidPrefix
Definition: DdsDcpsGuid.idl:58
OpenDDS::Federator::RepoKey federationId() const
Get the federeation id from the GUID.
Conversion processing and value testing utilities for RTPS GUID_t types.
Definition: GuidConverter.h:62
RepoIdConverter(const GUID_t &repoId)
::CORBA::Long ParticipantId
::CORBA::Long RepoKey
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28