VR-Forces 4.7 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
examples
addFomClass
addFomClassSim
altEntityDec.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2018 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
6
#if DtHLA
7
8
#pragma once
9
10
#include "
altEntityDec.h
"
11
#include <vl/hlaStateDecoder.h>
12
#include <vlpi/entityIdentifier.h>
13
14
class
DtExtEntityStateRepository
;
15
16
// We define a macro that can be helpful in defining the class, and the
17
// individual decoding functions.
18
19
#define DtDECLARE_MY_ATTR_DECODER(attrName) \
20
DtDECLARE_ATTR_DECODER(DtExtEntityStateRepository, attrName)
21
22
class
AlternateEntityDecoder
:
public
DtHlaStateDecoder
23
{
24
public
:
25
26
// default constructor
27
AlternateEntityDecoder
(DtExerciseConn* exConn, DtObjClassDesc* classDesc);
28
29
// destructor
30
virtual
~AlternateEntityDecoder
();
31
32
protected
:
33
34
// Individual attribute decoding functions - one for each attribute.
35
// These macros expand to look like this:
36
// static void decodeName(DtEntityStateRepository* stateRep,
37
// const RTI::AttributeHandleValuePairSet& attrs, int pairSetIndex)
38
DtDECLARE_MY_ATTR_DECODER
(Name);
39
DtDECLARE_MY_ATTR_DECODER
(AlternateEntityType);
40
DtDECLARE_MY_ATTR_DECODER
(Latitude);
41
DtDECLARE_MY_ATTR_DECODER
(Longitude);
42
DtDECLARE_MY_ATTR_DECODER
(Altitude);
43
44
static
DtEntityIdentifier
theNextEntityId
;
45
};
46
47
#endif
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
)