VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pVrvSetSystemState.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 
39  : public DtPortalInteraction
40  {
41  public:
42 
44  typedef void (*functionCallback_type) (
45  const DtPortalVrvSetSystemStateInteraction& interaction, void* userData );
46 
49 
52 
54  static void addCallback( DtPortalConnection* connection,
55  functionCallback_type callbackFunction, void* userData );
56 
58  static void removeCallback( DtPortalConnection* connection,
59  functionCallback_type callbackFunction, void* userData );
60 
63 
64  DtDEC_ATTRIBUTE( DtEntityIdentifier, Vantage, vantage );
65  DtDEC_ATTRIBUTE_CLEAR( bool, EntityLabels, entityLabels );
66  DtDEC_ATTRIBUTE_CLEAR( bool, TacticalGraphicsLabels, tacticalGraphicsLabels );
67  DtDEC_ATTRIBUTE_CLEAR( bool, HeightAboveTerrainLines, heightAboveTerrainLines );
68  DtDEC_ATTRIBUTE_CLEAR( bool, FireDetonateLines, fireDetonateLines );
69  DtDEC_ATTRIBUTE_CLEAR( bool, TacticalGraphics, tacticalGraphics );
70  DtDEC_ATTRIBUTE_CLEAR( bool, RadioCommunications, radioCommunications );
71  DtDEC_ATTRIBUTE_CLEAR( bool, VaporTrail, vaporTrail );
72  DtDEC_ATTRIBUTE_CLEAR( bool, Tracks, tracks );
73  DtDEC_ATTRIBUTE_CLEAR( bool, PlanarReflections, planarReflections );
74 
76 
78  public:
79 
81 
82  static DtPortalMessage* create();
83 
84  virtual unsigned int netSize() const;
85  virtual void writeSelfToBuffer( void* buffer ) const;
86  virtual void readSelfFromBuffer( const void* buffer );
87 
88  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
89 
90  private:
91 
95 
97  bool operator == ( const DtPortalVrvSetSystemStateInteraction& ) const;
98 
100  bool operator != ( const DtPortalVrvSetSystemStateInteraction& ) const;
101 
102  };
103 
104 
106  {
108  }
109 
110 }

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)