open-dis-cpp
CreateEntityReliablePdu.h
1 #pragma once
2 
3 #include <dis6/SimulationManagementWithReliabilityFamilyPdu.h>
4 #include <dis6/utils/DataStream.h>
5 #include <dis6/opendis6_export.h>
6 
7 
8 namespace DIS
9 {
10 // Section 5.3.12.1: creation of an entity , reliable. COMPLETE
11 
12 // Copyright (c) 2007-2009, MOVES Institute, Naval Postgraduate School. All rights reserved.
13 //
14 // @author DMcG, jkg
15 
17 {
18 protected:
21 
23  unsigned short _pad1;
24 
26  unsigned char _pad2;
27 
29  unsigned int _requestID;
30 
31 
32  public:
34  virtual ~CreateEntityReliablePdu();
35 
36  virtual void marshal(DataStream& dataStream) const;
37  virtual void unmarshal(DataStream& dataStream);
38 
39  unsigned char getRequiredReliabilityService() const;
40  void setRequiredReliabilityService(unsigned char pX);
41 
42  unsigned short getPad1() const;
43  void setPad1(unsigned short pX);
44 
45  unsigned char getPad2() const;
46  void setPad2(unsigned char pX);
47 
48  unsigned int getRequestID() const;
49  void setRequestID(unsigned int pX);
50 
51 
52 virtual int getMarshalledSize() const;
53 
54  bool operator ==(const CreateEntityReliablePdu& rhs) const;
55 };
56 }
57 
58 // Copyright (c) 1995-2009 held by the author(s). All rights reserved.
59 // Redistribution and use in source and binary forms, with or without
60 // modification, are permitted provided that the following conditions
61 // are met:
62 //
63 // * Redistributions of source code must retain the above copyright
64 // notice, this list of conditions and the following disclaimer.
65 // * Redistributions in binary form must reproduce the above copyright
66 // notice, this list of conditions and the following disclaimer
67 // in the documentation and/or other materials provided with the
68 // distribution.
69 // * Neither the names of the Naval Postgraduate School (NPS)
70 // Modeling Virtual Environments and Simulation (MOVES) Institute
71 // (http://www.nps.edu and http://www.MovesInstitute.org)
72 // nor the names of its contributors may be used to endorse or
73 // promote products derived from this software without specific
74 // prior written permission.
75 //
76 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
77 // AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
78 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
79 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
80 // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
81 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
82 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
83 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
84 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
85 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
86 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
87 // POSSIBILITY OF SUCH DAMAGE.
Definition: CreateEntityReliablePdu.h:16
Symbolic names as defined in 5.1.4.
Definition: AcknowledgePdu.h:8
Definition: SimulationManagementWithReliabilityFamilyPdu.h:18
a class to support managing a network buffer.
Definition: DataStream.h:28
unsigned char _requiredReliabilityService
level of reliability service used for this transaction
Definition: CreateEntityReliablePdu.h:20
unsigned char _pad2
padding
Definition: CreateEntityReliablePdu.h:26
unsigned int _requestID
Request ID.
Definition: CreateEntityReliablePdu.h:29
unsigned short _pad1
padding
Definition: CreateEntityReliablePdu.h:23