Ref T472, initial version of category matcher

This commit is contained in:
Klaus Basan
2019-03-03 17:51:19 +01:00
committed by Mat Sutcliffe
parent 5846860382
commit 503bbf3a26
4 changed files with 106 additions and 1 deletions

View File

@@ -0,0 +1,46 @@
/* Copyright (C) 2019
* swift project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
* or distributed except according to the terms contained in the LICENSE file.
*/
//! \file
#ifndef BLACKMISC_SIMULATION_CATEGORYMATCHER_H
#define BLACKMISC_SIMULATION_CATEGORYMATCHER_H
#include "blackmisc/aviation/aircraftcategorylist.h"
#include "blackmisc/blackmiscexport.h"
namespace BlackMisc
{
namespace Simulation
{
//! Category matcher, uses the DB categories
class BLACKMISC_EXPORT CCategoryMatcher
{
public:
//! Constructor
CCategoryMatcher() {}
//! Used categories
void setCategories(const Aviation::CAircraftCategoryList &categories);
//! Specialized categories @{
const Aviation::CAircraftCategoryList &gliderCategories() const { return m_gliders; }
const Aviation::CAircraftCategoryList &militaryWingCategories() const { return m_militaryWingAircraft; }
const Aviation::CAircraftCategoryList &militaryRotorCategories() const { return m_militaryRotorAircraft; }
//! @}
private:
Aviation::CAircraftCategoryList m_all;
Aviation::CAircraftCategoryList m_gliders;
Aviation::CAircraftCategoryList m_militaryWingAircraft;
Aviation::CAircraftCategoryList m_militaryRotorAircraft;
};
} // ns
} // namespace
#endif // guard