chore: structure basic
[KDIS.git] / Examples / Extending / Link16 / KDIS / Extras / PDU_FactoryLink16.h
blob3e5d67833e6a396832788ef5ca9f53fc9b76e520
1 /*********************************************************************
2 Copyright 2013 Karl Jones
3 All rights reserved.
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
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.
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.
25 For Further Information Please Contact me at
26 Karljj1@yahoo.com
27 http://p.sf.net/kdis/UserGuide
28 *********************************************************************/
30 /********************************************************************
31 class: PDU_FactoryLink16
32 created: 14/07/2015
33 author: Karl Jones
35 purpose: PDU Factory with added support for Link16.
36 *********************************************************************/
38 #pragma once
40 #include "KDIS/Extras/PDU_Factory.h"
41 #include "./../KDefinesLink16.h"
43 namespace KDIS {
44 namespace UTILS {
46 class KDIS_EXPORT_LINK16 PDU_FactoryLink16 : public PDU_Factory
48 public:
50 PDU_FactoryLink16();
52 ~PDU_FactoryLink16();
54 //************************************
55 // FullName: KDIS::UTILS::PDU_FactoryLink16::Decode
56 // Description: Checks if the Header belongs to a Link16 PDU before using the default PDU Factory.
57 // Parameter: const Header & H
58 // Parameter: KDataStream & Stream
59 //************************************
60 virtual std::unique_ptr<KDIS::PDU::Header> Decode( const KDIS::PDU::Header & H, KDataStream & Stream );
63 } // END namespace UTILS
64 } // END namespace KDIS