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