VR-Forces 4.7 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 
52 
53  static void setVrfDISAppIdRange(int iLower, int iUpper);
54  static DtGlobalObjectDesignator nullId()
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 
70 
71 
72 
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 };

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)