open-dis-cpp
FundamentalOperationalData.h
1 #pragma once
2 
3 #include <dis7/utils/DataStream.h>
4 #include <dis7/opendis7_export.h>
5 
6 
7 namespace DIS
8 {
9 // Basic operational data for IFF. Section 6.2.40.
10 
11 // Copyright (c) 2007-2009, MOVES Institute, Naval Postgraduate School. All rights reserved.
12 //
13 // @author DMcG, jkg
14 
15 class OPENDIS7_EXPORT FundamentalOperationalData
16 {
17 protected:
19  unsigned char _systemStatus;
20 
22  unsigned char _dataField1;
23 
25  unsigned char _informationLayers;
26 
28  unsigned char _dataField2;
29 
31  unsigned short _parameter1;
32 
34  unsigned short _parameter2;
35 
37  unsigned short _parameter3;
38 
40  unsigned short _parameter4;
41 
43  unsigned short _parameter5;
44 
46  unsigned short _parameter6;
47 
48 
49  public:
51  virtual ~FundamentalOperationalData();
52 
53  virtual void marshal(DataStream& dataStream) const;
54  virtual void unmarshal(DataStream& dataStream);
55 
56  unsigned char getSystemStatus() const;
57  void setSystemStatus(unsigned char pX);
58 
59  unsigned char getDataField1() const;
60  void setDataField1(unsigned char pX);
61 
62  unsigned char getInformationLayers() const;
63  void setInformationLayers(unsigned char pX);
64 
65  unsigned char getDataField2() const;
66  void setDataField2(unsigned char pX);
67 
68  unsigned short getParameter1() const;
69  void setParameter1(unsigned short pX);
70 
71  unsigned short getParameter2() const;
72  void setParameter2(unsigned short pX);
73 
74  unsigned short getParameter3() const;
75  void setParameter3(unsigned short pX);
76 
77  unsigned short getParameter4() const;
78  void setParameter4(unsigned short pX);
79 
80  unsigned short getParameter5() const;
81  void setParameter5(unsigned short pX);
82 
83  unsigned short getParameter6() const;
84  void setParameter6(unsigned short pX);
85 
86 
87 virtual int getMarshalledSize() const;
88 
89  bool operator ==(const FundamentalOperationalData& rhs) const;
90 };
91 }
92 
93 // Copyright (c) 1995-2009 held by the author(s). All rights reserved.
94 // Redistribution and use in source and binary forms, with or without
95 // modification, are permitted provided that the following conditions
96 // are met:
97 //
98 // * Redistributions of source code must retain the above copyright
99 // notice, this list of conditions and the following disclaimer.
100 // * Redistributions in binary form must reproduce the above copyright
101 // notice, this list of conditions and the following disclaimer
102 // in the documentation and/or other materials provided with the
103 // distribution.
104 // * Neither the names of the Naval Postgraduate School (NPS)
105 // Modeling Virtual Environments and Simulation (MOVES) Institute
106 // (http://www.nps.edu and http://www.MovesInstitute.org)
107 // nor the names of its contributors may be used to endorse or
108 // promote products derived from this software without specific
109 // prior written permission.
110 //
111 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
112 // AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
113 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
114 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
115 // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
116 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
117 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
118 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
119 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
120 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
121 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
122 // POSSIBILITY OF SUCH DAMAGE.
unsigned char _dataField2
enumeration
Definition: FundamentalOperationalData.h:28
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 short _parameter6
parameter, enumeration
Definition: FundamentalOperationalData.h:46
unsigned char _dataField1
data field 1
Definition: FundamentalOperationalData.h:22
Definition: FundamentalOperationalData.h:15
unsigned short _parameter2
parameter, enumeration
Definition: FundamentalOperationalData.h:34
unsigned short _parameter4
parameter, enumeration
Definition: FundamentalOperationalData.h:40
unsigned short _parameter1
parameter, enumeration
Definition: FundamentalOperationalData.h:31
unsigned char _systemStatus
system status
Definition: FundamentalOperationalData.h:19
unsigned short _parameter5
parameter, enumeration
Definition: FundamentalOperationalData.h:43
unsigned char _informationLayers
eight boolean fields
Definition: FundamentalOperationalData.h:25
unsigned short _parameter3
parameter, enumeration
Definition: FundamentalOperationalData.h:37