OpenDDS  Snapshot(2023/04/28-20:55)
GuidBuilder.h
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 #ifndef OPENDDS_DCPS_GUIDBUILDER_H
9 #define OPENDDS_DCPS_GUIDBUILDER_H
10 
11 #include "dds/DdsDcpsGuidC.h"
12 
13 #include "GuidUtils.h"
14 
15 #include "dcps_export.h"
16 
18 
19 namespace OpenDDS {
20 namespace DCPS {
21 
23 public:
24  GuidBuilder();
25  explicit GuidBuilder(GUID_t& guid);
26 
27  ~GuidBuilder();
28 
29  static GUID_t create();
30 
31  void guidPrefix0(long p0);
32  void guidPrefix1(long p1);
33  void guidPrefix2(long p2);
34 
35  void entityId(EntityId_t entityId);
36  void entityId(long entityId);
37 
38  void entityKey(long entityKey);
39 
40  void entityKind(CORBA::Octet entityKind);
41  void entityKind(EntityKind kind, bool makeBuiltin);
42 
43  operator GUID_t();
44 
45 private:
48 };
49 
50 } // namespace DCPS
51 } // namespace OpenDDS
52 
54 
55 #ifdef __ACE_INLINE__
56 # include "GuidBuilder.inl"
57 #endif /* __ACE_INLINE__ */
58 
59 #endif /* DCPS_GUIDBUILDER_H */
#define OpenDDS_Dcps_Export
Definition: dcps_export.h:24
ACE_CDR::Octet Octet
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28