open-dis-cpp
RadioEntityType.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.25. Identifies the type of radio
10 
11 // Copyright (c) 2007-2009, MOVES Institute, Naval Postgraduate School. All rights reserved.
12 //
13 // @author DMcG, jkg
14 
15 class OPENDIS6_EXPORT RadioEntityType
16 {
17 protected:
19  unsigned char _entityKind;
20 
22  unsigned char _domain;
23 
25  unsigned short _country;
26 
28  unsigned char _category;
29 
31  unsigned char _nomenclatureVersion;
32 
33  unsigned short _nomenclature;
34 
35 
36  public:
38  virtual ~RadioEntityType();
39 
40  virtual void marshal(DataStream& dataStream) const;
41  virtual void unmarshal(DataStream& dataStream);
42 
43  unsigned char getEntityKind() const;
44  void setEntityKind(unsigned char pX);
45 
46  unsigned char getDomain() const;
47  void setDomain(unsigned char pX);
48 
49  unsigned short getCountry() const;
50  void setCountry(unsigned short pX);
51 
52  unsigned char getCategory() const;
53  void setCategory(unsigned char pX);
54 
55  unsigned char getNomenclatureVersion() const;
56  void setNomenclatureVersion(unsigned char pX);
57 
58  unsigned short getNomenclature() const;
59  void setNomenclature(unsigned short pX);
60 
61 
62 virtual int getMarshalledSize() const;
63 
64  bool operator ==(const RadioEntityType& rhs) const;
65 };
66 }
67 
68 // Copyright (c) 1995-2009 held by the author(s). All rights reserved.
69 // Redistribution and use in source and binary forms, with or without
70 // modification, are permitted provided that the following conditions
71 // are met:
72 //
73 // * Redistributions of source code must retain the above copyright
74 // notice, this list of conditions and the following disclaimer.
75 // * Redistributions in binary form must reproduce the above copyright
76 // notice, this list of conditions and the following disclaimer
77 // in the documentation and/or other materials provided with the
78 // distribution.
79 // * Neither the names of the Naval Postgraduate School (NPS)
80 // Modeling Virtual Environments and Simulation (MOVES) Institute
81 // (http://www.nps.edu and http://www.MovesInstitute.org)
82 // nor the names of its contributors may be used to endorse or
83 // promote products derived from this software without specific
84 // prior written permission.
85 //
86 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
87 // AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
88 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
89 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
90 // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
91 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
92 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
93 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
94 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
95 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
96 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
97 // POSSIBILITY OF SUCH DAMAGE.
Definition: RadioEntityType.h:15
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 char _entityKind
Kind of entity.
Definition: RadioEntityType.h:19
unsigned char _category
category of entity
Definition: RadioEntityType.h:28
unsigned char _nomenclatureVersion
specific info based on subcategory field
Definition: RadioEntityType.h:31
unsigned short _country
country to which the design of the entity is attributed
Definition: RadioEntityType.h:25
unsigned char _domain
Domain of entity (air, surface, subsurface, space, etc)
Definition: RadioEntityType.h:22