VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedEnvironmentProcessDIS.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
7 
8 #ifndef DtReflectedEnvironmentProcess_H_
9 #define DtReflectedEnvironmentProcess_H_
10 
11 #if DtDIS
12 
13 #include "reflectedObjectDIS.h"
16 #include "globalObjectDesignator.h"
17 #include "objectIdHashKey.h"
18 
22 
27  DtReflectedEnvironmentProcess* obj, void* userData);
28 
35 {
36 public:
37 
40  typedef DtEnvironmentProcessRepository* (*DtStateRepCreator)();
41 
42 public:
43 
46  DtExerciseConn* conn,
47  const DtEntityIdentifier& id,
48  const DtEntityType& type);
49 
52 
55  virtual DtEnvironmentProcessRepository* environmentProcessStateRep() const;
56 
58  virtual DtEnvironmentProcessRepository* epsr() const;
59 
61  virtual DtStateRepository* stateRep() const;
62 
65  virtual DtEnvironmentProcessDecoder* decoder();
66 
68  virtual const DtEntityIdentifier& entityId() const;
69 
71  virtual const DtObjectId& id() const;
72 
74  virtual const DtObjectId& localId() const;
75 
78  virtual const DtGlobalObjectDesignator& globalId() const;
79 
82  virtual void processStateMessage(const DtStateMsg& msg);
83 
86  virtual DtReflectedEnvironmentProcess* next() const;
87  virtual DtReflectedEnvironmentProcess* prev() const;
88 
90  virtual DtReflectedEnvironmentProcess* wrapNext() const;
91  virtual DtReflectedEnvironmentProcess* wrapPrev() const;
92 
94  virtual void addPostUpdateCallback(
95  DtEnvironmentProcessCallbackFunction cb, void* userData);
96  virtual void removePostUpdateCallback(
97  DtEnvironmentProcessCallbackFunction cb, void* userData);
98 
100  virtual const DtBaseHashKey& hashKey() const;
101 
103  virtual DtString idString() const;
104 
107  virtual void processEnvironmentProcess(const DtEnvironmentalProcessPdu& pdu);
108 
109 public:
110 
112  static void setStateRepCreator(DtStateRepCreator creator);
113  static DtStateRepCreator stateRepCreator(void);
114 
115 protected:
116 
119 
122 
123 protected:
124 
129 
130 protected:
131 
132  static DtStateRepCreator theStateRepCreator;
133 
134 };
135 
136 #endif
137 #endif
138 
Instances of DtEntityIdentifierHashKey are hash keys made from DtEntityIdentifiers.
Definition: entityIdentifierHashKey.h:21
void * next() const
Return next (previous) elements on the list, or NULL if hit the end (beginning) of the list...
Definition: vlList.h:272
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnDIS.h:61
virtual const DtBaseHashKey & hashKey() const =0
Get a hash key for this object.
DtEntityIdentifier myId
Definition: reflectedEnvironmentProcessDIS.h:125
Instances of DtEnvironmentalProcessPdu are used to send information about environmental effects and p...
Definition: environmentalProcessPdu.h:30
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtEnvironmentProcessRepository * myStateRep
Definition: reflectedEnvironmentProcessDIS.h:126
DtBaseHashKey is an abstract base class for hash keys.
Definition: vlHashKeys.h:39
The DtReflectedObject instance for an Environmental Process Object.
Definition: reflectedEnvironmentProcessDIS.h:34
static DtStateRepCreator theStateRepCreator
Definition: reflectedEnvironmentProcessDIS.h:132
This file contains typedefs used to represent objects in a protocol neutral way.
DtReflectedObject & operator=(const DtReflectedObject &orig)
assignment operator – not implemented
DtEntityIdentifierHashKey myHashKey
Definition: reflectedEnvironmentProcessDIS.h:128
DtEnvironmentProcessDecoder * myDecoder
Definition: reflectedEnvironmentProcessDIS.h:127
Instances of DtReflectedObject are used to represent a simulation entity reflected across a network (...
Definition: reflectedObjectDIS.h:34
virtual const DtGlobalObjectDesignator & globalId() const =0
Get the Global ID for this object.
void * prev() const
Definition: vlList.h:277
void * wrapNext() const
Return next (previous) elements on the list, but wrap to the beginning (end) of the list when you hit...
Definition: vlList.h:282
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
Instances of DtEnvironmentProcessRepository are used to store state information for environmental pro...
Definition: environmentProcessRepository.h:27
void(* DtEnvironmentProcessCallbackFunction)(DtReflectedEnvironmentProcess *obj, void *userData)
Callback function that takes a DtReflectedEnvironmentProcess and usr data.
Definition: reflectedEnvironmentProcessDIS.h:26
virtual void processStateMessage(const DtStateMsg &msg)
Process an entity state PDU.
virtual DtString idString() const =0
Get a string identification of this object.
void * wrapPrev() const
Definition: vlList.h:288
Contains the DtEnvironmentalProcessPdu class declaration.
Instances of DtString are used to represent strings.
Definition: vlString.h:29
virtual DtStateRepository * stateRep() const =0
Returns a pointer to the StateRepository - through which you can inspect current state information...
Instances of DtStateMsg are used to represent state data communicated via the network in a DIS (as op...
Definition: stateMsgDIS.h:21
DtEntityType is used to represent the type an entity object.
Definition: entityType.h:26
Instances of DtEnvironmentProcessDecoder process Environment Process PDU's into DtEnvironmentProcessR...
Definition: environmentProcessDecoderDIS.h:24

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)