![]() |
VR-Forces 5.0.1 Developer's Guide
|
This class will, in DIS or HLA, generate the unique id necessary to pass into the object publisher to describe the id of that object. When creating a published object, it is important to use this class to generate the id that can be used as a valid object identifier for VR-Forces. This class is used internally by the VR-Forces object publishers when assigning new object ids.
Public Member Functions | |
| DtVrfObjectIdGenerator () | |
| virtual | ~DtVrfObjectIdGenerator () |
| virtual DtGlobalObjectDesignator | nextId (DtExerciseConn *, DtEntityIdentifier &) |
Static Public Member Functions | |
| static DtVrfObjectIdGenerator * | objectIdGenerator () |
| static void | setObjectIdGenerator (DtVrfObjectIdGenerator *) |
| static bool | isVrfGlobalId (const DtGlobalObjectDesignator &identifier) |
| static void | setVrfDISAppIdRange (int iLower, int iUpper) |
| static DtGlobalObjectDesignator | nullId () |
Static Protected Attributes | |
| static DtVrfObjectIdGenerator * | theDefaultObjectIdGenerator |
| static int | theDisAppIdLower |
| static int | theDisAppIdUpper |
Private Member Functions | |
| DtVrfObjectIdGenerator (const DtVrfObjectIdGenerator &) | |
| DtVrfObjectIdGenerator & | operator= (const DtVrfObjectIdGenerator &) |
| DtVrfObjectIdGenerator::DtVrfObjectIdGenerator | ( | ) |
|
virtual |
|
private |
|
virtual |
Override this method to return your next id. In DIS this will return the next id of the exercise connection/ In HLA, it will be VRF prepended onto an HLA object id.
Returns the next available object identifier that is used when creating an object to be published on the network. Note that in DIS, the entity identifier and the global object designator returned are the same value. In HLA these values are different
|
static |
Returns the global factory that is used when generating new object identifiers for VR-Forces. If no generator is set, then, uses a default generator of this class type.
|
static |
|
static |
Returns true if given global object Id is a VR-Forces encoded global Id and false if it is not.
Sets the DIS app id range to use when determining if something is published by VRF or not Currently this range is 3000 - 4000.
|
inlinestatic |
|
private |
|
staticprotected |
|
staticprotected |
|
staticprotected |