VR-Exchange 2.10 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) 2016 MAK Technologies, Inc.
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 
22  : public DtPortalInteraction
23  {
24  public:
25 
27  {
28  Unknown = 0,
29  AggregateFormation = 1,
30  AltitudeMSL = 2,
31  BombResource = 3,
32  Boolean = 4,
33  ChoiceDropDownList = 5,
34  ChoiceOptionButton = 6,
35  DIGuyAnimation = 7,
36  DIGuyAppearance = 8,
37  Distance = 9,
38  Emitter = 10,
39  EntityType = 11,
40  Force = 12,
41  Heading = 13,
42  Integer = 14,
43  LocationWithAltitude = 15,
44  LocationWithoutAltitude = 16,
45  MunitionResource = 17,
46  OffsetLocation = 18,
47  Real = 19,
48  Resource = 20,
49  SimulationObjectSingle = 21,
50  SimulationObjectMultiple = 22,
51  Speed = 23,
52  String = 24,
53  Time = 25,
54  TurnRate = 26
55  };
56 
57  // structure of data values in the avpl
58  struct MsgHeader {
59  DtU32 type;
60  };
61 
62  struct MsgInt {
64  int value;
65  };
66 
67  struct MsgDouble {
69  double value;
70  };
71 
72  struct MsgString {
74  int len;
75  };
76 
77  struct MsgVector {
79  DtVector value;
80  };
81 
82  public:
83 
85  typedef void (*functionCallback_type) (
86  const DtPortalVrfSetDataInteraction& interaction, void* userData );
87 
90 
93 
95  static void addCallback( DtPortalConnection* connection,
96  functionCallback_type callbackFunction, void* userData );
97 
99  static void removeCallback( DtPortalConnection* connection,
100  functionCallback_type callbackFunction, void* userData );
101 
104 
105  DtDEC_ATTRIBUTE( DtString, OriginatingEntity, originatingEntity );
106  DtDEC_ATTRIBUTE( DtString, ReceivingEntity, receivingEntity );
107  DtDEC_ATTRIBUTE( DtAttributeValuePairList, VariableDatumSet, variableDatumSet );
108 
110 
112  public:
113 
115 
116  static DtPortalMessage* create();
117 
118  virtual unsigned int netSize() const;
119  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
120  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
121 
122  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
123 
124  private:
125 
127  DtPortalVrfSetDataInteraction& operator = (
129 
131  bool operator == ( const DtPortalVrfSetDataInteraction& ) const;
132 
134  bool operator != ( const DtPortalVrfSetDataInteraction& ) const;
135 
136  };
137 
138 
140  {
141  return new DtPortalVrfSetDataInteraction();
142  }
143 
144 }
MsgHeader header
Definition: pVrfSetData.h:78
#define DT_DLL_LIBPORTAL
Definition: include/portal/dllExport.h:20
static DtPortalMessage * create()
Definition: pVrfSetData.h:139
DtVector value
Definition: pVrfSetData.h:79
#define DtDEC_ATTRIBUTE(T, N, n)
A Macro to define an attribute; as well as make an accessor and mutator for that attribute.
Definition: addAttribute.h:49
static const DtPortalMessageKind theKind
NOTE: DtDEC_ATTRIBUTE resets the access specifier to protected.
Definition: pVrfSetData.h:114
The base class for all messages passed through the portal.
Definition: pMessage.h:67
Contains the DtPortalInteraction class declaration.
DtPortalInteractions are a special type of DtPortalMessages which are used to transmit simulation dat...
Definition: pInteraction.h:21
MsgHeader header
Definition: pVrfSetData.h:68
ScriptedTaskVariableType
Definition: pVrfSetData.h:26
Connects a broker to the Portal Data Exchange.
Definition: pConnection.h:49
MsgHeader header
Definition: pVrfSetData.h:73
std::list< DtAttributeValuePair > DtAttributeValuePairList
A list of DtAttributeValuePairs.
Definition: variableLengthData.h:79
DtPortalMessageKind
A List of message kinds distributed with the Portal.
Definition: pMessageKinds.h:23
Vrf Set Data Interaction class.
Definition: pVrfSetData.h:21
MsgHeader header
Definition: pVrfSetData.h:63

Document ID: Generated on Mon May 25 18:45:12 EDT 2026 from SVN revision 289111
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)