open-dis-cpp
IffAtcNavAidsLayer1Pdu.h
1 #pragma once
2 
3 #include <dis6/EntityID.h>
4 #include <dis6/EventID.h>
5 #include <dis6/Vector3Float.h>
6 #include <dis6/SystemID.h>
7 #include <dis6/IffFundamentalData.h>
8 #include <dis6/DistributedEmissionsFamilyPdu.h>
9 #include <dis6/utils/DataStream.h>
10 #include <dis6/opendis6_export.h>
11 
12 
13 namespace DIS
14 {
15 // 5.3.7.4.1: Navigational and IFF PDU. COMPLETE
16 
17 // Copyright (c) 2007-2009, MOVES Institute, Naval Postgraduate School. All rights reserved.
18 //
19 // @author DMcG, jkg
20 
22 {
23 protected:
26 
29 
32 
35 
37  unsigned short _pad2;
38 
41 
42 
43  public:
45  virtual ~IffAtcNavAidsLayer1Pdu();
46 
47  virtual void marshal(DataStream& dataStream) const;
48  virtual void unmarshal(DataStream& dataStream);
49 
50  EntityID& getEmittingEntityId();
51  const EntityID& getEmittingEntityId() const;
52  void setEmittingEntityId(const EntityID &pX);
53 
54  EventID& getEventID();
55  const EventID& getEventID() const;
56  void setEventID(const EventID &pX);
57 
58  Vector3Float& getLocation();
59  const Vector3Float& getLocation() const;
60  void setLocation(const Vector3Float &pX);
61 
62  SystemID& getSystemID();
63  const SystemID& getSystemID() const;
64  void setSystemID(const SystemID &pX);
65 
66  unsigned short getPad2() const;
67  void setPad2(unsigned short pX);
68 
69  IffFundamentalData& getFundamentalParameters();
70  const IffFundamentalData& getFundamentalParameters() const;
71  void setFundamentalParameters(const IffFundamentalData &pX);
72 
73 
74 virtual int getMarshalledSize() const;
75 
76  bool operator ==(const IffAtcNavAidsLayer1Pdu& rhs) const;
77 };
78 }
79 
80 // Copyright (c) 1995-2009 held by the author(s). All rights reserved.
81 // Redistribution and use in source and binary forms, with or without
82 // modification, are permitted provided that the following conditions
83 // are met:
84 //
85 // * Redistributions of source code must retain the above copyright
86 // notice, this list of conditions and the following disclaimer.
87 // * Redistributions in binary form must reproduce the above copyright
88 // notice, this list of conditions and the following disclaimer
89 // in the documentation and/or other materials provided with the
90 // distribution.
91 // * Neither the names of the Naval Postgraduate School (NPS)
92 // Modeling Virtual Environments and Simulation (MOVES) Institute
93 // (http://www.nps.edu and http://www.MovesInstitute.org)
94 // nor the names of its contributors may be used to endorse or
95 // promote products derived from this software without specific
96 // prior written permission.
97 //
98 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
99 // AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
100 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
101 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
102 // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
103 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
104 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
105 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
106 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
107 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
108 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
109 // POSSIBILITY OF SUCH DAMAGE.
Definition: IffFundamentalData.h:15
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: IffAtcNavAidsLayer1Pdu.h:21
SystemID _systemID
System ID information.
Definition: IffAtcNavAidsLayer1Pdu.h:34
Definition: EventID.h:15
Definition: Vector3Float.h:15
IffFundamentalData _fundamentalParameters
fundamental parameters
Definition: IffAtcNavAidsLayer1Pdu.h:40
Definition: EntityID.h:15
EntityID _emittingEntityId
ID of the entity that is the source of the emissions.
Definition: IffAtcNavAidsLayer1Pdu.h:25
Definition: SystemID.h:15
EventID _eventID
Number generated by the issuing simulation to associate realted events.
Definition: IffAtcNavAidsLayer1Pdu.h:28
Vector3Float _location
Location wrt entity.
Definition: IffAtcNavAidsLayer1Pdu.h:31
Definition: DistributedEmissionsFamilyPdu.h:16
unsigned short _pad2
padding
Definition: IffAtcNavAidsLayer1Pdu.h:37