*/
+#ifndef LIBSUB_STL_BINARY_TABLES_H
+#define LIBSUB_STL_BINARY_TABLES_H
+
#include <string>
#include <map>
#include <boost/optional.hpp>
DISPLAY_STANDARD_LEVEL_1_TELETEXT,
DISPLAY_STANDARD_LEVEL_2_TELETEXT
};
-
+
enum LanguageGroup {
LANGUAGE_GROUP_LATIN,
LANGUAGE_GROUP_LATIN_CYRILLIC,
: value (v)
, description (d)
{}
-
+
T value;
std::string description;
};
boost::optional<Language> language_description_to_enum (std::string) const;
-private:
+private:
std::map<std::string, STLBinaryCode<DisplayStandard> > _display_standard_map;
std::map<std::string, STLBinaryCode<LanguageGroup> > _language_group_map;
std::map<std::string, STLBinaryCode<Language> > _language_map;
};
}
+
+#endif