X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fstl_binary_tables.h;h=4a6a7d86d6afa5ee236c7a0f51c7640ff58d9ee4;hb=17269578ff0164ffacf062d9a6e923eaf5f79ab3;hp=de9634baaaa1a5837582e6a7744e074449d13fc1;hpb=d6b067d2a2ec5f0490c9fb17ddd605d0e860480d;p=libsub.git diff --git a/src/stl_binary_tables.h b/src/stl_binary_tables.h index de9634b..4a6a7d8 100644 --- a/src/stl_binary_tables.h +++ b/src/stl_binary_tables.h @@ -17,8 +17,12 @@ */ +#ifndef LIBSUB_STL_BINARY_TABLES_H +#define LIBSUB_STL_BINARY_TABLES_H + #include #include +#include namespace sub { @@ -28,7 +32,7 @@ enum DisplayStandard { DISPLAY_STANDARD_LEVEL_1_TELETEXT, DISPLAY_STANDARD_LEVEL_2_TELETEXT }; - + enum LanguageGroup { LANGUAGE_GROUP_LATIN, LANGUAGE_GROUP_LATIN_CYRILLIC, @@ -182,7 +186,7 @@ public: : value (v) , description (d) {} - + T value; std::string description; }; @@ -216,7 +220,9 @@ public: std::string justification_enum_to_description (Justification) const; std::string comment_enum_to_description (Comment) const; -private: + boost::optional language_description_to_enum (std::string) const; + +private: std::map > _display_standard_map; std::map > _language_group_map; std::map > _language_map; @@ -227,3 +233,5 @@ private: }; } + +#endif