VR-Link API Documentation for DIS
hArealObjPub.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 * hArealObjPub.h
7 *********************************************************************/
8 
9 #if DtHLA
10 
11 #ifndef hArealObjPub_H_
12 #define hArealObjPub_H_
13 
14 #include "hObjPub.h"
15 #include "objectType.h"
16 
20 
22 
23 
33 class DT_DLL_VL DtArealObjectPublisher : public DtObjectPublisher
34 {
35 public:
36 
39  typedef DtArealObjectRepository* (*DtStateRepCreator)();
40 
41 public:
42 
44  DtArealObjectPublisher(
45  DtArealObjectRepository *stateRepToUse,
46  DtExerciseConn* conn,
47  const char* name = 0,
48  const DtDDMRegionSet* regionSetToUse = 0);
49 
51  DtArealObjectPublisher(
52  RTI::ObjectClassHandle h,
53  DtExerciseConn* conn,
54  const char* name = 0,
55  const DtDDMRegionSet* regionSetToUse = 0);
56 
58  DtArealObjectPublisher(
60  DtExerciseConn* conn,
61  const char* name = 0,
62  const DtDDMRegionSet* regionSetToUse = 0);
63 
65  virtual ~DtArealObjectPublisher();
66 
69  virtual DtArealObjectRepository* arealObjectStateRep();
70 
72  virtual DtArealObjectRepository* aosr();
73 
74 public:
75 
77  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
78 
79 protected:
80 
82  DtArealObjectPublisher(const DtArealObjectPublisher& orig);
83 
85  DtArealObjectPublisher& operator=
86  (const DtArealObjectPublisher& orig);
87 
88  //Non-virtual method called from constructor.
89  const char* objectClassNameFromType
90  (const DtSyntheticEnvironmentObjectType& type);
91 
92 protected:
93 
94  static DtStateRepCreator theStateRepCreator;
95 };
96 
98  DtArealObjectPublisher::arealObjectStateRep()
99 {
100  return (DtArealObjectRepository*) myStateRep;
101 }
102 
103 inline DtArealObjectRepository* DtArealObjectPublisher::aosr()
104 {
105  return (DtArealObjectRepository*) myStateRep;
106 }
107 
108 #endif //hArealObjPub_H_
109 #endif //DtHLA
110 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)