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