| 1 |
/* |
| 2 |
* Copyright (C) 2005-2024 Team Kodi |
| 3 |
* This file is part of Kodi - https://kodi.tv |
| 4 |
* |
| 5 |
* SPDX-License-Identifier: GPL-2.0-or-later |
| 6 |
* See LICENSES/README.md for more information. |
| 7 |
*/ |
| 8 |
|
| 9 |
#include "InputCodingTableFactory.h" |
| 10 |
|
| 11 |
#include "InputCodingTableBasePY.h" |
| 12 |
#include "InputCodingTableKorean.h" |
| 13 |
#include "utils/log.h" |
| 14 |
|
| 15 |
IInputCodingTable* CInputCodingTableFactory::CreateCodingTable(const std::string& strTableName) |
| 16 |
{ |
| 17 |
if (strTableName == "BasePY") |
| 18 |
return new CInputCodingTableBasePY(); |
| 19 |
if (strTableName == "Korean") |
| 20 |
return new CInputCodingTableKorean(); |
| 21 |
return nullptr; |
| 22 |
} |