KDIS  2-8-x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
VectoringNozzleSystem.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: VectoringNozzleSystem
32  created: 15/01/2009
33  author: Karl Jones
34 
35  purpose: Contains infomation describin the propulsion system
36  of the entity.
37  size: 64 bits / 8 octets
38 *********************************************************************/
39 
40 #pragma once
41 
42 #include "./DataTypeBase.h"
43 
44 namespace KDIS {
45 namespace DATA_TYPE {
46 
48 {
49 protected:
50 
52 
54 
55 public:
56 
57  static const KUINT16 VECTORING_NOZZLE_SYSTEM_SIZE = 8;
58 
60 
61  VectoringNozzleSystem( KDataStream & stream ) throw( KException );
62 
63  VectoringNozzleSystem( KFLOAT32 HorizontalDeflectionAngle, KFLOAT32 VerticalDeflectionAngle );
64 
65  virtual ~VectoringNozzleSystem();
66 
67  //************************************
68  // FullName: KDIS::DATA_TYPE::VectoringNozzleSystem::SetHorizontalDeflectionAngle
69  // KDIS::DATA_TYPE::VectoringNozzleSystem::GetHorizontalDeflectionAngle
70  //!Description: Nozzle deflection angle in degrees in the horizontal body axis
71  //! of the entity.
72  // Parameter: KFLOAT32 HDA, void
73  //************************************
74  void SetHorizontalDeflectionAngle( KFLOAT32 HDA );
75  KFLOAT32 GetHorizontalDeflectionAngle() const;
76 
77  //************************************
78  // FullName: KDIS::DATA_TYPE::VectoringNozzleSystem::SetVerticalDeflectionAngle
79  // KDIS::DATA_TYPE::VectoringNozzleSystem::GetVerticalDeflectionAngle
80  //!Description: Nozzle deflection angle in degrees in the horizontal body axis
81  //! of the entity.
82  // Parameter: KFLOAT32 VDA, void
83  //************************************
84  void SetVerticalDeflectionAngle( KFLOAT32 VDA );
85  KFLOAT32 GetVerticalDeflectionAngle() const;
86 
87  //************************************
88  // FullName: KDIS::DATA_TYPE::VectoringNozzleSystem::GetAsString
89  //!Description: Returns a string representation
90  //************************************
91  virtual KString GetAsString() const;
92 
93  //************************************
94  // FullName: KDIS::DATA_TYPE::VectoringNozzleSystem::Decode
95  //!Description: Convert From Network Data.
96  // Parameter: KDataStream & stream
97  //************************************
98  virtual void Decode( KDataStream & stream ) throw( KException );
99 
100  //************************************
101  // FullName: KDIS::DATA_TYPE::VectoringNozzleSystem::Encode
102  //!Description: Convert To Network Data.
103  // Parameter: KDataStream & stream
104  //************************************
105  virtual KDataStream Encode() const;
106  virtual void Encode( KDataStream & stream ) const;
107 
108  KBOOL operator == ( const VectoringNozzleSystem & Value ) const;
109  KBOOL operator != ( const VectoringNozzleSystem & Value ) const;
110 };
111 
112 } // END namespace DATA_TYPES
113 } // END namespace KDIS
114 
unsigned short int KUINT16
Definition: KDefines.h:101
Definition: VectoringNozzleSystem.h:47
float KFLOAT32
Definition: KDefines.h:113
KFLOAT32 m_f32HDeflAngle
Definition: VectoringNozzleSystem.h:51
Definition: KDefines.h:182
Definition: KDataStream.h:48
Definition: DataTypeBase.h:49
bool KBOOL
Definition: KDefines.h:119
std::string KString
Definition: KDefines.h:116
KFLOAT32 m_f32VDeflAngle
Definition: VectoringNozzleSystem.h:53
#define KDIS_EXPORT
Definition: KDefines.h:82