Bump libdcp for fix to spacey XSD filenames.
[libsub.git] / src / stl_binary_tables.h
index de9634baaaa1a5837582e6a7744e074449d13fc1..4a6a7d86d6afa5ee236c7a0f51c7640ff58d9ee4 100644 (file)
 
 */
 
+#ifndef LIBSUB_STL_BINARY_TABLES_H
+#define LIBSUB_STL_BINARY_TABLES_H
+
 #include <string>
 #include <map>
+#include <boost/optional.hpp>
 
 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> language_description_to_enum (std::string) const;
+
+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;
@@ -227,3 +233,5 @@ private:
 };
 
 }
+
+#endif