VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
patchIdentifier.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include "netStructs.h"
13 
19 {
20 public:
21 
25 
28  DtPatchIdentifier( const char* stringRep );
29 
31  DtPatchIdentifier( unsigned short country, unsigned char service, unsigned short patch );
32 
34  DtPatchIdentifier( const DtPatchIdentifier& orig );
35 
39 
41  virtual ~DtPatchIdentifier();
42 
45  void setFromNet( const DtNetPatchIdentifier& netId );
46 
48  operator DtNetPatchIdentifier () const;
49 
51  const char* string() const;
52 
53  void setCountry( unsigned short val );
54  unsigned short country() const;
55 
56  void setService( unsigned char val );
57  unsigned char service() const;
58 
59  void setPatch( unsigned short val );
60  unsigned short patch() const;
61 
62  bool operator == ( const DtPatchIdentifier& type ) const;
63  bool operator != ( const DtPatchIdentifier& type ) const;
64 
67  bool operator < ( const DtPatchIdentifier& type ) const;
68 
69 public:
70 
72  static const DtPatchIdentifier& nullIdentifier();
73 
74 protected:
75 
80  mutable std::string myMutableStringRep;
81 
82  unsigned short myCountryCode;
83  unsigned char myServiceCode;
84  unsigned short myPatchId;
85 
86 };
87 
88 DT_DLL_VLPROTIND std::ostream& operator << ( std::ostream& stream, const DtPatchIdentifier& patchId );
const bool operator==(const DtU128 &lhs, const DtU128 &rhs)
unsigned char myServiceCode
Definition: patchIdentifier.h:83
unsigned short myPatchId
Definition: patchIdentifier.h:84
std::ostream & operator<<(std::ostream &os, const Dt3dChord &chord)
unsigned short myCountryCode
Definition: patchIdentifier.h:82
std::string myMutableStringRep
This member is: 1) mutable because it is changed in const methods and used as a char buffer 2) it SHO...
Definition: patchIdentifier.h:80
DtPatchIdentifier is used to uniquely identify a uniform patch.
Definition: patchIdentifier.h:18
Definition: netStructs.h:157
#define DT_DLL_VLPROTIND
Definition: vlMachineTypes.h:110
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)

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)