VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pVrfSetData.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/pInteraction.h>
13 
14 namespace MAKVrExchange
15 {
16 
17  class DtPortalConnection;
18 
21 
25  : public DtPortalInteraction
26  {
27  public:
28 
30  {
31  Unknown = 0,
32  AggregateFormation = 1,
33  AltitudeMSL = 2,
34  BombResource = 3,
35  Boolean = 4,
36  ChoiceDropDownList = 5,
37  ChoiceOptionButton = 6,
38  DIGuyAnimation = 7,
39  DIGuyAppearance = 8,
40  Distance = 9,
41  Emitter = 10,
42  EntityType = 11,
43  Force = 12,
44  Heading = 13,
45  Integer = 14,
46  LocationWithAltitude = 15,
47  LocationWithoutAltitude = 16,
48  MunitionResource = 17,
49  OffsetLocation = 18,
50  Real = 19,
51  Resource = 20,
52  SimulationObjectSingle = 21,
53  SimulationObjectMultiple = 22,
54  Speed = 23,
55  String = 24,
56  Time = 25,
57  TurnRate = 26
58  };
59 
60  // structure of data values in the avpl
61  struct MsgHeader {
62  DtU32 type;
63  };
64 
65  struct MsgInt {
67  int value;
68  };
69 
70  struct MsgDouble {
72  double value;
73  };
74 
75  struct MsgString {
77  int len;
78  };
79 
80  struct MsgVector {
82  DtVector value;
83  };
84 
85  public:
86 
88  typedef void (*functionCallback_type) (
89  const DtPortalVrfSetDataInteraction& interaction, void* userData );
90 
93 
96 
98  static void addCallback( DtPortalConnection* connection,
99  functionCallback_type callbackFunction, void* userData );
100 
102  static void removeCallback( DtPortalConnection* connection,
103  functionCallback_type callbackFunction, void* userData );
104 
107 
108  DtDEC_ATTRIBUTE( DtString, OriginatingEntity, originatingEntity );
109  DtDEC_ATTRIBUTE( DtString, ReceivingEntity, receivingEntity );
110  DtDEC_ATTRIBUTE( DtAttributeValuePairList, VariableDatumSet, variableDatumSet );
111 
113 
115  public:
116 
118 
119  static DtPortalMessage* create();
120 
121  virtual unsigned int netSize() const;
122  virtual void writeSelfToBuffer( void* buffer ) const;
123  virtual void readSelfFromBuffer( const void* buffer );
124 
125  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
126 
127  private:
128 
130  DtPortalVrfSetDataInteraction& operator = (
132 
134  bool operator == ( const DtPortalVrfSetDataInteraction& ) const;
135 
137  bool operator != ( const DtPortalVrfSetDataInteraction& ) const;
138 
139  };
140 
141 
143  {
144  return new DtPortalVrfSetDataInteraction();
145  }
146 
147 }

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)