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