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