VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfExtObjects
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
12
#include <
vrfExtObjects/dllExport.h
>
13
#include <vl/globalObjectDesignator.h>
14
#include <vl/exerciseConn.h>
15
22
class
DT_DLL_vrfExtObjects
DtVrfObjectIdGenerator
23
{
24
public
:
25
26
DtVrfObjectIdGenerator
();
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
84
DtVrfObjectIdGenerator
(
const
DtVrfObjectIdGenerator
&);
85
DtVrfObjectIdGenerator
& operator=(
const
DtVrfObjectIdGenerator
&);
86
87
protected
:
88
89
static
DtVrfObjectIdGenerator
*
theDefaultObjectIdGenerator
;
90
static
int
theDisAppIdLower
;
91
static
int
theDisAppIdUpper
;
92
93
};
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)