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
altEntityEnc.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2018 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
#if DtHLA
6
7
#pragma once
8
9
#include "
altEntityEnc.h
"
10
#include <vl/hlaStateEncoder.h>
11
12
class
DtExtEntityStateRepository
;
13
14
// We define macros that can be helpful in defining the class, and the
15
// individual encoding and checking functions.
16
17
#define DtDECLARE_MY_ATTR_CHECKER(attrName) \
18
DtDECLARE_ATTR_CHECKER(DtExtEntityStateRepository, attrName)
19
20
#define DtDECLARE_MY_ATTR_ENCODER(attrName) \
21
DtDECLARE_ATTR_ENCODER(DtExtEntityStateRepository, attrName)
22
23
const
unsigned
AlternateEntityMaxAttributeSize
= 256;
24
25
class
AlternateEntityEncoder
:
public
DtHlaStateEncoder
26
{
27
public
:
28
29
// default constructor
30
AlternateEntityEncoder
(DtExerciseConn* exConn, DtObjClassDesc* classDesc);
31
32
// destructor
33
virtual
~AlternateEntityEncoder
();
34
35
protected
:
36
37
// Individual attribute encoding functions - one for each attribute.
38
// This macro expands to look like this:
39
// static void encodeName(const DtExtEntityStateRepository& rep,
40
// RTI::AttributeHandleValuePairSet* attrs,
41
// RTI::AttributeHandle attrHandle)
42
DtDECLARE_MY_ATTR_ENCODER
(Name);
43
DtDECLARE_MY_ATTR_ENCODER
(AlternateEntityType);
44
DtDECLARE_MY_ATTR_ENCODER
(Latitude);
45
DtDECLARE_MY_ATTR_ENCODER
(Longitude);
46
DtDECLARE_MY_ATTR_ENCODER
(Altitude);
47
48
// Individual attribute checking functions - one for each attribute.
49
// This macro expands to look like this:
50
// static bool needName(const DtExtEntityStateRepository& rep,
51
// const DtExtEntityStateRepository& asSeenByRemote);
52
DtDECLARE_MY_ATTR_CHECKER
(Name);
53
DtDECLARE_MY_ATTR_CHECKER
(AlternateEntityType);
54
DtDECLARE_MY_ATTR_CHECKER
(Latitude);
55
DtDECLARE_MY_ATTR_CHECKER
(Longitude);
56
DtDECLARE_MY_ATTR_CHECKER
(Altitude);
57
58
static
char
theBuffer
[
AlternateEntityMaxAttributeSize
];
59
};
60
61
#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
)