VR-Vantage API Documentation
vrfObjIdGen.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 #include <vl/exerciseConn.h>
9 #include <vl/globalObjDes.h>
11 
18 
20 {
21 public:
23  virtual ~DtVrfObjectIdGenerator();
24 
25 public:
28 
32  virtual DtGlobalObjectDesignator nextId(DtExerciseConn*, DtEntityIdentifier&);
33 
34 public:
37  static DtVrfObjectIdGenerator* objectIdGenerator();
38  static void setObjectIdGenerator(DtVrfObjectIdGenerator*);
39 
42  static bool isVrfGlobalId(const DtGlobalObjectDesignator& identifier);
43 
44 #if DtDIS
45 
46 
47  static void setVrfDISAppIdRange(int iLower, int iUpper);
48  static DtGlobalObjectDesignator nullId()
49  {
50  return DtGlobalObjectDesignator::nullId();
51  }
52 #else
53  static DtGlobalObjectDesignator nullId()
54  {
55  return DtGlobalObjectDesignator::nullString();
56  }
57 
58 #endif
59 
60 protected:
61 #ifdef DtHLA
62 
63 
64 
65 
68  virtual bool encodeIdentifier(DtGlobalObjectDesignator& identifier,
69  RTI::FederateHandle federateHandle, int entityNum) const;
70 
72  virtual int nextNameId();
73 #endif
74 
75 private:
78 
79 protected:
81  static int theDisAppIdLower;
82  static int theDisAppIdUpper;
83 };
84 


Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)