Improved comments.
[libdcp.git] / src / reel_closed_caption_asset.h
index 25f1f569f7c0b12da3574f563424de3a9eb939fc..12fc5e66a0aa28f22455caa9a076fe5b5ebd3a78 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2017 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of libdcp.
 
     files in the program, then also delete it here.
 */
 
+
 /** @file  src/reel_closed_caption_asset.h
- *  @brief ReelClosedCaptionAsset class.
+ *  @brief ReelClosedCaptionAsset class
  */
 
+
 #ifndef LIBDCP_REEL_CLOSED_CAPTION_ASSET_H
 #define LIBDCP_REEL_CLOSED_CAPTION_ASSET_H
 
+
 #include "language_tag.h"
 #include "subtitle_asset.h"
 #include "reel_asset.h"
-#include "reel_mxf.h"
+#include "reel_file_asset.h"
 
 
-struct verify_invalid_closed_caption_languages;
+struct verify_invalid_language2;
 
 
 namespace dcp {
 
+
 class SubtitleAsset;
 
+
 /** @class ReelClosedCaptionAsset
- *  @brief Part of a Reel's description which refers to a closed caption XML/MXF file.
+ *  @brief Part of a Reel's description which refers to a closed caption XML/MXF file
  */
-class ReelClosedCaptionAsset : public ReelAsset, public ReelMXF
+class ReelClosedCaptionAsset : public ReelAsset, public ReelFileAsset
 {
 public:
        ReelClosedCaptionAsset (std::shared_ptr<SubtitleAsset> asset, Fraction edit_rate, int64_t instrinsic_duration, int64_t entry_point);
@@ -80,7 +85,7 @@ public:
        }
 
 private:
-       friend struct ::verify_invalid_closed_caption_languages;
+       friend struct ::verify_invalid_language2;
 
        std::string key_type () const;
        std::string cpl_node_name (Standard standard) const;
@@ -89,6 +94,8 @@ private:
        boost::optional<std::string> _language;
 };
 
+
 }
 
+
 #endif