VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
actionResponseFromObjInter.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef actionResponseFromObjInter_H_
8 #define actionResponseFromObjInter_H_
9 
10 #if DtHLA
11 
12 #include "interactionWithEncDec.h"
13 #include "hostStructs.h"
14 #include <matrix/vlMath.h>
15 
16 
17 
21 
24 
26 typedef void (*DtActionResponseFromObjInterCb)
27  (DtActionResponseFromObjInter* inter, void* usr);
28 
29 
34 {
35 public:
36 
39 
42 
45 
48  const DtActionResponseFromObjInter& orig);
49 
51  virtual void printData() const;
52 
54  virtual void printDataToStream(std::ostream& stream) const;
55 
57  virtual void setActionResult(DtResponseFlag response);
58  virtual DtResponseFlag actionResult() const;
59 
61  virtual const char* name() const;
62 
63 public:
64 
67  static DtInteraction* create();
68 
71  static void addCallback(DtExerciseConn* conn,
72  DtActionResponseFromObjInterCb cb, void* usr,
73  DtDDMRegionSP region = DtDDMRegionSP());
74  static void removeCallback(DtExerciseConn* conn,
75  DtActionResponseFromObjInterCb cb, void* usr,
76  DtDDMRegionSP region = DtDDMRegionSP());
77 
78 protected:
79 
81 };
82 
85 {
86  myActionResult = response;
87 }
88 
90 {
91  return myActionResult;
92 }
93 
94 inline const char* DtActionResponseFromObjInter::name() const
95 {
96  return "DtActionResponseFromObjInter";
97 }
98 
99 #endif
100 #endif
101 
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&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:58
virtual void setActionResult(DtResponseFlag response)
Set/Get action enum.
Definition: actionResponseFromObjInter.h:84
DtInteractionWithEncDec & operator=(const DtInteractionWithEncDec &orig)
assignment operator
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
static void removeCallback(DtExerciseConn *conn, const std::vector< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
DtResponseFlag
Definition: disEnums.h:402
This file defines math constants and methods which may be useful in simulations.
virtual void printData() const
Print the interaction&#39;s data to DtInfo.
Definition: interactionHLA.h:349
virtual void printDataToStream(std::ostream &stream) const
Print the interaction&#39;s data to the stream.
Definition: interactionHLA.h:357
virtual const char * name() const =0
Name of the interaction. (Not necessarily the ClassName from the FOM.)
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...
void(* DtActionResponseFromObjInterCb)(DtActionResponseFromObjInter *inter, void *usr)
ActionResponseFromObject interaction callback function signature.
Definition: actionResponseFromObjInter.h:27
DtBoost::shared_ptr< DtDDMRegion > DtDDMRegionSP
Definition: region13.h:31
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
This file provides a declaration of the class DtInteractionWithEncDec.
class DtInteractionWithEncDec:
Definition: interactionWithEncDec.h:44
virtual DtResponseFlag actionResult() const
Definition: actionResponseFromObjInter.h:89
Instances of DtActionResponseFromObjInter are used to represent ActionResponseFromObject Interactions...
Definition: actionResponseFromObjInter.h:33
virtual const char * name() const
Name of the interaction (Not necessarily the ClassName from the FOM).
Definition: actionResponseFromObjInter.h:94
DtResponseFlag myActionResult
Definition: actionResponseFromObjInter.h:80

Document ID: Generated on Tue Aug 10 00:12:31 EDT 2021 from SVN revision 232765
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)