VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
standardVariableRecord.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 
9 #include "vl/hostStructs.h"
11 
13 {
18 };
19 
21 {
22 public:
23 
26 
28  virtual ~DtStandardVariableRecord();
29 
31  virtual bool operator==(const DtStandardVariableRecord& other) = 0;
32 
34  virtual unsigned int recordType() const = 0;
35  virtual void setRecordType(unsigned int recordType) = 0;
36 
38  virtual unsigned int recordLength() const = 0;
39  virtual void setRecordLength(unsigned int recordLength) = 0;
40 
42  virtual void printData() const;
43 
45  virtual void printDataToStream(std::ostream& stream) const = 0;
46 
47  // Writes the network representation to the given address.
48  // The assumption is that this memory is allocated and is of the proper size.
49  virtual void writeRecord(void * addr) const = 0;
50 
52  virtual void setFromNet( const void* netRecord, unsigned int length, DtStandardVariableRetCode* retCode = NULL) = 0;
53 
55  virtual unsigned unpaddedNetsize() const = 0;
56 
58  virtual unsigned int netSize();
59 
61  virtual DtStandardVariableRecord* clone() const = 0;
62 
63 };

Document ID: Generated on Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)