VR-Link API Documentation for HLA 1516
 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  // These are used by the exercise connection when received as partial updates from non coupled attribute PDUs
64  virtual void setOriginatingSimulationAddress(const DtSimulationAddress&);
65  virtual const DtSimulationAddress& originatingSimulationAddress() const;
66 
67 protected:
69 };

Document ID: Generated on Mon Apr 8 04:49:21 EDT 2019 from SVN revision 197403
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)