VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
groundVehicleLightingRecord.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 
14 
15 
17 {
18 public:
19 
22 
24  DtGroundVehicleLightingRecord(unsigned int dataType);
25 
28 
30  DtGroundVehicleLightingRecord(void* netBuffer, unsigned int size);
31 
34 
36  virtual bool operator==(const DtGroundVehicleLightingRecord& other);
37 
39  virtual bool operator==(const DtStandardVariableRecord& other);
40 
42 
43  virtual unsigned int recordType() const;
44  virtual void setRecordType(unsigned int recordType);
46 
48 
49  virtual unsigned int recordLength() const;
51  virtual void setRecordLength(unsigned int recordLength);
53 
55  virtual void setEmergencyLightsOn(bool val);
56 
58  virtual bool emergencyLightsOn() const;
59 
61  virtual void setLeftIndicatorLightsOn(bool val);
62 
64  virtual bool leftIndicatorLightsOn() const;
65 
67  virtual void setRightIndicatorLightsOn(bool val);
68 
70  virtual bool rightIndicatorLightsOn() const;
71 
73  virtual void printData() const;
74 
76  virtual void printDataToStream(std::ostream& stream) const;
77 
78  // Writes the network representation to the given address.
79  // The assumption is that this memory is allocated and is of the proper size.
80  virtual void writeRecord(void* addr) const;
81 
84  virtual void setFromNet(const void* netRecord, unsigned int length, DtStandardVariableRetCode* retCode = NULL);
85 
87  virtual unsigned unpaddedNetsize() const;
88 
90  virtual unsigned int netSize();
91 
93  virtual DtStandardVariableRecord* clone() const;
94 
96  static DtStandardVariableRecord* create(void* addr, unsigned int length);
97 
99  static unsigned int recordTypeToUse();
100 
102  static void setRecordTypeToUse(unsigned int typeToUse);
103 
104 
105 protected:
107  static const unsigned int theMinimumSize;
108 };
DtNetGroundVehicleLightingRecord myNetGroundVehicleLightingRecord
Definition: groundVehicleLightingRecord.h:106
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
virtual unsigned unpaddedNetsize() const =0
This is the network size of the record without padding.
This file declares DtNetGroundVehicleLightingRecord DtNetGroundVehicleLightingRecord is an attribute ...
virtual unsigned int netSize()
Returns the size of the network representation (including padding bytes)
static const unsigned int theMinimumSize
Definition: groundVehicleLightingRecord.h:107
virtual DtStandardVariableRecord * clone() const =0
Clone.
Definition: groundVehicleLightingRecordP.h:17
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.
Attribute record for sending extended Ground Vehicle lighting information across the network...
Definition: groundVehicleLightingRecord.h:16
virtual void printDataToStream(std::ostream &stream) const =0
Prints the data to the specified stream.
virtual bool operator==(const DtStandardVariableRecord &other)=0
Equals operator.
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
DtStandardVariableRetCode
Definition: standardVariableRecord.h:14
Contains the DtVrlUuid class declaration/definition.
This file contains typedefs for machine dependant types.

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)