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