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