Line data Source code
1 : /* 2 : * 3 : * 4 : * Distributed under the OpenDDS License. 5 : * See: http://www.opendds.org/license.html 6 : */ 7 : 8 : OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL 9 : 10 : namespace OpenDDS { 11 : namespace DCPS { 12 : 13 : ACE_INLINE void 14 10 : GuidBuilder::entityId(long entityId) 15 : { 16 10 : entityKey(entityId >> 8); 17 10 : entityKind(static_cast<CORBA::Octet>(0xff & entityId)); 18 10 : } 19 : 20 : ACE_INLINE 21 19 : GuidBuilder::operator GUID_t() 22 : { 23 19 : return guid_; 24 : } 25 : 26 : } // namespace DCPS 27 : } // namespace OpenDDS 28 : 29 : OPENDDS_END_VERSIONED_NAMESPACE_DECL