open-dis-cpp
WarfareFamilyPdu.h
1 #pragma once
2 
3 #include <dis6/EntityID.h>
4 #include <dis6/EntityID.h>
5 #include <dis6/Pdu.h>
6 #include <dis6/utils/DataStream.h>
7 #include <dis6/opendis6_export.h>
8 
9 
10 namespace DIS
11 {
12 // Section 5.3.4. abstract superclass for fire and detonation pdus that have shared information. COMPLETE
13 
14 // Copyright (c) 2007-2009, MOVES Institute, Naval Postgraduate School. All rights reserved.
15 //
16 // @author DMcG, jkg
17 
18 class OPENDIS6_EXPORT WarfareFamilyPdu : public Pdu
19 {
20 protected:
23 
26 
27 
28  public:
30  virtual ~WarfareFamilyPdu();
31 
32  virtual void marshal(DataStream& dataStream) const;
33  virtual void unmarshal(DataStream& dataStream);
34 
35  EntityID& getFiringEntityID();
36  const EntityID& getFiringEntityID() const;
37  void setFiringEntityID(const EntityID &pX);
38 
39  EntityID& getTargetEntityID();
40  const EntityID& getTargetEntityID() const;
41  void setTargetEntityID(const EntityID &pX);
42 
43 
44 virtual int getMarshalledSize() const;
45 
46  bool operator ==(const WarfareFamilyPdu& rhs) const;
47 };
48 }
49 
50 // Copyright (c) 1995-2009 held by the author(s). All rights reserved.
51 // Redistribution and use in source and binary forms, with or without
52 // modification, are permitted provided that the following conditions
53 // are met:
54 //
55 // * Redistributions of source code must retain the above copyright
56 // notice, this list of conditions and the following disclaimer.
57 // * Redistributions in binary form must reproduce the above copyright
58 // notice, this list of conditions and the following disclaimer
59 // in the documentation and/or other materials provided with the
60 // distribution.
61 // * Neither the names of the Naval Postgraduate School (NPS)
62 // Modeling Virtual Environments and Simulation (MOVES) Institute
63 // (http://www.nps.edu and http://www.MovesInstitute.org)
64 // nor the names of its contributors may be used to endorse or
65 // promote products derived from this software without specific
66 // prior written permission.
67 //
68 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
69 // AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
70 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
71 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
72 // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
73 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
74 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
75 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
76 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
77 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
78 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
79 // 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: Pdu.h:15
Definition: WarfareFamilyPdu.h:18
Definition: EntityID.h:15
EntityID _targetEntityID
ID of the entity that is being shot at.
Definition: WarfareFamilyPdu.h:25
EntityID _firingEntityID
ID of the entity that shot.
Definition: WarfareFamilyPdu.h:22