Cleanup: comment formatting for auto-generated docs.
[libdcp.git] / src / verify.h
index 0474dca2dfc000acf3e2903f863c9d67e7883a09..37a1fc11400fba8235faa4896e93ffd9039a27b0 100644 (file)
@@ -50,7 +50,7 @@
 #include <vector>
 
 
-/* Something in windows.h defines this */
+/* windows.h defines this but we want to use it */
 #undef ERROR
 
 
@@ -413,7 +413,7 @@ public:
                 *  file contains the ASSETMAP filename
                 */
                DUPLICATE_ASSET_ID_IN_ASSETMAP,
-               /** An Interop subtitle asset has no subtitles.
+               /** An Interop subtitle asset has no subtitles
                 *  note contains the asset ID
                 *  file contains the asset filename
                 */
@@ -456,7 +456,12 @@ public:
                /** A SMPTE subtitle asset has at least one <Text> element but no <LoadFont>
                 *  id contains the ID of the subtitle asset.
                 */
-               MISSING_LOAD_FONT
+               MISSING_LOAD_FONT,
+               /** An ID in an asset map does not match the ID obtained from reading the actual file.
+                *  id contains the ID from the asset map.
+                *  other_id contains the ID from the file.
+                */
+               MISMATCHED_ASSET_MAP_ID,
        };
 
        VerificationNote (Type type, Code code)
@@ -512,6 +517,7 @@ private:
                COMPONENT,
                SIZE,
                ID,
+               OTHER_ID,
        };
 
        template <class T>
@@ -573,6 +579,15 @@ public:
                return data<std::string>(Data::ID);
        }
 
+       VerificationNote& set_other_id(std::string other_id) {
+               _data[Data::OTHER_ID] = other_id;
+               return *this;
+       }
+
+       boost::optional<std::string> other_id() const {
+               return data<std::string>(Data::OTHER_ID);
+       }
+
 private:
        Type _type;
        Code _code;