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