VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfWeatherSimDataProcessor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vrfGuiNetworkCommon/vrfComponentProcessorInterface.inl>
16 #include <vrfGuiCore/DtWeatherProcessObjectAgent.hpp>
18 
19 namespace makVrv
20 {
21  class DtAgentManagerInterface;
22 }
23 
24 namespace makVrf
25 {
27  class DT_DLL_vrfGuiNetworkCommon DtVrfWeatherSimDataProcessor : public DtVrfComponentProcessor<DtWeatherProcessObjectAgent, DtWeatherStateComponent>
28  {
29  public:
31 
34 
37 
39  virtual void createAndSendState(const std::set<const DtFrameStateInterface*>& interfaces,
40  makVrv::DtSimStateObjectAgent& objectDriver, bool force = false);
41 
42  virtual const makVrv::DtSimState& emptyState() const;
43 
44  static const char* ProcessorName() { return "DtVrfWeatherSimDataProcessor"; };
45  virtual const char* processorName() const { return ProcessorName(); };
46 
47  virtual bool shouldForceObjectUpdate(const DtFrameStateInterface* comp) const override;
48 
49  protected:
50 
52  {
53  typedef std::set<const DtFrameStateInterface*> FrameStateInterfaces;
56  };
57 
58  virtual bool setState(const std::set<const DtFrameStateInterface*>&, FrameStateData& state) const;
59  virtual bool setState(const DtFrameStateInterface*, DtVrlinkSimulatedWeatherState& state) const;
60 
61  virtual bool componentDiscovered(const DtFrameStateInterface*);
62  virtual void componentRemoved(UInt64 lid, makVrv::DtUniqueID id, const DtFrameStateInterface*) override;
63 
64  protected:
65  typedef std::map<makVrv::DtUniqueID, FrameStateData> Cache;
67  };
68 
70  {
71  public:
74 
76 
79  static void registerInstance(makVrv::DtBaseConnection& conn, DtVrfWeatherSimDataProcessorCreator* instance);
80 
82  };
83 }
84 
Contains makVrv::DtSimDataProcessorInterface class.
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
static const char * ProcessorName()
Definition: vrfWeatherSimDataProcessor.h:44
Definition: vrfWeatherSimDataProcessor.h:51
Class to transfer DtStateData for weather objects into entity sim data.
Definition: vrfWeatherSimDataProcessor.h:27
DtVrlinkSimulatedWeatherState weatherStateData
Definition: vrfWeatherSimDataProcessor.h:55
Definition: vrfWeatherSimDataProcessor.h:69
Cache myCache
Definition: vrfWeatherSimDataProcessor.h:66
virtual const char * processorName() const
Used to uniquely identify for registration.
Definition: vrfWeatherSimDataProcessor.h:45
The DtBaseConnection is an abstract class.
Definition: DtBaseConnection.h:38
std::set< const DtFrameStateInterface * > FrameStateInterfaces
Definition: vrfWeatherSimDataProcessor.h:53
FrameStateInterfaces frameStateInterfaces
Definition: vrfWeatherSimDataProcessor.h:54
#define DT_DLL_vrfGuiNetworkCommon
This file is used to determine how to build.
Definition: vrfGuiNetworkCommonDefines.h:24
A DtSimState is the base class for all state objects. Derived instances of DtSimState will be created...
Definition: DtSimState.h:19
std::map< makVrv::DtUniqueID, FrameStateData > Cache
Definition: vrfWeatherSimDataProcessor.h:65
This is a simple base class that will be used to return a pointer to current or next frame state...
Definition: stateComponent.h:282
Definition: vrfComponentProcessorInterface.h:31
This class holds the state data that represents each simulation object in the system.
Definition: stateDataManager.h:71

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)