// ************************************************************************** // // (C) Copyright 2009 Swiss SIMTEC AG // // ************************************************************************** // // $HeadURL$ // $LastChangedBy$ // $LastChangedDate$ // $LastChangedRevision$ // // ************************************************************************** #pragma once #include #include enum PanGeoPairingDeviceId { PAN_GP_INVALID = -1, PAN_GP_REQUEST_MORTAR = 0, PAN_GP_REPORT_MORTAR = 1, PAN_GP_REQUEST_IGLA = 2, PAN_GP_REPORT_IGLA = 3, PAN_GP_REQUEST_MK19 = 4, PAN_GP_REPORT_MK19 = 5, PAN_GP_REQUEST_M109 = 6, PAN_GP_REPORT_M109 = 7, /* PAN_GP_REPORT_AGS17 = 8, PAN_GP_REPORT_MORTAR_2S12_SANI = 9, PAN_GP_REPORT_UR_83P = 10, PAN_GP_REPORT_2S19_HOWITZER = 11, PAN_GP_REPORT_2S3M_HOWITZER = 12, */ PAN_GP_REQUEST_G5_G6 = 13, PAN_GP_REPORT_G5_G6 = 14 }; enum e_AmmunitionType { AmmunitionTypeUnknown = -1, MortarType1 = 1, // Siehe Geo-Munition [GUEZE-2411] MortarType2 = 2, M60mm_m385 = 1, M60mm_m430 = 2, MK19Type_m385 = 2, MK19Type_m430 = 3, HE_M1A2 = 4, VLAP_M9703 = 5, SMK_BE_M2 = 6, CLUSTER_HEHC_M9609 = 7 }; enum e_IgnitionTypeG5G6 { IgnitionTypeUnknown = -1, IgnitionTypePercussion = 0, IgnitionTypeProximity = 1, IgnitionTypeTime = 2 }; namespace N_GeoPairingImpl { /** * This is the Data base class * * @author Daniel.Schmid * @version 1.0 * @created 01-Nov-2011 08:37:58 */ class GeoPairingDataBase { public: GeoPairingDataBase(const char *loggerName = nullptr); virtual ~GeoPairingDataBase() = default; UInt8 m_MessageID = 0; PanGeoPairingDeviceId m_DeviceID = PAN_GP_INVALID; /** * This function parses a data stream * * @param a_transparentData * @param a_sizeOfTransparentData */ virtual bool parse(const QByteArray& a_transparentData); protected: int m_Size = 2; NGL::INGLLogger &m_logger; }; }