open-dis-cpp
LaunchedMunitionRecord.h
1 #pragma once
2 
3 #include <dis7/EventIdentifier.h>
4 #include <dis7/EventIdentifier.h>
5 #include <dis7/EventIdentifier.h>
6 #include <dis7/Vector3Double.h>
7 #include <dis7/utils/DataStream.h>
8 #include <dis7/opendis7_export.h>
9 
10 
11 namespace DIS
12 {
13 // Identity of a communications node. Section 6.2.51
14 
15 // Copyright (c) 2007-2009, MOVES Institute, Naval Postgraduate School. All rights reserved.
16 //
17 // @author DMcG, jkg
18 
19 class OPENDIS7_EXPORT LaunchedMunitionRecord
20 {
21 protected:
22  EventIdentifier _fireEventID;
23 
24  unsigned short _padding;
25 
26  EventIdentifier _firingEntityID;
27 
28  unsigned short _padding2;
29 
30  EventIdentifier _targetEntityID;
31 
32  unsigned short _padding3;
33 
34  Vector3Double _targetLocation;
35 
36 
37  public:
39  virtual ~LaunchedMunitionRecord();
40 
41  virtual void marshal(DataStream& dataStream) const;
42  virtual void unmarshal(DataStream& dataStream);
43 
44  EventIdentifier& getFireEventID();
45  const EventIdentifier& getFireEventID() const;
46  void setFireEventID(const EventIdentifier &pX);
47 
48  unsigned short getPadding() const;
49  void setPadding(unsigned short pX);
50 
51  EventIdentifier& getFiringEntityID();
52  const EventIdentifier& getFiringEntityID() const;
53  void setFiringEntityID(const EventIdentifier &pX);
54 
55  unsigned short getPadding2() const;
56  void setPadding2(unsigned short pX);
57 
58  EventIdentifier& getTargetEntityID();
59  const EventIdentifier& getTargetEntityID() const;
60  void setTargetEntityID(const EventIdentifier &pX);
61 
62  unsigned short getPadding3() const;
63  void setPadding3(unsigned short pX);
64 
65  Vector3Double& getTargetLocation();
66  const Vector3Double& getTargetLocation() const;
67  void setTargetLocation(const Vector3Double &pX);
68 
69 
70 virtual int getMarshalledSize() const;
71 
72  bool operator ==(const LaunchedMunitionRecord& 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.
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: LaunchedMunitionRecord.h:19
Definition: Vector3Double.h:15
Definition: EventIdentifier.h:16