open-dis-cpp
IffAtcNavAidsLayer2Pdu.h
1 #pragma once
2 
3 #include <dis6/LayerHeader.h>
4 #include <dis6/BeamData.h>
5 #include <dis6/BeamData.h>
6 #include <dis6/FundamentalParameterDataIff.h>
7 #include <vector>
8 #include <dis6/IffAtcNavAidsLayer1Pdu.h>
9 #include <dis6/utils/DataStream.h>
10 #include <dis6/opendis6_export.h>
11 
12 
13 namespace DIS
14 {
15 // Section 5.3.7.4.2 When present, layer 2 should follow layer 1 and have the following fields. This requires manual cleanup. the beamData attribute semantics are used in multiple ways. UNFINSISHED
16 
17 // Copyright (c) 2007-2009, MOVES Institute, Naval Postgraduate School. All rights reserved.
18 //
19 // @author DMcG, jkg
20 
21 class OPENDIS6_EXPORT IffAtcNavAidsLayer2Pdu : public IffAtcNavAidsLayer1Pdu
22 {
23 protected:
26 
29 
32 
34  std::vector<FundamentalParameterDataIff> _fundamentalIffParameters;
35 
36 
37  public:
39  virtual ~IffAtcNavAidsLayer2Pdu();
40 
41  virtual void marshal(DataStream& dataStream) const;
42  virtual void unmarshal(DataStream& dataStream);
43 
44  LayerHeader& getLayerHeader();
45  const LayerHeader& getLayerHeader() const;
46  void setLayerHeader(const LayerHeader &pX);
47 
48  BeamData& getBeamData();
49  const BeamData& getBeamData() const;
50  void setBeamData(const BeamData &pX);
51 
52  BeamData& getSecondaryOperationalData();
53  const BeamData& getSecondaryOperationalData() const;
54  void setSecondaryOperationalData(const BeamData &pX);
55 
56  std::vector<FundamentalParameterDataIff>& getFundamentalIffParameters();
57  const std::vector<FundamentalParameterDataIff>& getFundamentalIffParameters() const;
58  void setFundamentalIffParameters(const std::vector<FundamentalParameterDataIff>& pX);
59 
60 
61 virtual int getMarshalledSize() const;
62 
63  bool operator ==(const IffAtcNavAidsLayer2Pdu& rhs) const;
64 };
65 }
66 
67 // Copyright (c) 1995-2009 held by the author(s). All rights reserved.
68 // Redistribution and use in source and binary forms, with or without
69 // modification, are permitted provided that the following conditions
70 // are met:
71 //
72 // * Redistributions of source code must retain the above copyright
73 // notice, this list of conditions and the following disclaimer.
74 // * Redistributions in binary form must reproduce the above copyright
75 // notice, this list of conditions and the following disclaimer
76 // in the documentation and/or other materials provided with the
77 // distribution.
78 // * Neither the names of the Naval Postgraduate School (NPS)
79 // Modeling Virtual Environments and Simulation (MOVES) Institute
80 // (http://www.nps.edu and http://www.MovesInstitute.org)
81 // nor the names of its contributors may be used to endorse or
82 // promote products derived from this software without specific
83 // prior written permission.
84 //
85 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
86 // AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
87 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
88 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
89 // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
90 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
91 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
92 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
93 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
94 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
95 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
96 // POSSIBILITY OF SUCH DAMAGE.
Symbolic names as defined in 5.1.4.
Definition: AcknowledgePdu.h:8
Definition: LayerHeader.h:15
Definition: BeamData.h:15
Definition: IffAtcNavAidsLayer2Pdu.h:21
a class to support managing a network buffer.
Definition: DataStream.h:28
Definition: IffAtcNavAidsLayer1Pdu.h:21
BeamData _secondaryOperationalData
Secondary operational data, 5.2.57.
Definition: IffAtcNavAidsLayer2Pdu.h:31
LayerHeader _layerHeader
layer header
Definition: IffAtcNavAidsLayer2Pdu.h:25
BeamData _beamData
beam data
Definition: IffAtcNavAidsLayer2Pdu.h:28
std::vector< FundamentalParameterDataIff > _fundamentalIffParameters
variable length list of fundamental parameters.
Definition: IffAtcNavAidsLayer2Pdu.h:34