OpenTREP Logo  0.07.18
C++ Open Travel Request Parsing Library
Loading...
Searching...
No Matches
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
10namespace OPENTREP {
11
18 struct Language {
19 public:
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
static const std::string & getLongLabel(const EN_Language &)
Definition Language.cpp:37
static EN_Language getCode(const std::string &)
Definition Language.cpp:48
static const std::string & getShortLabel(const EN_Language &)
Definition Language.cpp:43