VR-Exchange 2.6 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pVrfChangeGlobalWeatherCommand.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portal/dllExport.h>
13 #include <portal/pInteraction.h>
14 
16 #define DtDEC_ATTRIBUTE_CLEAR( T, N, n ) \
17  public: \
18  void set##N( const T& val ) { my##N = val; myb##N = true; } \
19  const T& n() const { return my##N; } \
20  const bool isset##N() const { return myb##N; } \
21  void clear##N() { myb##N = false; } \
22  T& n() { return my##N; } \
23  protected: \
24  T my##N; \
25  bool myb##N;
26 
27 namespace MAKVrExchange
28 {
29 
30  class DtPortalConnection;
31 
35  : public DtPortalInteraction
36  {
37  public:
38 
40  typedef void (*functionCallback_type) (
41  const DtPortalVrfChangeGlobalWeatherCommandInteraction& interaction, void* userData );
42 
45 
48 
50  static void addCallback( DtPortalConnection* connection,
51  functionCallback_type callbackFunction, void* userData );
52 
54  static void removeCallback( DtPortalConnection* connection,
55  functionCallback_type callbackFunction, void* userData );
56 
59 
60  DtDEC_ATTRIBUTE_CLEAR( double, AirTurbidity, airTubidity );
61  DtDEC_ATTRIBUTE_CLEAR( double, AmbientAirTemperature, ambientAirTemperature );
62  DtDEC_ATTRIBUTE_CLEAR( int, CloudState, cloudState );
63  DtDEC_ATTRIBUTE_CLEAR( double, PrecipitationIntensity, precipitationIntensity );
64  DtDEC_ATTRIBUTE_CLEAR( int, PrecipitationType, precipitationType );
65  DtDEC_ATTRIBUTE_CLEAR( double, Visibility, visibility );
66  DtDEC_ATTRIBUTE_CLEAR( double, WindDirection, windDirection );
67  DtDEC_ATTRIBUTE_CLEAR( double, WindSpeed, windSpeed );
68  DtDEC_ATTRIBUTE_CLEAR( double, UnderwaterVisibility, underwaterVisibility );
69  DtDEC_ATTRIBUTE_CLEAR( double, SurfaceTransparency, surfaceTransparency );
70  DtDEC_ATTRIBUTE_CLEAR( double, WaterCurrentSpeed, waterCurrentSpeed );
71  DtDEC_ATTRIBUTE_CLEAR( double, WaterCurrentDirection, waterCurrentDirection );
72  DtDEC_ATTRIBUTE_CLEAR( double, AmbientWaterTemperature, ambientWaterTemperature );
73  DtDEC_ATTRIBUTE_CLEAR( double, TidalOffset, tidalOffset );
74  DtDEC_ATTRIBUTE_CLEAR( double, TidalDirection, tidalDirection );
75  DtDEC_ATTRIBUTE_CLEAR( int, SwellState, swellState );
76  DtDEC_ATTRIBUTE_CLEAR( double, SwellStateDirection, swellStateDirection );
77  DtDEC_ATTRIBUTE_CLEAR( int, SeaState, seaState );
78  DtDEC_ATTRIBUTE_CLEAR( double, SeaStateDirection, seaStateDirection );
79  DtDEC_ATTRIBUTE_CLEAR( bool, WindDrivenSeaStateEnabled, windDrivenSeaStateEnabled );
80  DtDEC_ATTRIBUTE_CLEAR( double, Choppiness, choppiness );
81  DtDEC_ATTRIBUTE_CLEAR( double, SurgeDepth, surgeDepth );
82  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer1Depth, thermoclineLayer1Depth );
83  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer1Permeability, thermoclineLayer1Permeability );
84  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer2Depth, thermoclineLayer2Depth );
85  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer2Permeability, thermoclineLayer2Permeability );
86  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer3Depth, thermoclineLayer3Depth );
87  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer3Permeability, thermoclineLayer3Permeability );
88  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer4Depth, thermoclineLayer4Depth );
89  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer4Permeability, thermoclineLayer4Permeability );
90  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer5Depth, thermoclineLayer5Depth );
91  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer5Permeability, thermoclineLayer5Permeability );
92 
94 
96  public:
97 
99 
100  static DtPortalMessage* create();
101 
102  virtual unsigned int netSize() const;
103  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
104  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
105 
106  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
107 
108  private:
109 
113 
115  bool operator == ( const DtPortalVrfChangeGlobalWeatherCommandInteraction& ) const;
116 
118  bool operator != ( const DtPortalVrfChangeGlobalWeatherCommandInteraction& ) const;
119 
120  };
121 
122 
124  {
126  }
127 
128 }

Document ID: Generated on Wed Jan 30 18:15:18 EST 2019 from SVN revision 195534
Copyright © 2005-2019 VT MÄK. All Rights Reserved (www.mak.com)