open-dis-cpp
DirectedEnergyAreaAimpoint.h
1 #pragma once
2 
3 #include <dis7/BeamAntennaPattern.h>
4 #include <dis7/DirectedEnergyTargetEnergyDeposition.h>
5 #include <vector>
6 #include <dis7/utils/DataStream.h>
7 #include <dis7/opendis7_export.h>
8 
9 
10 namespace DIS
11 {
12 // DE Precision Aimpoint Record. NOT COMPLETE. Section 6.2.21.2
13 
14 // Copyright (c) 2007-2009, MOVES Institute, Naval Postgraduate School. All rights reserved.
15 //
16 // @author DMcG, jkg
17 
18 class OPENDIS7_EXPORT DirectedEnergyAreaAimpoint
19 {
20 protected:
22  unsigned int _recordType;
23 
25  unsigned short _recordLength;
26 
28  unsigned short _padding;
29 
32 
35 
37  std::vector<BeamAntennaPattern> _beamAntennaParameterList;
38 
40  std::vector<DirectedEnergyTargetEnergyDeposition> _directedEnergyTargetEnergyDepositionRecordList;
41 
42 
43  public:
45  virtual ~DirectedEnergyAreaAimpoint();
46 
47  virtual void marshal(DataStream& dataStream) const;
48  virtual void unmarshal(DataStream& dataStream);
49 
50  unsigned int getRecordType() const;
51  void setRecordType(unsigned int pX);
52 
53  unsigned short getRecordLength() const;
54  void setRecordLength(unsigned short pX);
55 
56  unsigned short getPadding() const;
57  void setPadding(unsigned short pX);
58 
59  unsigned short getBeamAntennaPatternRecordCount() const;
60 
61  unsigned short getDirectedEnergyTargetEnergyDepositionRecordCount() const;
62 
63  std::vector<BeamAntennaPattern>& getBeamAntennaParameterList();
64  const std::vector<BeamAntennaPattern>& getBeamAntennaParameterList() const;
65  void setBeamAntennaParameterList(const std::vector<BeamAntennaPattern>& pX);
66 
67  std::vector<DirectedEnergyTargetEnergyDeposition>& getDirectedEnergyTargetEnergyDepositionRecordList();
68  const std::vector<DirectedEnergyTargetEnergyDeposition>& getDirectedEnergyTargetEnergyDepositionRecordList() const;
69  void setDirectedEnergyTargetEnergyDepositionRecordList(const std::vector<DirectedEnergyTargetEnergyDeposition>& pX);
70 
71 
72 virtual int getMarshalledSize() const;
73 
74  bool operator ==(const DirectedEnergyAreaAimpoint& rhs) const;
75 };
76 }
77 
78 // Copyright (c) 1995-2009 held by the author(s). All rights reserved.
79 // Redistribution and use in source and binary forms, with or without
80 // modification, are permitted provided that the following conditions
81 // are met:
82 //
83 // * Redistributions of source code must retain the above copyright
84 // notice, this list of conditions and the following disclaimer.
85 // * Redistributions in binary form must reproduce the above copyright
86 // notice, this list of conditions and the following disclaimer
87 // in the documentation and/or other materials provided with the
88 // distribution.
89 // * Neither the names of the Naval Postgraduate School (NPS)
90 // Modeling Virtual Environments and Simulation (MOVES) Institute
91 // (http://www.nps.edu and http://www.MovesInstitute.org)
92 // nor the names of its contributors may be used to endorse or
93 // promote products derived from this software without specific
94 // prior written permission.
95 //
96 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
97 // AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
98 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
99 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
100 // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
101 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
102 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
103 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
104 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
105 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
106 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
107 // POSSIBILITY OF SUCH DAMAGE.
std::vector< DirectedEnergyTargetEnergyDeposition > _directedEnergyTargetEnergyDepositionRecordList
list of DE target deposition records.
Definition: DirectedEnergyAreaAimpoint.h:40
unsigned short _recordLength
Length of Record.
Definition: DirectedEnergyAreaAimpoint.h:25
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 int _recordType
Type of Record.
Definition: DirectedEnergyAreaAimpoint.h:22
unsigned short _padding
Padding.
Definition: DirectedEnergyAreaAimpoint.h:28
Definition: DirectedEnergyAreaAimpoint.h:18
unsigned short _directedEnergyTargetEnergyDepositionRecordCount
Number of DE target energy depositon records.
Definition: DirectedEnergyAreaAimpoint.h:34
std::vector< BeamAntennaPattern > _beamAntennaParameterList
list of beam antenna records.
Definition: DirectedEnergyAreaAimpoint.h:37
unsigned short _beamAntennaPatternRecordCount
Number of beam antenna pattern records.
Definition: DirectedEnergyAreaAimpoint.h:31