VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
iffInteractiveBasicMode5Record.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #pragma once
7 
8 #ifdef DtDIS
9 
12 
13 
14 class DT_DLL_VL DtIffInteractiveBasicMode5Record : public DtIffAtcNavaidsVariableRecord
15 {
16 public:
17 
19  DtIffInteractiveBasicMode5Record();
20 
22  DtIffInteractiveBasicMode5Record(const DtIffInteractiveBasicMode5Record& orig);
23 
25  DtIffInteractiveBasicMode5Record(void* ptr, unsigned int size);
26 
28  DtIffInteractiveBasicMode5Record(DtNetIffInteractiveBasicMode5Record netRecord);
29 
31  virtual DtIffInteractiveBasicMode5Record& operator=(const DtIffInteractiveBasicMode5Record& record);
32 
34  virtual DtStandardVariableRecord& operator=(const DtStandardVariableRecord& other);
35 
37  virtual bool operator==(const DtIffInteractiveBasicMode5Record& record);
38 
40  virtual bool operator==(const DtStandardVariableRecord& record);
41 
43  static DtStandardVariableRecord* create(void* addr, unsigned int length);
44 
46  virtual DtStandardVariableRecord* clone() const;
47 
49  virtual unsigned int recordType() const;
50  virtual void setRecordType(unsigned int recordType);
51 
53  virtual unsigned int recordLength() const;
54  virtual void setRecordLength(unsigned int recordLength);
55 
57  virtual void printDataToStream(std::ostream& stream) const;
58 
59  // Writes the network representation to the given address.
60  // The assumption is that this memory is allocated and is of the proper size.
61  virtual void writeRecord(void * addr) const;
62 
64  virtual void setFromNet( const void* netRecord, unsigned int length,
65  DtStandardVariableRetCode* retCode = NULL);
66 
68  virtual unsigned unpaddedNetsize() const;
69 
71  virtual void setMode5MessageFormats(DtU32);
72  virtual DtU32 mode5MessageFormats() const;
73 
74 protected:
75  DtNetIffInteractiveBasicMode5Record myInteractiveBasicMode5Record;
76  DtNetIffInteractiveBasicMode5Record* myInteractiveBasicMode5RecordPtr;
77 
78 };
79 
80 #endif //DtDIS
Definition: iffAtcNavaidsVariableRecord.h:11
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
virtual unsigned unpaddedNetsize() const =0
This is the network size of the record without padding.
virtual DtStandardVariableRecord * clone() const =0
Clone.
virtual void setRecordLength(unsigned int recordLength)=0
Must include size of record header and padding to 8 bytes.
virtual void printDataToStream(std::ostream &stream) const =0
Prints the data to the specified stream.
virtual bool operator==(const DtStandardVariableRecord &other)=0
Equals operator.
virtual void writeRecord(void *addr) const =0
virtual unsigned int recordLength() const =0
Get/Set Record Length.
virtual unsigned int recordType() const =0
Get/Set Record Type.
virtual void setRecordType(unsigned int recordType)=0
Get/Set Record Type.
virtual void setFromNet(const void *netRecord, unsigned int length, DtStandardVariableRetCode *retCode=NULL)=0
Sets the record from Network Representation from the given location.
Definition: standardVariableRecord.h:22
unsigned long DtU32
A 32 bit unsigned integer value.
Definition: vlMachineTypes.h:153
DtStandardVariableRetCode
Definition: standardVariableRecord.h:14

Document ID: Generated on Tue Aug 10 00:12:31 EDT 2021 from SVN revision 232765
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)