open-dis-cpp
EngineFuelReload.h
1 #pragma once
2 
3 #include <dis7/utils/DataStream.h>
4 #include <dis7/opendis7_export.h>
5 
6 
7 namespace DIS
8 {
9 // For each type or location of engine fuell, this record specifies the type, location, fuel measurement units, and reload quantity and maximum quantity. Section 6.2.25.
10 
11 // Copyright (c) 2007-2009, MOVES Institute, Naval Postgraduate School. All rights reserved.
12 //
13 // @author DMcG, jkg
14 
15 class OPENDIS7_EXPORT EngineFuelReload
16 {
17 protected:
19  unsigned int _standardQuantity;
20 
22  unsigned int _maximumQuantity;
23 
26 
29 
31  unsigned char _fuelMeasurmentUnits;
32 
34  unsigned char _fuelLocation;
35 
37  unsigned char _padding;
38 
39 
40  public:
42  virtual ~EngineFuelReload();
43 
44  virtual void marshal(DataStream& dataStream) const;
45  virtual void unmarshal(DataStream& dataStream);
46 
47  unsigned int getStandardQuantity() const;
48  void setStandardQuantity(unsigned int pX);
49 
50  unsigned int getMaximumQuantity() const;
51  void setMaximumQuantity(unsigned int pX);
52 
53  unsigned int getStandardQuantityReloadTime() const;
54  void setStandardQuantityReloadTime(unsigned int pX);
55 
56  unsigned int getMaximumQuantityReloadTime() const;
57  void setMaximumQuantityReloadTime(unsigned int pX);
58 
59  unsigned char getFuelMeasurmentUnits() const;
60  void setFuelMeasurmentUnits(unsigned char pX);
61 
62  unsigned char getFuelLocation() const;
63  void setFuelLocation(unsigned char pX);
64 
65  unsigned char getPadding() const;
66  void setPadding(unsigned char pX);
67 
68 
69 virtual int getMarshalledSize() const;
70 
71  bool operator ==(const EngineFuelReload& rhs) const;
72 };
73 }
74 
75 // Copyright (c) 1995-2009 held by the author(s). All rights reserved.
76 // Redistribution and use in source and binary forms, with or without
77 // modification, are permitted provided that the following conditions
78 // are met:
79 //
80 // * Redistributions of source code must retain the above copyright
81 // notice, this list of conditions and the following disclaimer.
82 // * Redistributions in binary form must reproduce the above copyright
83 // notice, this list of conditions and the following disclaimer
84 // in the documentation and/or other materials provided with the
85 // distribution.
86 // * Neither the names of the Naval Postgraduate School (NPS)
87 // Modeling Virtual Environments and Simulation (MOVES) Institute
88 // (http://www.nps.edu and http://www.MovesInstitute.org)
89 // nor the names of its contributors may be used to endorse or
90 // promote products derived from this software without specific
91 // prior written permission.
92 //
93 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
94 // AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
95 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
96 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
97 // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
98 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
99 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
100 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
101 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
102 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
103 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
104 // POSSIBILITY OF SUCH DAMAGE.
unsigned char _fuelLocation
fuel location as related to the entity
Definition: EngineFuelReload.h:34
Symbolic names as defined in 5.1.4.
Definition: AcknowledgePdu.h:8
a class to support managing a network buffer.
Definition: DataStream.h:28
unsigned char _padding
padding
Definition: EngineFuelReload.h:37
unsigned int _standardQuantityReloadTime
seconds normally required to to reload standard qty
Definition: EngineFuelReload.h:25
Definition: EngineFuelReload.h:15
unsigned char _fuelMeasurmentUnits
Units of measure.
Definition: EngineFuelReload.h:31
unsigned int _maximumQuantityReloadTime
seconds normally required to to reload maximum qty
Definition: EngineFuelReload.h:28
unsigned int _standardQuantity
standard quantity of fuel loaded
Definition: EngineFuelReload.h:19
unsigned int _maximumQuantity
maximum quantity of fuel loaded
Definition: EngineFuelReload.h:22