VR-Link API Documentation for DIS
 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 
24 {
25 
26 public:
27 
29  virtual ~DtRecordSetPdu();
30 
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 
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 
90 
91 };
92 
93 #endif
94 #endif
95 
DtInteraction is an base class for representing DIS PDUs which don&#39;t have state.
Definition: interactionDIS.h:24
int mySaveBuffCount
Definition: recordSetPdu.h:89
DtInteraction & operator=(const DtInteraction &orig)
assignment operator
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtRecordSetPdu is an abstract base class used by PDUs which require the record set functionality...
Definition: recordSetPdu.h:23
int mySaveRecCount
These are used by recordSetOffset() to save the value and index of the last offset which was computed...
Definition: recordSetPdu.h:88
virtual void printDataToStream(std::ostream &stream) const
Instances of DtRecordSet are used to contain the record sets used by the PDU classes which inherit fr...
Definition: recordSet.h:38
This file is used as a convenience to group interaction concepts together.
virtual void printData() const
Print the PDU&#39;s data (not including header).
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:29
This file contains typedefs for machine dependant types.

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)