VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cloudLayerStateProcessor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
9 #include <vrfGuiNetworkCommon/vrfComponentProcessorInterface.inl>
13 #include <vrfGuiCore/DtCloudLayerProcessObjectAgent.hpp>
14 
15 namespace makVrv
16 {
17  class DtAgentManagerInterface;
18 }
19 
20 namespace makVrf
21 {
23  class DT_DLL_vrfGuiNetworkCommon DtCloudLayerStateProcessor : public DtVrfComponentProcessor<DtCloudLayerProcessObjectAgent, DtCloudLayerStateComponent>
24  {
25  public:
27 
30 
32  virtual ~DtCloudLayerStateProcessor();
33 
35  virtual void createAndSendState(const std::set<const DtFrameStateInterface*>& interfaces,
36  makVrv::DtSimStateObjectAgent& objectDriver, bool force = false);
37 
38  virtual const makVrv::DtSimState& emptyState() const;
39 
40  static const char* ProcessorName() { return "DtCloudLayerStateProcessor"; };
41  virtual const char* processorName() const { return ProcessorName(); };
42 
43  protected:
44 
46  {
47  typedef std::set<const DtFrameStateInterface*> FrameStateInterfaces;
50  };
51 
52  virtual bool setState(const DtFrameStateInterface* fsi, DtVrlinkSimulatedCloudLayerState& state) const;
53  virtual bool setState(const std::set<const DtFrameStateInterface*>& interfaces, FrameStateData& baseState) const;
54 
55  virtual bool componentDiscovered(const DtFrameStateInterface*);
56  virtual void componentRemoved(UInt64 lid, makVrv::DtUniqueID id, const DtFrameStateInterface*) override;
57 
58  protected:
59  typedef std::map<makVrv::DtUniqueID, FrameStateData> Cache;
61  };
62 
64  {
65  public:
68 
70 
73  static void registerInstance(makVrv::DtBaseConnection& conn, DtCloudLayerStateProcessorCreator* instance);
74 
76  };
77 }
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
Definition: cloudLayerStateProcessor.h:63
std::map< makVrv::DtUniqueID, FrameStateData > Cache
Definition: cloudLayerStateProcessor.h:59
virtual const char * processorName() const
Used to uniquely identify for registration.
Definition: cloudLayerStateProcessor.h:41
The DtBaseConnection is an abstract class.
Definition: DtBaseConnection.h:38
Class to transfer DtStateData for iff objects into entity sim data.
Definition: cloudLayerStateProcessor.h:23
Cache myCache
Definition: cloudLayerStateProcessor.h:60
static const char * ProcessorName()
Definition: cloudLayerStateProcessor.h:40
DtVrlinkSimulatedCloudLayerState cloudLayerStateData
Definition: cloudLayerStateProcessor.h:49
std::set< const DtFrameStateInterface * > FrameStateInterfaces
Definition: cloudLayerStateProcessor.h:47
#define DT_DLL_vrfGuiNetworkCommon
This file is used to determine how to build.
Definition: vrfGuiNetworkCommonDefines.h:24
Definition: cloudLayerStateProcessor.h:45
A DtSimState is the base class for all state objects. Derived instances of DtSimState will be created...
Definition: DtSimState.h:19
This is a simple base class that will be used to return a pointer to current or next frame state...
Definition: stateComponent.h:282
FrameStateInterfaces frameStateInterfaces
Definition: cloudLayerStateProcessor.h:48
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)