VR-Link API Documentation for HLA 1516
 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 VT MAK
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 {
24 };
25 
29 {
31 };
32 
33 
38 {
39 
40 public:
41 
43  DtRecordSet();
44  DtRecordSet(const DtRecordSet& orig);
45 
47  virtual ~DtRecordSet();
48 
50  DtRecordSet& operator=(const DtRecordSet& orig);
51  DtRecordSet& operator=(const DtNetRecordSet& orig);
52 
54  virtual bool setDatumID(DtDatumParam value);
55  virtual DtDatumParam datumID() const;
56 
58  virtual void setSerialNumber(DtU32 value);
59  virtual DtU32 serialNumber() const;
60 
64  virtual bool setRecordBitLength(DtU16 bitLength);
65  virtual DtU16 recordBitLength() const;
66 
70  virtual bool setRecordByteLength(int byteLength);
71  virtual int recordByteLength() const;
72 
75  virtual bool setRecordCount(DtU32 bytes);
76  virtual DtU32 recordCount() const;
77 
78 
82  virtual bool setDataBytes(DtU32 recordIndex, const void* data);
83  virtual bool getDataBytes(DtU32 recordIndex, void* buff) const;
84 
87  virtual bool setDataByte(
88  DtU32 recordIndex, DtU8 value, int byteIndex = 0);
89  virtual bool getDataByte(
90  DtU32 recordIndex, DtU8& value, int byteIndex = 0) const;
91 
95  virtual bool setDataInt16(DtU32 recordIndex, DtInt16& value);
96  virtual bool getDataInt16(DtU32 recordIndex, DtInt16& value) const;
97 
101  virtual bool setDataU16(DtU32 recordIndex, DtU16& value);
102  virtual bool getDataU16(DtU32 recordIndex, DtU16& value) const;
103 
107  virtual bool setDataInt32(DtU32 recordIndex, DtInt32& value);
108  virtual bool getDataInt32(DtU32 recordIndex, DtInt32& value) const;
109 
113  virtual bool setDataU32(DtU32 recordIndex, DtU32& value);
114  virtual bool getDataU32(DtU32 recordIndex, DtU32& value) const;
115 
119  virtual bool setDataFloat32(DtU32 recordIndex, DtFloat32& value);
120  virtual bool getDataFloat32(DtU32 recordIndex, DtFloat32& value) const;
121 
125  virtual bool setDataFloat64(DtU32 recordIndex, DtFloat64& value);
126  virtual bool getDataFloat64(DtU32 recordIndex, DtFloat64& value) const;
127 
128 
131  virtual int recordSetLength() const;
132 
133 
135  virtual void print() const;
136 
137  virtual void printDataToStream(std::ostream& stream) const;
138 
139 
141  virtual void unloadNetRecordSet(const DtNetRecordSet& record, int dataLength = 0);
142  virtual void loadNetRecordSet(DtNetRecordSet& record) const;
143 
144 
145 protected:
146 
151 
152  char* myData;
153 
154 };
155 
156 #endif
157 
DtU32 mySerialNumber
Definition: recordSet.h:148
Network-order unsigned 16-bit quantity.
Definition: vlNetTypes.h:51
Network-order unsigned 32-bit quantity.
Definition: vlNetTypes.h:98
char * myData
Definition: recordSet.h:152
DtDatumParam myDatumID
Definition: recordSet.h:147
Instances of DtRecordSet are used to contain the record sets used by the PDU classes which inherit fr...
Definition: recordSet.h:37
DtU16 myRecordLength
Definition: recordSet.h:149
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:30
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
DtDatumParam
([UID 66]) - Datum ID
Definition: disEnums.h:501
unsigned long DtU32
A 32 bit unsigned integer value.
Definition: vlMachineTypes.h:153
DtNetU16 myRecordLength
Definition: recordSet.h:22
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.
DtNetU16 myRecordCount
Definition: recordSet.h:23
DtU32 myRecordCount
Definition: recordSet.h:150

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)