VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
recordSetPdu.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
7 
8 #ifndef DtRecordSetPdu_H_
9 #define DtRecordSetPdu_H_
10 
11 #if DtDIS
12 
13 #include <vlutil/vlMachineTypes.h>
14 #include "hostStructs.h"
15 #include "interaction.h"
16 #include "packets/recordSetP.h"
17 
18 #include <vlpi/recordSet.h>
19 
20 
23 class DT_DLL_VL DtRecordSetPdu : public DtInteraction
24 {
25 
26 public:
27 
29  virtual ~DtRecordSetPdu();
30 
32  DtRecordSetPdu& operator=(const DtRecordSetPdu& orig);
33 
35  virtual bool setNumRecordSets(DtU32 numSets);
36  virtual DtU32 numRecordSets() const;
37 
41  virtual bool setRecordSet(int index, const DtRecordSet& recSet);
42  virtual bool getRecordSet(int index, DtRecordSet& recSet) const;
43 
45  virtual void printData() const;
46 
48  virtual void printDataToStream(std::ostream& stream) const;
49 
50 protected:
51 
53  DtRecordSetPdu();
54  DtRecordSetPdu(const DtRecordSetPdu& orig);
55 
62  bool validateRecordSets(DtNetRecordSetPdu& netStruct);
63 
67  virtual DtNetRecordSetPdu* netRecordSetPduStruct() const = 0;
68 
70  virtual char* var() const;
71 
75  virtual int netRecordSetLength() const;
76 
78  virtual int recordSetOffset(int recordSetIndex) const;
79 
82  DtRecordSetPdu* self() const;
83 
84 protected:
85 
88  int mySaveRecCount;
89  int mySaveBuffCount;
90 
91 };
92 
93 #endif
94 #endif
95 
DtInteraction is an abstract base class for representing HLA interactions (or events) (as opposed to ...
Definition: interactionHLA.h:33
DtInteraction & operator=(const DtInteraction &orig)
assignment operator
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Instances of DtRecordSet are used to contain the record sets used by the PDU classes which inherit fr...
Definition: recordSet.h:37
virtual void printData() const
Print the interaction&#39;s data to DtInfo.
Definition: interactionHLA.h:348
This file is used as a convenience to group interaction concepts together.
virtual void printDataToStream(std::ostream &stream) const
Print the interaction&#39;s data to the stream.
Definition: interactionHLA.h:356
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
unsigned long DtU32
A 32 bit unsigned integer value.
Definition: vlMachineTypes.h:153
DtNetRecordSetPdu is the network structure for a record set used by the PDU classes which inherit fro...
Definition: recordSet.h:28
This file contains typedefs for machine dependant types.

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)