open-dis-cpp
ExpendableReload.h
1 #pragma once
2 
3 #include <dis7/EntityType.h>
4 #include <dis7/utils/DataStream.h>
5 #include <dis7/opendis7_export.h>
6 
7 
8 namespace DIS
9 {
10 // An entity's expendable (chaff, flares, etc) information. Section 6.2.37
11 
12 // Copyright (c) 2007-2009, MOVES Institute, Naval Postgraduate School. All rights reserved.
13 //
14 // @author DMcG, jkg
15 
16 class OPENDIS7_EXPORT ExpendableReload
17 {
18 protected:
21 
22  unsigned int _station;
23 
24  unsigned short _standardQuantity;
25 
26  unsigned short _maximumQuantity;
27 
28  unsigned int _standardQuantityReloadTime;
29 
30  unsigned int _maximumQuantityReloadTime;
31 
32 
33  public:
35  virtual ~ExpendableReload();
36 
37  virtual void marshal(DataStream& dataStream) const;
38  virtual void unmarshal(DataStream& dataStream);
39 
40  EntityType& getExpendable();
41  const EntityType& getExpendable() const;
42  void setExpendable(const EntityType &pX);
43 
44  unsigned int getStation() const;
45  void setStation(unsigned int pX);
46 
47  unsigned short getStandardQuantity() const;
48  void setStandardQuantity(unsigned short pX);
49 
50  unsigned short getMaximumQuantity() const;
51  void setMaximumQuantity(unsigned short 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 
60 virtual int getMarshalledSize() const;
61 
62  bool operator ==(const ExpendableReload& rhs) const;
63 };
64 }
65 
66 // Copyright (c) 1995-2009 held by the author(s). All rights reserved.
67 // Redistribution and use in source and binary forms, with or without
68 // modification, are permitted provided that the following conditions
69 // are met:
70 //
71 // * Redistributions of source code must retain the above copyright
72 // notice, this list of conditions and the following disclaimer.
73 // * Redistributions in binary form must reproduce the above copyright
74 // notice, this list of conditions and the following disclaimer
75 // in the documentation and/or other materials provided with the
76 // distribution.
77 // * Neither the names of the Naval Postgraduate School (NPS)
78 // Modeling Virtual Environments and Simulation (MOVES) Institute
79 // (http://www.nps.edu and http://www.MovesInstitute.org)
80 // nor the names of its contributors may be used to endorse or
81 // promote products derived from this software without specific
82 // prior written permission.
83 //
84 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
85 // AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
86 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
87 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
88 // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
89 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
90 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
91 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
92 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
93 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
94 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
95 // POSSIBILITY OF SUCH DAMAGE.
EntityType _expendable
Type of expendable.
Definition: ExpendableReload.h:20
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: ExpendableReload.h:16
Definition: EntityType.h:15