VR-Link API Documentation for HLA 1.3
 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 

Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)