VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
embeddedUnitListRecord.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #pragma once
7 
11 #include <vlutil/vlUuid.h>
12 #include <vlpi/netnEnums.h>
13 
15 
16 
18 {
19 public:
20 
23 
26 
28  DtEmbeddedUnitListRecord(void* netBuffer, unsigned int size);
29 
31  virtual ~DtEmbeddedUnitListRecord();
32 
34  virtual bool operator==(const DtEmbeddedUnitListRecord& other);
35 
37  virtual bool operator==(const DtStandardVariableRecord& other);
38 
40 
41  virtual unsigned int recordType() const;
42  virtual void setRecordType(unsigned int recordType);
44 
46 
47  virtual unsigned int recordLength() const;
49  virtual void setRecordLength(unsigned int recordLength);
51 
53  virtual const std::vector<DtVrlUuid>& uuids() const;
54 
56  virtual void setUuids(const std::vector<DtVrlUuid>& uuids);
57 
59  virtual void printData() const;
60 
62  virtual void printDataToStream(std::ostream& stream) const;
63 
64  // Writes the network representation to the given address.
65  // The assumption is that this memory is allocated and is of the proper size.
66  virtual void writeRecord(void* addr) const;
67 
70  virtual void setFromNet(const void* netRecord, unsigned int length, DtStandardVariableRetCode* retCode = NULL);
71 
73  virtual unsigned unpaddedNetsize() const;
74 
76  virtual unsigned int netSize() const;
77 
79  virtual DtStandardVariableRecord* clone() const;
80 
82  static DtStandardVariableRecord* create(void* addr, unsigned int length);
83 
85  static unsigned int recordTypeToUse();
86 
87 
88 
89 protected:
90  std::vector<DtVrlUuid> myVrlEmbeddedUnitList;
92  static const unsigned int theMinimumSize;
93 };
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Variable record for sending NETN embedded unit list record.
Definition: embeddedUnitListRecord.h:17
virtual unsigned unpaddedNetsize() const =0
This is the network size of the record without padding.
Contains the standard NETN enumerations.
virtual unsigned int netSize()
Returns the size of the network representation (including padding bytes)
virtual DtStandardVariableRecord * clone() const =0
Clone.
DtNetEmbeddedUnitListRecord myNetEmbeddedUnitListRecord
Definition: embeddedUnitListRecord.h:91
virtual void setRecordLength(unsigned int recordLength)=0
Must include size of record header and padding to 8 bytes.
virtual void printData() const
Prints the data to DtInfo.
std::vector< DtVrlUuid > myVrlEmbeddedUnitList
Definition: embeddedUnitListRecord.h:90
virtual void printDataToStream(std::ostream &stream) const =0
Prints the data to the specified stream.
virtual bool operator==(const DtStandardVariableRecord &other)=0
Equals operator.
This file declares DtNetEmbeddedUnitListRecord DtNetEmbeddedUnitListRecord is an attribute record str...
static const unsigned int theMinimumSize
Definition: embeddedUnitListRecord.h:92
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
Definition: embeddedUnitListRecordP.h:16
DtStandardVariableRetCode
Definition: standardVariableRecord.h:14
Contains the DtVrlUuid class declaration/definition.
This file contains typedefs for machine dependant types.

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)