VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
environmentObjectEncoder.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #if DtHLA
8 
9 #ifndef environmentObjectEncoder_H_
10 #define environmentObjectEncoder_H_
11 
12 
13 #include "hlaStateEncoder.h"
14 
18 
20 
23 #define DtDECLARE_ENVIRONMENTOBJ_ATTR_CHECKER(attrName) \
24  DtDECLARE_ATTR_CHECKER(DtEnvironmentObjectRepository, attrName)
25 
28 #define DtDECLARE_ENVIRONMENTOBJ_ATTR_ENCODER(attrName) \
29  DtDECLARE_ATTR_ENCODER(DtEnvironmentObjectRepository, attrName)
30 
35 
37 {
38 public:
39 
42  DtExerciseConn* exConn,
43  DtObjClassDesc* classDesc);
44 
46  virtual ~DtEnvironmentObjectEncoder();
47 
50 
53 
54 public:
55 
57  static DtHlaStateEncoder* create(
58  DtExerciseConn* exConn,
59  DtObjClassDesc* classDesc);
60 
61 protected:
62 
64  DtDECLARE_ENVIRONMENTOBJ_ATTR_CHECKER(ObjectIdentifier);
65  DtDECLARE_ENVIRONMENTOBJ_ATTR_CHECKER(ReferencedObjectIdentifier);
68 
69  DtDECLARE_ENVIRONMENTOBJ_ATTR_ENCODER(ObjectIdentifier);
70  DtDECLARE_ENVIRONMENTOBJ_ATTR_ENCODER(ReferencedObjectIdentifier);
73 };
74 
80 #define DtDEFINE_SIMPLE_ENVIRONMENTOBJ_ATTR_ENCODER( \
81  attrName, netType, inspector) \
82  DtDEFINE_SIMPLE_ATTR_ENCODER(DtEnvironmentObjectEncoder, \
83  DtEnvironmentObjectRepository, \
84  attrName, netType, inspector)
85 
91 #define DtDEFINE_SIMPLE_ENVIRONMENTOBJ_ATTR_CHECKER( \
92  attrName, inspector) \
93  DtDEFINE_SIMPLE_ATTR_CHECKER(DtEnvironmentObjectEncoder, \
94  DtEnvironmentObjectRepository, \
95  attrName, inspector)
96 
97 #endif //hEnvObjEnc_H_
98 
99 #endif //DtHLA
100 
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:60
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
This file contains the declaration of DtHlaStateEncoder.
DtHlaStateEncoder is used to provide encoding of a state repository into a state message in an HLA (a...
Definition: hlaStateEncoder.h:30
class DtEnvironmentObjectEncoder:
Definition: environmentObjectEncoder.h:36
An instance of DtObjClassDesc is a "class descriptor" for an HLA Object class.
Definition: objClassDesc13.h:41
Instances of DtEnvironmentObjectRepository are used to maintain state information needed by environme...
Definition: environmentObjectRepository.h:24
DtHlaStateEncoder & operator=(const DtHlaStateEncoder &orig)
assignment operator
#define DtDECLARE_ENVIRONMENTOBJ_ATTR_ENCODER(attrName)
This is used to declare attribute encoding functions which are members of the class.
Definition: environmentObjectEncoder.h:28
#define DtDECLARE_ENVIRONMENTOBJ_ATTR_CHECKER(attrName)
This is used to declare static member functions for determining whether or not an attribute needs to ...
Definition: environmentObjectEncoder.h:23

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)