open-dis-cpp
RepairCompletePdu.h
1 #pragma once
2 
3 #include <dis6/EntityID.h>
4 #include <dis6/EntityID.h>
5 #include <dis6/LogisticsFamilyPdu.h>
6 #include <dis6/utils/DataStream.h>
7 #include <dis6/opendis6_export.h>
8 
9 
10 namespace DIS
11 {
12 // Section 5.2.5.5. Repair is complete. 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 RepairCompletePdu : public LogisticsFamilyPdu
19 {
20 protected:
23 
26 
28  unsigned short _repair;
29 
31  short _padding2;
32 
33 
34  public:
36  virtual ~RepairCompletePdu();
37 
38  virtual void marshal(DataStream& dataStream) const;
39  virtual void unmarshal(DataStream& dataStream);
40 
41  EntityID& getReceivingEntityID();
42  const EntityID& getReceivingEntityID() const;
43  void setReceivingEntityID(const EntityID &pX);
44 
45  EntityID& getRepairingEntityID();
46  const EntityID& getRepairingEntityID() const;
47  void setRepairingEntityID(const EntityID &pX);
48 
49  unsigned short getRepair() const;
50  void setRepair(unsigned short pX);
51 
52  short getPadding2() const;
53  void setPadding2(short pX);
54 
55 
56 virtual int getMarshalledSize() const;
57 
58  bool operator ==(const RepairCompletePdu& rhs) const;
59 };
60 }
61 
62 // Copyright (c) 1995-2009 held by the author(s). All rights reserved.
63 // Redistribution and use in source and binary forms, with or without
64 // modification, are permitted provided that the following conditions
65 // are met:
66 //
67 // * Redistributions of source code must retain the above copyright
68 // notice, this list of conditions and the following disclaimer.
69 // * Redistributions in binary form must reproduce the above copyright
70 // notice, this list of conditions and the following disclaimer
71 // in the documentation and/or other materials provided with the
72 // distribution.
73 // * Neither the names of the Naval Postgraduate School (NPS)
74 // Modeling Virtual Environments and Simulation (MOVES) Institute
75 // (http://www.nps.edu and http://www.MovesInstitute.org)
76 // nor the names of its contributors may be used to endorse or
77 // promote products derived from this software without specific
78 // prior written permission.
79 //
80 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
81 // AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
82 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
83 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
84 // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
85 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
86 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
87 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
88 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
89 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
90 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
91 // 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
EntityID _repairingEntityID
Entity that is supplying.
Definition: RepairCompletePdu.h:25
Definition: LogisticsFamilyPdu.h:16
unsigned short _repair
Enumeration for type of repair.
Definition: RepairCompletePdu.h:28
short _padding2
padding, number prevents conflict with superclass ivar name
Definition: RepairCompletePdu.h:31
Definition: EntityID.h:15
EntityID _receivingEntityID
Entity that is receiving service.
Definition: RepairCompletePdu.h:22
Definition: RepairCompletePdu.h:18