VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
soldierEncoder.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef DtSoldierEncoder_H_
8 #define DtSoldierEncoder_H_
9 
10 #if DtHLA
11 
12 #include "militaryEntityEncoder.h"
13 #include "entityStateRepository.h"
14 
18 
23 
25 {
26 public:
27 
30  DtExerciseConn* exConn,
31  DtObjClassDesc* classDesc);
32 
34  virtual ~DtSoldierEncoder();
35 
38 
41 
42 public:
43 
46  static DtHlaStateEncoder* create(
47  DtExerciseConn* exConn,
48  DtObjClassDesc* classDesc);
49 
50 protected:
51 
53  DtDECLARE_ENTITY_ATTR_CHECKER(PrimaryWeaponState);
54  DtDECLARE_ENTITY_ATTR_CHECKER(SecondaryWeaponState);
55 
57  DtDECLARE_ENTITY_ATTR_ENCODER(PrimaryWeaponState);
58  DtDECLARE_ENTITY_ATTR_ENCODER(SecondaryWeaponState);
59 };
60 
66 #define DtDEFINE_SIMPLE_SOLDIER_ATTR_ENCODER( \
67  attrName, netType, inspector) \
68  DtDEFINE_SIMPLE_ATTR_ENCODER(DtSoldierEncoder, \
69  DtEntityStateRepository, \
70  attrName, netType, inspector)
71 
77 #define DtDEFINE_SIMPLE_SOLDIER_ATTR_CHECKER( \
78  attrName, inspector) \
79  DtDEFINE_SIMPLE_ATTR_CHECKER(DtSoldierEncoder, \
80  DtEntityStateRepository, \
81  attrName, inspector)
82 
83 #endif
84 #endif
85 
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:58
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtHlaStateEncoder is used to provide encoding of a state repository into a state message in an HLA (a...
Definition: hlaStateEncoder.h:30
An instance of DtObjClassDesc is a "class descriptor" for an HLA Object class.
Definition: objClassDesc13.h:41
static DtHlaStateEncoder * create(DtExerciseConn *exConn, DtObjClassDesc *classDesc)
Create a DtMilitaryEntityEncoder.
DtDECLARE_ENTITY_ATTR_CHECKER(AlternateEntityType)
Static need<Attribute> member functions.
Contains the DtEntityStateRepository class declaration.
DtMilitaryEntityEncoder & operator=(const DtMilitaryEntityEncoder &orig)
assignment operator
DtDECLARE_ENTITY_ATTR_ENCODER(AlternateEntityType)
Static decode<Attribute> member functions.
This file provides a declaration of the class DtMilitaryEntityEncoder.
class DtMilitaryEntityEncoder:
Definition: militaryEntityEncoder.h:25
class DtSoldierEncoder:
Definition: soldierEncoder.h:24

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)