VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
iffRemoteNetInterface.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 
10 
11 class DtReflectedIff;
12 class DtIFFDataStateRepository;
14 
15 namespace makVrf
16 {
17  class DtIffStateComponent;
18 
24 
26  {
27  private:
30 
33 
35  const DtIffRemoteNetInterface & operator=(const DtSimObjectNetInterface &
36  orig);
37 
38  public:
39 
45  bool publishObject = true);
46 
48  virtual ~DtIffRemoteNetInterface() override;
49 
52  virtual DtString type() const override;
53 
54  static DtSimObjectNetInterface * creator(
55  DtStateData* vrfObject, DtVrlinkNetworkInterface* mgr, bool publishObject);
56 
58  virtual void init(DtFrameStateInterface*, DtReflectedObject*) override;
59 
60  typedef boost::function<void (DtReflectedIff* pub, DtIffStateComponent*)> ModeDecoder;
61  static void SetModeDecoder(int, ModeDecoder);
62 
63  static void DecodeGeneralSettings(DtReflectedIff*, DtIffStateComponent*);
64  static void DecodeBasicDataSettings(DtIFFDataStateRepository*, DtIffBasicModeSetting*);
65  static void DecodeBasicModeSettings(DtModeType, DtReflectedIff*, DtIffStateComponent*);
66  static void DecodeTCASDataSettings(DtReflectedIff*, DtIffStateComponent*);
67  static void DecodeMode5Settings(DtReflectedIff*, DtIffStateComponent*);
68  static void DecodeModeSSettings(DtReflectedIff*, DtIffStateComponent*);
69  static void DecodeMode3CSettings(DtReflectedIff*, DtIffStateComponent*);
70 
71  protected:
72  virtual void decode(int modeType);
73 
74  virtual void updateComponent() override;
75 
76  protected:
78  DtReflectedIff* myIff;
79 
80  typedef std::map<int, ModeDecoder> ModeDecoders;
82  };
83 }
std::map< int, ModeDecoder > ModeDecoders
Definition: iffRemoteNetInterface.h:80
static ModeDecoders theModeDecoders
Definition: iffRemoteNetInterface.h:81
Definition: remoteStateComponentNetInterface.h:23
boost::function< void(DtReflectedIff *pub, DtIffStateComponent *)> ModeDecoder
Definition: iffRemoteNetInterface.h:60
Class Description: DtIffRemoteNetInterface.
Definition: iffRemoteNetInterface.h:25
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:398
Class Description: DtSimObjectNetInterface.
Definition: simObjectNetInterface.h:50
General settings that apply to all modes.
Definition: iffBasicModeSettings.h:14
DtReflectedIff * myIff
Definition: iffRemoteNetInterface.h:78
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
DT_DLL_readerWriter const char * decode(DtString &val, const char *buffer)
Decodes a value from buffer and places the result in val of the type specified by val...
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: iffStateComponent.h:83
DtIffStateComponent * myIffComponent
Definition: iffRemoteNetInterface.h:77
This is a simple base class that will be used to return a pointer to current or next frame state...
Definition: stateComponent.h:294

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)