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