Missing finalize() in dcpdecryptmxf.
[libdcp.git] / src / language_tag.h
index 06134b036d75c8698cd669c8dac585a0e5fc1013..6b4bebe63c7d43c0fca67adce4e270aa8c29eff3 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2020 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2020-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of libdcp.
 
     files in the program, then also delete it here.
 */
 
+
+/** @file  src/language_tag.cc
+ *  @brief LanguageTag class
+ */
+
+
 #ifndef LIBDCP_LANGUAGE_TAG_H
 #define LIBDCP_LANGUAGE_TAG_H
 
@@ -106,7 +112,7 @@ public:
                LanguageSubtag (char const* subtag)
                        : Subtag(subtag, SubtagType::LANGUAGE) {}
 
-               SubtagType type () const {
+               SubtagType type () const override {
                        return SubtagType::LANGUAGE;
                }
        };
@@ -119,7 +125,7 @@ public:
                ScriptSubtag (char const* subtag)
                        : Subtag(subtag, SubtagType::SCRIPT) {}
 
-               SubtagType type () const {
+               SubtagType type () const override {
                        return SubtagType::SCRIPT;
                }
        };
@@ -132,7 +138,7 @@ public:
                RegionSubtag (char const* subtag)
                        : Subtag(subtag, SubtagType::REGION) {}
 
-               SubtagType type () const {
+               SubtagType type () const override {
                        return SubtagType::REGION;
                }
        };
@@ -145,7 +151,7 @@ public:
                VariantSubtag (char const* subtag)
                        : Subtag(subtag, SubtagType::VARIANT) {}
 
-               SubtagType type () const {
+               SubtagType type () const override {
                        return SubtagType::VARIANT;
                }
 
@@ -162,7 +168,7 @@ public:
                ExtlangSubtag (char const* subtag)
                        : Subtag(subtag, SubtagType::EXTLANG) {}
 
-               SubtagType type () const {
+               SubtagType type () const override {
                        return SubtagType::EXTLANG;
                }
 
@@ -232,12 +238,20 @@ private:
        std::vector<ExtlangSubtag> _extlangs;
 };
 
+
 extern bool operator==(dcp::LanguageTag const& a, dcp::LanguageTag const& b);
+extern bool operator!=(dcp::LanguageTag const& a, dcp::LanguageTag const& b);
+extern bool operator<(dcp::LanguageTag const& a, dcp::LanguageTag const& b);
 extern std::ostream& operator<<(std::ostream& os, dcp::LanguageTag const& tag);
 
 
 extern void load_language_tag_lists (boost::filesystem::path tags_directory);
 
+
+extern std::vector<std::pair<std::string, std::string>> dcnc_tags ();
+
+
 }
 
+
 #endif