VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
actionRequestToObjInter.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 actionRequestToObjInter_H_
8 #define actionRequestToObjInter_H_
9 
10 #if DtHLA
11 
12 #include "interactionWithEncDec.h"
13 #include "hostStructs.h"
14 #include <matrix/vlMath.h>
16 
17 
21 
22 class DT_DLL_VL DtActionRequestToObjInter;
24 
25 
26 
28 typedef void (*DtActionRequestToObjInterCb)
29  (DtActionRequestToObjInter* inter, void* usr);
30 
31 
35 class DT_DLL_VL DtActionRequestToObjInter : public DtInteractionWithEncDec
36 {
37 public:
38 
40  DtActionRequestToObjInter();
41 
43  virtual ~DtActionRequestToObjInter();
44 
46  DtActionRequestToObjInter(
47  const DtActionRequestToObjInter& orig);
48 
50  DtActionRequestToObjInter& operator=(
51  const DtActionRequestToObjInter& orig);
52 
54  virtual void printData() const;
55 
57  virtual void printDataToStream(std::ostream& stream) const;
58 
60  virtual const DtGlobalObjectDesignatorList& objectIDs() const;
61  virtual DtGlobalObjectDesignatorList* objectIDs();
62 
64  virtual void setNumIds(DtU8 numIds);
65  virtual DtU8 numIds() const;
66 
68  virtual void setNthObjectId(
69  DtInt32 idIndex, const DtGlobalObjectDesignator& id);
70  virtual const DtGlobalObjectDesignator& nthObjectId(DtInt32 idIndex) const;
71 
73  virtual void setAction(DtActionId action);
74  virtual DtActionId action() const;
75 
77  virtual const char* name() const;
78 
79 public:
80 
83  static DtInteraction* create();
84 
87  static void addCallback(DtExerciseConn* conn,
88  DtActionRequestToObjInterCb cb, void* usr, DtDDMRegionSP region =
89  DtDDMRegionSP());
90  static void removeCallback(DtExerciseConn* conn,
91  DtActionRequestToObjInterCb cb, void* usr, DtDDMRegionSP region =
92  DtDDMRegionSP());
93 
94 protected:
95 
96  DtGlobalObjectDesignatorList myObjectList;
98  DtActionId myAction;
99 };
100 
101 #endif
102 #endif
103 
DtInteraction is an base class for representing DIS PDUs which don&#39;t have state.
Definition: interactionDIS.h:24
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
This file defines math constants and methods which may be useful in simulations.
DtActionId
Definition: disEnums.h:408
unsigned char DtU8
An eight bit unsigned integer value.
Definition: vlMachineTypes.h:137
Instances of DtGlobalObjectDesignatorList are list of globally significant object identifiers...
Definition: globalObjectDesignatorList.h:21
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
long int DtInt32
A 32 bit integer value.
Definition: vlMachineTypes.h:156
This class declares DtGlobalObjectDesignatorList.

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)