VR-Forces Developer's Guide
 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 
67 
70  virtual bool encodeIdentifier(DtGlobalObjectDesignator& identifier,
71  RTI::FederateHandle federateHandle, int entityNum) const;
72 
74  virtual int nextNameId();
75 #endif
76 
77 private:
78 
81 
82 protected:
83 
85  static int theDisAppIdLower;
86  static int theDisAppIdUpper;
87 
88 };
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:84
static int theDisAppIdLower
Definition: vrfObjectIdGenerator.h:85
static int theDisAppIdUpper
Definition: vrfObjectIdGenerator.h:86
#define DT_DLL_vrfExtObjects
Definition: dllExport.h:23

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)