VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
aggregatePublisherHLA.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
9 
10 #ifndef aggregatePublisherHLA_H_
11 #define aggregatePublisherHLA_H_
12 
13 #if DtHLA
14 
15 #include "objectPublisherHLA.h"
16 #include <vlpi/disEnums.h>
17 
20 
21 
28 {
29 public:
30 
33  typedef DtAggregateStateRepository* (*DtStateRepCreator)();
34 
35 public:
36 
39  DtAggregateStateRepository *stateRepToUse,
40  DtExerciseConn* conn,
41  const char* name = 0,
42  const DtDDMRegionSet* regionSetToUse = 0);
43 
46  RTI::ObjectClassHandle h,
47  DtExerciseConn* conn,
48  const char* name = 0,
49  const DtDDMRegionSet* regionSetToUse = 0);
50 
53  const DtEntityType& type,
54  DtExerciseConn* conn,
55  const char* name = 0,
56  const DtDDMRegionSet* regionSetToUse = 0);
57 
60  const DtEntityType& type,
61  DtExerciseConn *conn,
62  DtDeadReckonTypes algorithm,
63  DtForceType forceId,
64  const char* name = 0,
65  const DtDDMRegionSet* regionSetToUse = 0);
66 
73 
75  virtual ~DtAggregatePublisher();
76 
79  virtual DtAggregateStateRepository* aggregateStateRep();
80 
82  virtual DtAggregateStateRepository* asr();
83 
85  virtual bool tick();
86 
87 public:
88 
90  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
91 
92 protected:
93 
99  const char* name = 0,
100  const DtDDMRegionSet* regionSetToUse = 0);
101 
105  void createGeographicRegion(DtExerciseConn* conn);
106 
109 
112 
116  const char* objectClassNameFromType(const DtEntityType &type);
117 
118  DtBoost::shared_ptr<DtGeodeticRegion> myGeodeticPublishingRegion;
119 
120 protected:
121 
122  static DtStateRepCreator theStateRepCreator;
123 };
124 
126 {
128 }
129 
131 {
133 }
134 
135 #endif
136 #endif
137 
DtStateRepository * myStateRep
Definition: objectPublisherHLA.h:221
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Instances of DtObjectPublisher are used for local or source simulations of objects, (i.e.
Definition: objectPublisherHLA.h:34
Instances of DtAggregatePublisher are used for local or source simulations of aggregate entities...
Definition: aggregatePublisherHLA.h:27
virtual DtAggregateStateRepository * aggregateStateRep()
Returns a pointer to the AggregateStateRepository - through which you can set or inspect current stat...
Definition: aggregatePublisherHLA.h:125
static DtStateRepCreator theStateRepCreator
Definition: aggregatePublisherHLA.h:122
DtBoost::shared_ptr< DtGeodeticRegion > myGeodeticPublishingRegion
Definition: aggregatePublisherHLA.h:118
virtual bool tick()
Tick (update) this object.
virtual DtAggregateStateRepository * asr()
Synonym for aggregateStateRep().
Definition: aggregatePublisherHLA.h:130
DtGeodeticRegion.
Definition: geodeticRegion.h:38
DtObjectPublisher & operator=(const DtObjectPublisher &orig)
assignment operator – not implemented
std::set< DtDDMRegionSP > DtDDMRegionSet
Definition: region1516.h:32
DtForceType
Section 4.
Definition: disEnums.h:199
Contains the standard DIS enumerations.
DtDeadReckonTypes
Definition: disEnums.h:997
This file provides a declaration of the class DtObjectPublisher.
A protocol independent representation of an aggregate.
Definition: aggregateStateRepository.h:29
DtEntityType is used to represent the type an entity object.
Definition: entityType.h:26
class DtHlaObjectWithStateRep:
Definition: hlaObjectWithStateRep.h:28

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)