VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedLandSurfaceDIS.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #pragma once
7 
8 #if DtDIS
9 
10 #include <vl/reflectedObjectDIS.h>
12 #include <vl/metocPdu.h>
13 #include <vlutil/vlMachineTypes.h>
14 #include <vlutil/vlHashKeys.h>
16 
17 
18 class DtExerciseConn;
19 
23 
24 
27  DtReflectedLandSurface* obj, void* userData);
28 
31 {
32 public:
34  typedef DtLandSurfaceStateRepository* (*DtStateRepCreator)();
35 
36 public:
39 
41  virtual ~DtReflectedLandSurface();
42 
43 private:
46 
49 
50 public:
53  virtual DtLandSurfaceStateRepository* landSurfaceStateRep() const;
54 
56  virtual DtLandSurfaceStateRepository* lsr() const;
57 
61  virtual DtStateRepository* stateRep() const;
62 
65  virtual DtLandSurfaceDecoder* decoder();
66 
69  virtual const DtGlobalObjectDesignator& globalId() const;
70 
72  virtual DtReflectedLandSurface* next() const;
73  virtual DtReflectedLandSurface* prev() const;
74 
76  virtual DtReflectedLandSurface* wrapNext() const;
77  virtual DtReflectedLandSurface* wrapPrev() const;
78 
80  virtual void addPostUpdateCallback(
81  DtLandSurfaceCallbackFunction cb, void* userData);
82  virtual void removePostUpdateCallback(
83  DtLandSurfaceCallbackFunction cb, void* userData);
84 
86  virtual void setHashKey(const DtEntityIdentifier& uniqueVal);
87 
90  virtual const DtBaseHashKey& hashKey() const;
91 
93  virtual DtString idString() const;
94 
96  virtual void processStateMessage(const DtStateMsg& msg);
97 
100  virtual void processLandSurfaceState(const DtMetocPdu& pdu);
101 
102 public:
104  static void setStateRepCreator(DtStateRepCreator creator);
105  static DtStateRepCreator stateRepCreator(void);
106 
107 protected:
108  static DtStateRepCreator theStateRepCreator;
112 
113 };
114 
115 #endif
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&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
virtual const DtBaseHashKey & hashKey() const =0
Get a hash key for this object.
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Definition: reflectedLandSurfaceDIS.h:30
void(* DtLandSurfaceCallbackFunction)(DtReflectedLandSurface *obj, void *userData)
Definition: reflectedLandSurfaceDIS.h:26
DtBaseHashKey is an abstract base class for hash keys.
Definition: vlHashKeys.h:39
Instances of DtMetocPdu are used for DIS network packets which encode the DtMetocRootStateRepository ...
Definition: metocPdu.h:37
This file contains typedefs used to represent objects in a protocol neutral way.
DtReflectedObject & operator=(const DtReflectedObject &orig)
assignment operator – not implemented
DtLandSurfaceDecoder * myDecoder
Definition: reflectedLandSurfaceDIS.h:111
static DtStateRepCreator theStateRepCreator
Definition: reflectedLandSurfaceDIS.h:108
This file declares DtEntityIdentifierHashKey.
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.
Contains the DtMetocPdu class declaration.
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
DtLandSurfaceStateRepository * myStateRep
Definition: reflectedLandSurfaceDIS.h:110
This file declares DtBaseHashKey.
Instances of DtMetocEncoder encode data from DtMETOC_RootStateRepository objects to the net structure...
Definition: landSurfaceDecoderDIS.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
DtEntityIdentifierHashKey myHashKey
Definition: reflectedLandSurfaceDIS.h:109
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
Instances of DtLandSurfaceStateRepository are used to store state data for METOC_Root.EnvironmentCondition.Weather.LandSurface objects.
Definition: landSurfaceStateRepository.h:31
This file contains typedefs for machine dependant types.

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)