VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
attributeChangeResInter.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef attributeChangeResInter_H_
8 #define attributeChangeResInter_H_
9 
10 #if DtHLA
11 
12 #include "interactionWithEncDec.h"
13 #include "hostStructs.h"
14 #include <matrix/vlMath.h>
15 #include "datumRecordSet.h"
16 
17 
18 
22 
25 
26 
29  void* usr);
30 
31 
36 {
37 public:
38 
41 
43  virtual ~DtAttributeChangeResInter();
44 
47 
50 
52  virtual void printData() const;
53 
55  virtual void printDataToStream(std::ostream& stream) const;
56 
58  virtual void setObjectId(const DtGlobalObjectDesignator &id);
59  virtual const DtGlobalObjectDesignator &objectId() const;
60 
62  virtual void setNumPairs(DtU32 pairs);
63  virtual DtU32 numPairs() const;
64 
65 #if DtHLA_1516
66  virtual void setAvMap( const RTI::AttributeHandleValueMap& atts);
67 
68  virtual const RTI::AttributeHandleValueMap& avMap() const;
69 #else
70  virtual void setAvPairSet(
71  const RTI::AttributeHandleValuePairSet& atts);
72 
73  virtual const RTI::AttributeHandleValuePairSet& avPairSet() const;
74 #endif
75 
77 #if DtHLA_1516
78  virtual void setAttributeHandle(DtU32 index, RTI::AttributeHandle handle);
79  virtual RTI::AttributeHandle attributeHandle(DtU32 index) const;
80 #else
81  virtual void setAttributeHandle(DtU32 index, DtU32 handle);
82  virtual DtU32 attributeHandle(DtU32 index) const;
83 #endif
84 
86  virtual void setAttributeValueLength(DtU32 index, DtU32 length);
87  virtual DtU32 attributeValueLength(DtU32 index) const;
88 
89  virtual void setAttributeValue(DtU32 index, const char* usr);
90  virtual const char* attributeValue(DtU32 index) const;
91 
97  virtual DtDatumRecordSet* datumRecSet();
98  virtual const DtDatumRecordSet* datumRecSet() const;
99 
101  virtual void setAttributeChangeResult(DtAttributeChangeResult result);
102  virtual DtAttributeChangeResult attributeChangeResult() const;
103 
105  virtual const char* name() const;
106 
107 public:
108 
111  static DtInteraction* create();
112 
115  static void addCallback(DtExerciseConn* conn,
116  DtAttributeChangeResInterCb cb, void* usr,
117  DtDDMRegionSP region = DtDDMRegionSP());
118  static void removeCallback(DtExerciseConn* conn,
119  DtAttributeChangeResInterCb cb, void* usr,
120  DtDDMRegionSP region = DtDDMRegionSP());
121 
122 protected:
126 #if DtHLA_1516
127  mutable RTI::AttributeHandleValueMap myMap;
128 #endif
129 };
130 
131 inline const char* DtAttributeChangeResInter::name() const
132 {
133  return "DtAttributeChangeResInter";
134 }
135 
136 #endif
137 #endif
138 
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:61
Instances of DtAttributeChangeResInter are used to represent AttributeChangeResult Interactions in th...
Definition: attributeChangeResInter.h:35
DtInteractionWithEncDec & operator=(const DtInteractionWithEncDec &orig)
assignment operator
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtDatumRecordSet myRecordSet
Definition: attributeChangeResInter.h:124
DtAttributeChangeResult
Definition: disEnums.h:1006
static void removeCallback(DtExerciseConn *conn, const std::vector< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
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:358
DtAttributeChangeResult myAttributeChangeResult
Definition: attributeChangeResInter.h:125
virtual const char * name() const
Name of the interaction. (Not necessarily the ClassName from the FOM.)
Definition: attributeChangeResInter.h:131
virtual void printDataToStream(std::ostream &stream) const
Print the interaction&#39;s data to the stream.
Definition: interactionHLA.h:366
virtual const char * name() const =0
Name of the interaction. (Not necessarily the ClassName from the FOM.)
std::shared_ptr< DtDDMRegion > DtDDMRegionSP
Definition: region13.h:31
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...
DtGlobalObjectDesignator myObjectId
Definition: attributeChangeResInter.h:123
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
Definition: datumRecordSet.h:45
This file provides a declaration of the class DtInteractionWithEncDec.
class DtInteractionWithEncDec:
Definition: interactionWithEncDec.h:44
unsigned long DtU32
A 32 bit unsigned integer value.
Definition: vlMachineTypes.h:153
Instances of DtString are used to represent strings.
Definition: vlString.h:36
void(* DtAttributeChangeResInterCb)(DtAttributeChangeResInter *inter, void *usr)
AttributeChangeResult interaction callback function signature.
Definition: attributeChangeResInter.h:28

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)