KDIS  2-8-x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EnhancedMode1Code.h
Go to the documentation of this file.
1 /*********************************************************************
2 Copyright 2013 Karl Jones
3 All rights reserved.
4 
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
7 
8 1. Redistributions of source code must retain the above copyright notice, this
9  list of conditions and the following disclaimer.
10 2. Redistributions in binary form must reproduce the above copyright notice,
11  this list of conditions and the following disclaimer in the documentation
12  and/or other materials provided with the distribution.
13 
14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
18 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 
25 For Further Information Please Contact me at
26 Karljj1@yahoo.com
27 http://p.sf.net/kdis/UserGuide
28 *********************************************************************/
29 
30 /********************************************************************
31  class: EnhancedMode1Code
32  DIS: (7) 1278.1 - 2012
33  created: 6/03/2014
34  author: Karl Jones
35 
36  purpose: Mode 5 Enhanced Mode 1 information.
37 
38  Size: 16 bits / 2 octets
39 *********************************************************************/
40 
41 #pragma once
42 
43 #include "./ModeXCodeRecord.h"
44 
45 namespace KDIS {
46 namespace DATA_TYPE {
47 
49 {
50 public:
51 
53 
54  EnhancedMode1Code( KDataStream & stream ) throw( KException );
55 
56  virtual ~EnhancedMode1Code();
57 
58  //************************************
59  // FullName: KDIS::DATA_TYPE::EnhancedMode1Code::SetCodeElement1
60  // KDIS::DATA_TYPE::EnhancedMode1Code::GetCodeElement1
61  //!Description: Element 1 of the Enhanced Mode 1 code also known as Code Element D.
62  //! Value must be between 0-7.
63  // Parameter: KUINT8 CE
64  //************************************
65  void SetCodeElement1( KUINT8 CE );
66  KUINT8 GetCodeElement1();
67 
68  //************************************
69  // FullName: KDIS::DATA_TYPE::EnhancedMode1Code::SetCodeElement2
70  // KDIS::DATA_TYPE::EnhancedMode1Code::GetCodeElement2
71  //!Description: Element 2 of the Enhanced Mode 1 code also known as Code Element C.
72  //! Value must be between 0-7.
73  // Parameter: KUINT8 CE
74  //************************************
75  void SetCodeElement2( KUINT8 CE );
76  KUINT8 GetCodeElement2();
77 
78  //************************************
79  // FullName: KDIS::DATA_TYPE::EnhancedMode1Code::SetCodeElement3
80  // KDIS::DATA_TYPE::EnhancedMode1Code::GetCodeElement3
81  //!Description: Element 3 of the Enhanced Mode 1 code also known as Code Element B.
82  //! Value must be between 0-7.
83  // Parameter: KUINT8 CE
84  //************************************
85  void SetCodeElement3( KUINT8 CE );
86  KUINT8 GetCodeElement3();
87 
88  //************************************
89  // FullName: KDIS::DATA_TYPE::EnhancedMode1Code::SetCodeElement4
90  // KDIS::DATA_TYPE::EnhancedMode1Code::GetCodeElement4
91  //!Description: Element 4 of the Enhanced Mode 1 code also known as Code Element A.
92  //! Value must be between 0-7.
93  // Parameter: KUINT8 CE
94  //************************************
95  void SetCodeElement4( KUINT8 CE );
96  KUINT8 GetCodeElement4();
97 
98  //************************************
99  // FullName: KDIS::DATA_TYPE::EnhancedMode1Code::GetAsString
100  //!Description: Returns a string representation
101  //************************************
102  virtual KString GetAsString() const;
103 };
104 
105 } // END namespace DATA_TYPE
106 } // END namespace KDIS
Definition: KDefines.h:182
Definition: KDataStream.h:48
Definition: EnhancedMode1Code.h:48
std::string KString
Definition: KDefines.h:116
unsigned char KUINT8
Definition: KDefines.h:99
Definition: ModeXCodeRecord.h:48
#define KDIS_EXPORT
Definition: KDefines.h:82