VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vlUuid.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2022 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vlutil/vlMachineTypes.h>
13 #include <vlutil/vlString.h>
14 
15 #ifdef DtUSE_UTILITIES_NAMESPACE
16 namespace DtUSE_UTILITIES_NAMESPACE
17 {
18 #endif
19 
27 
29 {
30 public:
32  DtVrlUuid();
33 
35  ~DtVrlUuid();
36 
38  DtVrlUuid(const DtVrlUuid& orig);
39 
41  DtVrlUuid& operator=(const DtVrlUuid& orig);
42 
44  bool operator==(const DtVrlUuid& other) const;
45  bool operator!=(const DtVrlUuid& other) const;
46  bool operator<(const DtVrlUuid& other) const;
47 
49  virtual void generateUniqueId();
50 
52  virtual void print();
53 
55  virtual const char* data() const;
56 
58  virtual void setData(const char* data);
59 
61  virtual void setDataString(const DtString& data);
62 
64  virtual void getString(DtString& string) const;
65 
66 public:
67 
69  static const DtVrlUuid& nullUuid();
70 
71  static int octetBoundary();
72 
73  virtual void printData() const;
74 
75  virtual void printDataToStream(std::ostream&) const;
76 
77 protected:
78  char myUuid[16];
79 
80 public:
81  static const int UUID_SIZE = 16;
82 
83 };
84 
85 DT_DLL_VLUTIL std::ostream& operator<<(std::ostream& stream, const DtVrlUuid&);
86 
87 #ifdef DtUSE_UTILITIES_NAMESPACE
88 }
89 #endif
const bool operator==(const DtU128 &lhs, const DtU128 &rhs)
Contains the DtString class declaration.
std::ostream & operator<<(std::ostream &os, const Dt3dChord &chord)
A Universally Unique Identifier DtVrlUuid stores a 16byte encoded UUID string.
Definition: vlUuid.h:28
bool operator<(const DtTimeReflectedObjectIdKey &left, const DtTimeReflectedObjectIdKey &right)
Compare 2 time ID keys.
Definition: reflectedObjectListHLA.h:548
const bool operator!=(const DtU128 &lhs, const DtU128 &rhs)
Instances of DtString are used to represent strings.
Definition: vlString.h:29
This file contains typedefs for machine dependant types.
#define DT_DLL_VLUTIL
Definition: vlMachineTypes.h:109

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)