VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
recordSet.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
7 
8 #ifndef DtRecordSet_H_
9 #define DtRecordSet_H_
10 
11 #include <vlutil/vlMachineTypes.h>
12 #include <vlpi/netStructs.h>
13 #include <vlpi/disEnums.h>
14 #include <vlpi/idTypeMap.h>
15 
19 {
25 };
26 
30 {
32 };
33 
34 
39 {
40 
41 public:
42 
44  DtRecordSet();
45  DtRecordSet(const DtRecordSet& orig);
46 
48  virtual ~DtRecordSet();
49 
51  DtRecordSet& operator=(const DtRecordSet& orig);
52  DtRecordSet& operator=(const DtNetRecordSet& orig);
53 
55  virtual bool setDatumID(DtDatumParam value);
56  virtual DtDatumParam datumID() const;
57 
59  virtual void setSerialNumber(DtU32 value);
60  virtual DtU32 serialNumber() const;
61 
65  virtual bool setRecordBitLength(DtU16 bitLength);
66  virtual DtU16 recordBitLength() const;
67 
71  virtual bool setRecordByteLength(int byteLength);
72  virtual int recordByteLength() const;
73 
76  virtual bool setRecordCount(DtU32 bytes);
77  virtual DtU32 recordCount() const;
78 
79 
83  virtual bool setDataBytes(DtU32 recordIndex, const void* data);
84  virtual bool getDataBytes(DtU32 recordIndex, void* buff) const;
85 
88  virtual bool setDataByte(
89  DtU32 recordIndex, DtU8 value, int byteIndex = 0);
90  virtual bool getDataByte(
91  DtU32 recordIndex, DtU8& value, int byteIndex = 0) const;
92 
96  virtual bool setDataInt16(DtU32 recordIndex, DtInt16& value);
97  virtual bool getDataInt16(DtU32 recordIndex, DtInt16& value) const;
98 
102  virtual bool setDataU16(DtU32 recordIndex, DtU16& value);
103  virtual bool getDataU16(DtU32 recordIndex, DtU16& value) const;
104 
108  virtual bool setDataInt32(DtU32 recordIndex, DtInt32& value);
109  virtual bool getDataInt32(DtU32 recordIndex, DtInt32& value) const;
110 
114  virtual bool setDataU32(DtU32 recordIndex, DtU32& value);
115  virtual bool getDataU32(DtU32 recordIndex, DtU32& value) const;
116 
120  virtual bool setDataFloat32(DtU32 recordIndex, DtFloat32& value);
121  virtual bool getDataFloat32(DtU32 recordIndex, DtFloat32& value) const;
122 
126  virtual bool setDataFloat64(DtU32 recordIndex, DtFloat64& value);
127  virtual bool getDataFloat64(DtU32 recordIndex, DtFloat64& value) const;
128 
129 
132  virtual int recordSetLength() const;
133 
134 
136  virtual void print() const;
137 
138  virtual void printDataToStream(std::ostream& stream) const;
139 
140 
142  virtual void unloadNetRecordSet(const DtNetRecordSet& record, int dataLength = 0);
143  virtual void loadNetRecordSet(DtNetRecordSet& record) const;
144 
145 
146 protected:
147 
153 
154  char* myData;
155 
156 };
157 
158 #endif
159 
DtU32 mySerialNumber
Definition: recordSet.h:149
Network-order unsigned 16-bit quantity.
Definition: vlNetTypes.h:52
Network-order unsigned 32-bit quantity.
Definition: vlNetTypes.h:99
char * myData
Definition: recordSet.h:154
DtU32 myPadding
Definition: recordSet.h:150
DtDatumParam myDatumID
Definition: recordSet.h:148
Instances of DtRecordSet are used to contain the record sets used by the PDU classes which inherit fr...
Definition: recordSet.h:38
DtU16 myRecordLength
Definition: recordSet.h:151
DtNetU32 mySerialNumber
Definition: recordSet.h:21
unsigned char DtU8
An eight bit unsigned integer value.
Definition: vlMachineTypes.h:137
DtNetU32 myDatumID
Definition: recordSet.h:20
#define DT_DLL_VLPROTIND
Definition: vlMachineTypes.h:110
unsigned short DtU16
A 16 bit unsigned integer value.
Definition: vlMachineTypes.h:140
short int DtInt16
A sixteen bit integer value.
Definition: vlMachineTypes.h:206
DtNetU32 myNumRecordSets
Definition: recordSet.h:31
Contains the standard DIS enumerations.
DtNetRecordSet is the network structure for a record used by the PDU classes which inherit from the r...
Definition: recordSet.h:18
long int DtInt32
A 32 bit integer value.
Definition: vlMachineTypes.h:156
DtNetU32 myPadding
Definition: recordSet.h:22
DtDatumParam
([UID 66]) - Datum ID
Definition: disEnums.h:505
unsigned long DtU32
A 32 bit unsigned integer value.
Definition: vlMachineTypes.h:153
DtNetU16 myRecordLength
Definition: recordSet.h:23
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.
DtNetU16 myRecordCount
Definition: recordSet.h:24
DtU32 myRecordCount
Definition: recordSet.h:152

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)