VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfObjectIdGenerator.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2017 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vl/globalObjectDesignator.h>
14 #include <vl/exerciseConn.h>
15 
23 {
24 public:
25 
27  virtual ~DtVrfObjectIdGenerator();
28 
29 public:
30 
33 
37  virtual DtGlobalObjectDesignator nextId(DtExerciseConn*, DtEntityIdentifier&);
38 
39 public:
40 
43  static DtVrfObjectIdGenerator* objectIdGenerator();
44  static void setObjectIdGenerator(DtVrfObjectIdGenerator*);
45 
48  static bool isVrfGlobalId(const DtGlobalObjectDesignator& identifier);
49 
50 #if DtDIS
51  static void setVrfDISAppIdRange(int iLower, int iUpper);
55  {
56  return DtGlobalObjectDesignator::nullId();
57  }
58 #else
59  static DtGlobalObjectDesignator nullId()
60  {
61  return DtGlobalObjectDesignator::nullString();
62  }
63 
64 #endif
65 
66 protected:
67 
68 #ifdef DtHLA
69 
75  virtual bool encodeIdentifier(DtGlobalObjectDesignator& identifier,
76  RTI::FederateHandle federateHandle, int entityNum) const;
77 
79  virtual int nextNameId();
80 #endif
81 
82 private:
83 
86 
87 protected:
88 
90  static int theDisAppIdLower;
91  static int theDisAppIdUpper;
92 
93 };
static DtGlobalObjectDesignator nullId()
Definition: vrfObjectIdGenerator.h:54
This class will, in DIS or HLA, generate the unique id necessary to pass into the object publisher to...
Definition: vrfObjectIdGenerator.h:22
static DtVrfObjectIdGenerator * theDefaultObjectIdGenerator
Definition: vrfObjectIdGenerator.h:89
static int theDisAppIdLower
Definition: vrfObjectIdGenerator.h:90
static int theDisAppIdUpper
Definition: vrfObjectIdGenerator.h:91
#define DT_DLL_vrfExtObjects
Definition: dllExport.h:23

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)