VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfExtObjects
vrfObjectIdGenerator.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/globalObjectDesignator.h>
10
#include <
vrfExtObjects/vrfExtObjectsDefines.h
>
11
18
19
class
DT_DLL_vrfExtObjects
DtVrfObjectIdGenerator
20
{
21
public
:
22
DtVrfObjectIdGenerator
();
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
:
76
DtVrfObjectIdGenerator
(
const
DtVrfObjectIdGenerator
&);
77
DtVrfObjectIdGenerator
& operator=(
const
DtVrfObjectIdGenerator
&);
78
79
protected
:
80
static
DtVrfObjectIdGenerator
*
theDefaultObjectIdGenerator
;
81
static
int
theDisAppIdLower
;
82
static
int
theDisAppIdUpper
;
83
};
84
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)