0.6.0
C++ Open Travel Request Parsing Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Language.hpp
Go to the documentation of this file.
1
#ifndef __OPENTREP_LANGUAGE_HPP
2
#define __OPENTREP_LANGUAGE_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <string>
9
10
namespace
OPENTREP {
11
18
struct
Language
{
19
public
:
25
typedef
enum
{
26
lg_com
= 0,
27
ar
,
ar_DZ
,
ar_MA
,
ar_SA
,
ar_TN
,
28
de
,
de_DE
,
29
en
,
en_GB
,
en_US
,
30
es
,
es_AR
,
es_ES
,
es_MX
,
31
fa
,
fa_IR
,
32
fr
,
fr_BE
,
fr_CA
,
fr_CH
,
fr_FR
,
33
he
,
he_IL
,
34
ko
,
ko_KR
,
35
pl
,
pl_PL
,
36
pt
,
pt_BR
,
pt_PT
,
37
sv
,
sv_SE
,
38
ru
,
ru_RU
,
39
uk
,
uk_UA
,
40
zh
,
zh_CN
,
zh_HK
,
zh_TW
,
41
LAST_VALUE
42
}
EN_Language
;
43
47
static
const
std::string&
getLongLabel
(
const
EN_Language
&);
48
52
static
const
std::string&
getShortLabel
(
const
EN_Language
&);
53
57
static
EN_Language
getCode
(
const
std::string&);
58
59
private
:
64
static
const
std::string _longLabels[
LAST_VALUE
+1];
65
69
static
const
std::string _shortLabels[
LAST_VALUE
+1];
70
};
71
72
}
73
#endif // __OPENTREP_LANGUAGE_HPP
OPENTREP::Language::sv
Definition:
Language.hpp:37
OPENTREP::Language::pt_BR
Definition:
Language.hpp:36
OPENTREP::Language::pt
Definition:
Language.hpp:36
OPENTREP::Language::es_MX
Definition:
Language.hpp:30
OPENTREP::Language::de
Definition:
Language.hpp:28
OPENTREP::Language::zh
Definition:
Language.hpp:40
OPENTREP::Language::zh_TW
Definition:
Language.hpp:40
OPENTREP::Language
Definition:
Language.hpp:18
OPENTREP::Language::getLongLabel
static const std::string & getLongLabel(const EN_Language &)
Definition:
Language.cpp:37
OPENTREP::Language::pl
Definition:
Language.hpp:35
OPENTREP::Language::uk
Definition:
Language.hpp:39
OPENTREP::Language::fr_BE
Definition:
Language.hpp:32
OPENTREP::Language::LAST_VALUE
Definition:
Language.hpp:41
OPENTREP::Language::EN_Language
EN_Language
Definition:
Language.hpp:25
OPENTREP::Language::zh_CN
Definition:
Language.hpp:40
OPENTREP::Language::fr_CH
Definition:
Language.hpp:32
OPENTREP::Language::ar_MA
Definition:
Language.hpp:27
OPENTREP::Language::getShortLabel
static const std::string & getShortLabel(const EN_Language &)
Definition:
Language.cpp:43
OPENTREP::Language::ko_KR
Definition:
Language.hpp:34
OPENTREP::Language::sv_SE
Definition:
Language.hpp:37
OPENTREP::Language::ar_TN
Definition:
Language.hpp:27
OPENTREP::Language::es_ES
Definition:
Language.hpp:30
OPENTREP::Language::he_IL
Definition:
Language.hpp:33
OPENTREP::Language::ar
Definition:
Language.hpp:27
OPENTREP::Language::he
Definition:
Language.hpp:33
OPENTREP::Language::ko
Definition:
Language.hpp:34
OPENTREP::Language::ru
Definition:
Language.hpp:38
OPENTREP::Language::fr_CA
Definition:
Language.hpp:32
OPENTREP::Language::es
Definition:
Language.hpp:30
OPENTREP::Language::lg_com
Definition:
Language.hpp:26
OPENTREP::Language::fa
Definition:
Language.hpp:31
OPENTREP::Language::ar_SA
Definition:
Language.hpp:27
OPENTREP::Language::en_US
Definition:
Language.hpp:29
OPENTREP::Language::ar_DZ
Definition:
Language.hpp:27
OPENTREP::Language::en
Definition:
Language.hpp:29
OPENTREP::Language::uk_UA
Definition:
Language.hpp:39
OPENTREP::Language::en_GB
Definition:
Language.hpp:29
OPENTREP::Language::ru_RU
Definition:
Language.hpp:38
OPENTREP::Language::fa_IR
Definition:
Language.hpp:31
OPENTREP::Language::getCode
static EN_Language getCode(const std::string &)
Definition:
Language.cpp:48
OPENTREP::Language::de_DE
Definition:
Language.hpp:28
OPENTREP::Language::es_AR
Definition:
Language.hpp:30
OPENTREP::Language::zh_HK
Definition:
Language.hpp:40
OPENTREP::Language::fr_FR
Definition:
Language.hpp:32
OPENTREP::Language::pl_PL
Definition:
Language.hpp:35
OPENTREP::Language::pt_PT
Definition:
Language.hpp:36
OPENTREP::Language::fr
Definition:
Language.hpp:32
Generated on Mon Feb 3 2014 14:17:07 for OpenTREP by
1.8.6