VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
unknownInteraction.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
9 
10 #ifndef DtUnknownInteraction_H_
11 #define DtUnknownInteraction_H_
12 
13 #if DtHLA
14 
15 
16 #include "interactionHLA.h"
17 #include "hostStructs.h"
18 #include "exerciseConn.h"
19 #include "rtiNamespace.h"
20 
22 
23 
24 
26 typedef void (*DtUnknownInteractionCb)
27  (DtUnknownInteraction* inter, void* usr);
28 
33 
35 {
36 public:
37 
40 
42 #if DtHLA_1516
43  DtUnknownInteraction(RTI::InteractionClassHandle handle,
44  const RTI::ParameterHandleValueMap& pvMap);
45 #else
46  DtUnknownInteraction(RTI::InteractionClassHandle handle,
47  const RTI::ParameterHandleValuePairSet& pvList);
48 #endif
49 
51  virtual ~DtUnknownInteraction();
52 
55 
58 
60 #if DtHLA_1516
61  virtual const RTI::ParameterHandleValueMap& phvm() const;
62 #else
63  virtual const RTI::ParameterHandleValuePairSet& phvps() const;
64 #endif
65 
67 #if DtHLA_1516
68  virtual void setFromPhvm(
69  const RTI::ParameterHandleValueMap& pvMap);
70 #else
71  virtual void setFromPhvps(
72  const RTI::ParameterHandleValuePairSet& pvList);
73 #endif
74 
80  virtual void setExConn(DtExerciseConn* exConn, DtInterClassDesc* classDesc);
81 
83  virtual void printData() const;
84 
86  virtual const char* name() const;
87 
88 public:
89 
92  static DtInteraction* create();
93 
96  static void addCallback(RTI::InteractionClassHandle handle,
97  DtExerciseConn* conn,
98  DtUnknownInteractionCb cb, void* usr, DtDDMRegionSP region = DtDDMRegionSP());
99  static void removeCallback(RTI::InteractionClassHandle handle,
100  DtExerciseConn* conn,
101  DtUnknownInteractionCb cb, void* usr, DtDDMRegionSP region = DtDDMRegionSP());
102 
103 protected:
104 
107 #if !DtHLA_1516
108  void internalSetFromPhvps( const RTI::ParameterHandleValuePairSet& pvList);
109 #endif
110 
111 protected:
112 
113 #if DtHLA_1516
114  RTI::ParameterHandleValueMap myParams;
115 #else
116  RTI::ParameterHandleValuePairSet* myParams;
117 #endif
118  RTI::InteractionClassHandle myHandle;
119 };
120 
121 #endif
122 #endif
123 
DtInteraction is an abstract base class for representing HLA interactions (or events) (as opposed to ...
Definition: interactionHLA.h:33
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
virtual void setFromPhvps(const RTI::ParameterHandleValuePairSet &pvList)=0
Set contents from a parameter handle value pair set.
DtInteraction & operator=(const DtInteraction &orig)
assignment operator
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Instances of DtInterClassDesc are used to represent HLA Object and Interaction classes.
Definition: interClassDesc.h:33
static void removeCallback(DtExerciseConn *conn, const std::vector< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
virtual void printData() const
Print the interaction&#39;s data to DtInfo.
Definition: interactionHLA.h:348
virtual void setExConn(DtExerciseConn *exConn, DtInterClassDesc *classDesc=0)
Sets the interaction&#39;s ExerciseConn and class descriptor.
virtual const char * name() const =0
Name of the interaction. (Not necessarily the ClassName from the FOM.)
void(* DtUnknownInteractionCb)(DtUnknownInteraction *inter, void *usr)
Unknown interaction callback function signature.
Definition: unknownInteraction.h:27
static void addCallback(DtExerciseConn *conn, const std::vector< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
Register/Deregister callback function cb with conn, on all interaction class name (char*) contained i...
This file provides protocol to independence DtExerciseConn.
DtBoost::shared_ptr< DtDDMRegion > DtDDMRegionSP
Definition: region13.h:31
virtual const RTI::ParameterHandleValuePairSet & phvps() const =0
Get the parameter handle value pair set for the interaction.
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
class DtUnknownInteraction:
Definition: unknownInteraction.h:34
RTI::ParameterHandleValuePairSet * myParams
Definition: unknownInteraction.h:116
RTI::InteractionClassHandle myHandle
Definition: unknownInteraction.h:118
This file provide the HLA declaration for the class DtInteraction.

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)