open-dis-cpp
SeesPdu.h
1 #pragma once
2 
3 #include <dis6/EntityID.h>
4 #include <dis6/PropulsionSystemData.h>
5 #include <dis6/VectoringNozzleSystemData.h>
6 #include <vector>
7 #include <dis6/DistributedEmissionsFamilyPdu.h>
8 #include <dis6/utils/DataStream.h>
9 #include <dis6/opendis6_export.h>
10 
11 
12 namespace DIS
13 {
14 // Section 5.3.7.5. SEES PDU, supplemental emissions entity state information. COMPLETE
15 
16 // Copyright (c) 2007-2009, MOVES Institute, Naval Postgraduate School. All rights reserved.
17 //
18 // @author DMcG, jkg
19 
20 class OPENDIS6_EXPORT SeesPdu : public DistributedEmissionsFamilyPdu
21 {
22 protected:
25 
28 
31 
34 
36  unsigned short _numberOfPropulsionSystems;
37 
40 
42  std::vector<PropulsionSystemData> _propulsionSystemData;
43 
45  std::vector<VectoringNozzleSystemData> _vectoringSystemData;
46 
47 
48  public:
49  SeesPdu();
50  virtual ~SeesPdu();
51 
52  virtual void marshal(DataStream& dataStream) const;
53  virtual void unmarshal(DataStream& dataStream);
54 
55  EntityID& getOrginatingEntityID();
56  const EntityID& getOrginatingEntityID() const;
57  void setOrginatingEntityID(const EntityID &pX);
58 
59  unsigned short getInfraredSignatureRepresentationIndex() const;
60  void setInfraredSignatureRepresentationIndex(unsigned short pX);
61 
62  unsigned short getAcousticSignatureRepresentationIndex() const;
63  void setAcousticSignatureRepresentationIndex(unsigned short pX);
64 
65  unsigned short getRadarCrossSectionSignatureRepresentationIndex() const;
66  void setRadarCrossSectionSignatureRepresentationIndex(unsigned short pX);
67 
68  unsigned short getNumberOfPropulsionSystems() const;
69 
70  unsigned short getNumberOfVectoringNozzleSystems() const;
71 
72  std::vector<PropulsionSystemData>& getPropulsionSystemData();
73  const std::vector<PropulsionSystemData>& getPropulsionSystemData() const;
74  void setPropulsionSystemData(const std::vector<PropulsionSystemData>& pX);
75 
76  std::vector<VectoringNozzleSystemData>& getVectoringSystemData();
77  const std::vector<VectoringNozzleSystemData>& getVectoringSystemData() const;
78  void setVectoringSystemData(const std::vector<VectoringNozzleSystemData>& pX);
79 
80 
81 virtual int getMarshalledSize() const;
82 
83  bool operator ==(const SeesPdu& rhs) const;
84 };
85 }
86 
87 // Copyright (c) 1995-2009 held by the author(s). All rights reserved.
88 // Redistribution and use in source and binary forms, with or without
89 // modification, are permitted provided that the following conditions
90 // are met:
91 //
92 // * Redistributions of source code must retain the above copyright
93 // notice, this list of conditions and the following disclaimer.
94 // * Redistributions in binary form must reproduce the above copyright
95 // notice, this list of conditions and the following disclaimer
96 // in the documentation and/or other materials provided with the
97 // distribution.
98 // * Neither the names of the Naval Postgraduate School (NPS)
99 // Modeling Virtual Environments and Simulation (MOVES) Institute
100 // (http://www.nps.edu and http://www.MovesInstitute.org)
101 // nor the names of its contributors may be used to endorse or
102 // promote products derived from this software without specific
103 // prior written permission.
104 //
105 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
106 // AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
107 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
108 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
109 // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
110 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
111 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
112 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
113 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
114 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
115 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
116 // POSSIBILITY OF SUCH DAMAGE.
Symbolic names as defined in 5.1.4.
Definition: AcknowledgePdu.h:8
EntityID _orginatingEntityID
Originating entity ID.
Definition: SeesPdu.h:24
a class to support managing a network buffer.
Definition: DataStream.h:28
std::vector< PropulsionSystemData > _propulsionSystemData
variable length list of propulsion system data
Definition: SeesPdu.h:42
std::vector< VectoringNozzleSystemData > _vectoringSystemData
variable length list of vectoring system data
Definition: SeesPdu.h:45
Definition: EntityID.h:15
unsigned short _infraredSignatureRepresentationIndex
IR Signature representation index.
Definition: SeesPdu.h:27
unsigned short _radarCrossSectionSignatureRepresentationIndex
radar cross section representation index
Definition: SeesPdu.h:33
unsigned short _acousticSignatureRepresentationIndex
acoustic Signature representation index
Definition: SeesPdu.h:30
Definition: SeesPdu.h:20
unsigned short _numberOfVectoringNozzleSystems
how many vectoring nozzle systems
Definition: SeesPdu.h:39
unsigned short _numberOfPropulsionSystems
how many propulsion systems
Definition: SeesPdu.h:36
Definition: DistributedEmissionsFamilyPdu.h:16