VR-Link API Documentation for HLA 1.3
 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 bool operator==(const DtStandardVariableRecord& other) = 0;
29 
31  virtual unsigned int recordType() const = 0;
32  virtual void setRecordType(unsigned int recordType) = 0;
33 
35  virtual unsigned int recordLength() const = 0;
36  virtual void setRecordLength(unsigned int recordLength) = 0;
37 
39  virtual void printData() const;
40 
42  virtual void printDataToStream(std::ostream& stream) const = 0;
43 
44  // Writes the network representation to the given address.
45  // The assumption is that this memory is allocated and is of the proper size.
46  virtual void writeRecord(void * addr) const = 0;
47 
49  virtual void setFromNet( const void* netRecord, unsigned int length, DtStandardVariableRetCode* retCode = NULL) = 0;
50 
52  virtual unsigned unpaddedNetsize() const = 0;
53 
55  virtual unsigned int netSize();
56 
58  virtual DtStandardVariableRecord* clone() const = 0;
59 
60 };

Document ID: Generated on Wed Jan 7 13:31:29 EST 2015 from SVN revision 149162
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)