open-dis-cpp
IFFFundamentalParameterData.h
1 #pragma once
2 
3 #include <dis7/utils/DataStream.h>
4 #include <dis7/opendis7_export.h>
5 
6 
7 namespace DIS
8 {
9 // Fundamental IFF atc data. Section 6.2.45
10 
11 // Copyright (c) 2007-2009, MOVES Institute, Naval Postgraduate School. All rights reserved.
12 //
13 // @author DMcG, jkg
14 
15 class OPENDIS7_EXPORT IFFFundamentalParameterData
16 {
17 protected:
19  float _erp;
20 
22  float _frequency;
23 
25  float _pgrf;
26 
28  float _pulseWidth;
29 
31  unsigned int _burstLength;
32 
34  unsigned char _applicableModes;
35 
37  unsigned char _systemSpecificData[3];
38 
39 
40  public:
42  virtual ~IFFFundamentalParameterData();
43 
44  virtual void marshal(DataStream& dataStream) const;
45  virtual void unmarshal(DataStream& dataStream);
46 
47  float getErp() const;
48  void setErp(float pX);
49 
50  float getFrequency() const;
51  void setFrequency(float pX);
52 
53  float getPgrf() const;
54  void setPgrf(float pX);
55 
56  float getPulseWidth() const;
57  void setPulseWidth(float pX);
58 
59  unsigned int getBurstLength() const;
60  void setBurstLength(unsigned int pX);
61 
62  unsigned char getApplicableModes() const;
63  void setApplicableModes(unsigned char pX);
64 
65  unsigned char* getSystemSpecificData();
66  const unsigned char* getSystemSpecificData() const;
67  void setSystemSpecificData( const unsigned char* pX);
68 
69 
70 virtual int getMarshalledSize() const;
71 
72  bool operator ==(const IFFFundamentalParameterData& rhs) const;
73 };
74 }
75 
76 // Copyright (c) 1995-2009 held by the author(s). All rights reserved.
77 // Redistribution and use in source and binary forms, with or without
78 // modification, are permitted provided that the following conditions
79 // are met:
80 //
81 // * Redistributions of source code must retain the above copyright
82 // notice, this list of conditions and the following disclaimer.
83 // * Redistributions in binary form must reproduce the above copyright
84 // notice, this list of conditions and the following disclaimer
85 // in the documentation and/or other materials provided with the
86 // distribution.
87 // * Neither the names of the Naval Postgraduate School (NPS)
88 // Modeling Virtual Environments and Simulation (MOVES) Institute
89 // (http://www.nps.edu and http://www.MovesInstitute.org)
90 // nor the names of its contributors may be used to endorse or
91 // promote products derived from this software without specific
92 // prior written permission.
93 //
94 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
95 // AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
96 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
97 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
98 // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
99 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
100 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
101 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
102 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
103 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
104 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
105 // POSSIBILITY OF SUCH DAMAGE.
float _pgrf
pgrf
Definition: IFFFundamentalParameterData.h:25
unsigned char _applicableModes
Applicable modes enumeration.
Definition: IFFFundamentalParameterData.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
float _erp
ERP.
Definition: IFFFundamentalParameterData.h:19
float _frequency
frequency
Definition: IFFFundamentalParameterData.h:22
Definition: IFFFundamentalParameterData.h:15
unsigned int _burstLength
Burst length.
Definition: IFFFundamentalParameterData.h:31
float _pulseWidth
Pulse width.
Definition: IFFFundamentalParameterData.h:28