VR-Exchange 2.10 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pVrfScriptedTask.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/dllExport.h>
13 #include <portal/pInteraction.h>
14 
15 namespace MAKVrExchange
16 {
17 
18  class DtPortalConnection;
19 
23  : public DtPortalInteraction
24  {
25  public:
26 
28  {
29  Unknown = 0,
30  AggregateFormation = 1,
31  AltitudeMSL = 2,
32  BombResource = 3,
33  Boolean = 4,
34  ChoiceDropDownList = 5,
35  ChoiceOptionButton = 6,
36  DIGuyAnimation = 7,
37  DIGuyAppearance = 8,
38  Distance = 9,
39  Emitter = 10,
40  EntityType = 11,
41  Force = 12,
42  Heading = 13,
43  Integer = 14,
44  LocationWithAltitude = 15,
45  LocationWithoutAltitude = 16,
46  MunitionResource = 17,
47  OffsetLocation = 18,
48  Real = 19,
49  Resource = 20,
50  SimulationObjectSingle = 21,
51  SimulationObjectMultiple = 22,
52  Speed = 23,
53  String = 24,
54  Time = 25,
55  TurnRate = 26,
56  DepthMSL = 27
57  };
58 
59  // structure of data values in the avpl
60  struct MsgHeader {
61  DtU32 type;
62  };
63 
64  struct MsgInt {
66  int value;
67  };
68 
69  struct MsgDouble {
71  double value;
72  };
73 
74  struct MsgString {
76  int len;
77  };
78 
79  struct MsgVector {
81  DtVector value;
82  };
83 
84  public:
85 
87  typedef void (*functionCallback_type) (
88  const DtPortalVrfScriptedTaskInteraction& interaction, void* userData );
89 
92 
95 
97  static void addCallback( DtPortalConnection* connection,
98  functionCallback_type callbackFunction, void* userData );
99 
101  static void removeCallback( DtPortalConnection* connection,
102  functionCallback_type callbackFunction, void* userData );
103 
106 
107  DtDEC_ATTRIBUTE( DtString, OriginatingEntity, originatingEntity );
108  DtDEC_ATTRIBUTE( DtString, ReceivingEntity, receivingEntity );
109  DtDEC_ATTRIBUTE( DtString, ScriptID, scriptID );
110  DtDEC_ATTRIBUTE( bool, Subtask, subtask);
111  DtDEC_ATTRIBUTE( DtAttributeValuePairList, VariableDatumSet, variableDatumSet );
112 
114 
116  public:
117 
119 
120  static DtPortalMessage* create();
121 
122  virtual unsigned int netSize() const;
123  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
124  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
125 
126  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
127 
128  private:
129 
133 
135  bool operator == ( const DtPortalVrfScriptedTaskInteraction& ) const;
136 
138  bool operator != ( const DtPortalVrfScriptedTaskInteraction& ) const;
139 
140  };
141 
142 
144  {
146  }
147 
148 }
MsgHeader header
Definition: pVrfScriptedTask.h:65
MsgHeader header
Definition: pVrfScriptedTask.h:70
static DtPortalMessage * create()
Definition: pVrfScriptedTask.h:143
#define DT_DLL_LIBPORTAL
Definition: include/portal/dllExport.h:20
double value
Definition: pVrfScriptedTask.h:71
#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
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
Vrf Scripted Task Interaction class.
Definition: pVrfScriptedTask.h:22
ScriptedTaskVariableType
Definition: pVrfScriptedTask.h:27
static const DtPortalMessageKind theKind
NOTE: DtDEC_ATTRIBUTE resets the access specifier to protected.
Definition: pVrfScriptedTask.h:118
Connects a broker to the Portal Data Exchange.
Definition: pConnection.h:49
MsgHeader header
Definition: pVrfScriptedTask.h:75
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
DtVector value
Definition: pVrfScriptedTask.h:81
MsgHeader header
Definition: pVrfScriptedTask.h:80

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)