VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
iffInteractiveMode4ReplyRecord.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 
15 {
16 public:
17 
20 
23 
25  DtIffInteractiveMode4ReplyRecord(void* ptr, unsigned int size);
26 
29 
32 
34  virtual DtStandardVariableRecord& operator=(const DtStandardVariableRecord& other);
35 
37  virtual bool operator==(const DtIffInteractiveMode4ReplyRecord& 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 setInteractiveMode4Reply(DtU8);
72  virtual DtU8 interactiveMode4Reply() const;
73 
74 protected:
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.
Definition: iffInteractiveMode4ReplyRecord.h:14
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.
unsigned char DtU8
An eight bit unsigned integer value.
Definition: vlMachineTypes.h:137
DtNetIffInteractiveMode4ReplyRecord * myInteractiveMode4ReplyRecordPtr
Definition: iffInteractiveMode4ReplyRecord.h:76
DtNetIffInteractiveMode4ReplyRecord myInteractiveMode4ReplyRecord
Definition: iffInteractiveMode4ReplyRecord.h:75
virtual void writeRecord(void *addr) const =0
virtual unsigned int recordLength() const =0
Get/Set Record Length.
Definition: iffVariantRecordsP.h:159
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
DtStandardVariableRetCode
Definition: standardVariableRecord.h:14

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)