VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pVrfChangeGlobalWeatherCommand.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2014 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 
34 
38  : public DtPortalInteraction
39  {
40  public:
41 
43  typedef void (*functionCallback_type) (
44  const DtPortalVrfChangeGlobalWeatherCommandInteraction& interaction, void* userData );
45 
48 
51 
53  static void addCallback( DtPortalConnection* connection,
54  functionCallback_type callbackFunction, void* userData );
55 
57  static void removeCallback( DtPortalConnection* connection,
58  functionCallback_type callbackFunction, void* userData );
59 
62 
63  DtDEC_ATTRIBUTE_CLEAR( double, AirTurbidity, airTubidity );
64  DtDEC_ATTRIBUTE_CLEAR( double, AmbientAirTemperature, ambientAirTemperature );
65  DtDEC_ATTRIBUTE_CLEAR( int, CloudState, cloudState );
66  DtDEC_ATTRIBUTE_CLEAR( double, PrecipitationIntensity, precipitationIntensity );
67  DtDEC_ATTRIBUTE_CLEAR( int, PrecipitationType, precipitationType );
68  DtDEC_ATTRIBUTE_CLEAR( double, Visibility, visibility );
69  DtDEC_ATTRIBUTE_CLEAR( double, WindDirection, windDirection );
70  DtDEC_ATTRIBUTE_CLEAR( double, WindSpeed, windSpeed );
71  DtDEC_ATTRIBUTE_CLEAR( double, UnderwaterVisibility, underwaterVisibility );
72  DtDEC_ATTRIBUTE_CLEAR( double, SurfaceTransparency, surfaceTransparency );
73  DtDEC_ATTRIBUTE_CLEAR( double, WaterCurrentSpeed, waterCurrentSpeed );
74  DtDEC_ATTRIBUTE_CLEAR( double, WaterCurrentDirection, waterCurrentDirection );
75  DtDEC_ATTRIBUTE_CLEAR( double, AmbientWaterTemperature, ambientWaterTemperature );
76  DtDEC_ATTRIBUTE_CLEAR( double, TidalOffset, tidalOffset );
77  DtDEC_ATTRIBUTE_CLEAR( double, TidalDirection, tidalDirection );
78  DtDEC_ATTRIBUTE_CLEAR( int, SwellState, swellState );
79  DtDEC_ATTRIBUTE_CLEAR( double, SwellStateDirection, swellStateDirection );
80  DtDEC_ATTRIBUTE_CLEAR( int, SeaState, seaState );
81  DtDEC_ATTRIBUTE_CLEAR( double, SeaStateDirection, seaStateDirection );
82  DtDEC_ATTRIBUTE_CLEAR( bool, WindDrivenSeaStateEnabled, windDrivenSeaStateEnabled );
83  DtDEC_ATTRIBUTE_CLEAR( double, Choppiness, choppiness );
84  DtDEC_ATTRIBUTE_CLEAR( double, SurgeDepth, surgeDepth );
85  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer1Depth, thermoclineLayer1Depth );
86  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer1Permeability, thermoclineLayer1Permeability );
87  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer2Depth, thermoclineLayer2Depth );
88  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer2Permeability, thermoclineLayer2Permeability );
89  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer3Depth, thermoclineLayer3Depth );
90  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer3Permeability, thermoclineLayer3Permeability );
91  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer4Depth, thermoclineLayer4Depth );
92  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer4Permeability, thermoclineLayer4Permeability );
93  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer5Depth, thermoclineLayer5Depth );
94  DtDEC_ATTRIBUTE_CLEAR( double, ThermoclineLayer5Permeability, thermoclineLayer5Permeability );
95 
97 
99  public:
100 
102 
103  static DtPortalMessage* create();
104 
105  virtual unsigned int netSize() const;
106  virtual void writeSelfToBuffer( void* buffer ) const;
107  virtual void readSelfFromBuffer( const void* buffer );
108 
109  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
110 
111  private:
112 
116 
118  bool operator == ( const DtPortalVrfChangeGlobalWeatherCommandInteraction& ) const;
119 
121  bool operator != ( const DtPortalVrfChangeGlobalWeatherCommandInteraction& ) const;
122 
123  };
124 
125 
127  {
129  }
130 
131 }

Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)