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