diff options
Diffstat (limited to 'src/dcp.h')
| -rw-r--r-- | src/dcp.h | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -41,6 +41,7 @@ #define LIBDCP_DCP_H +#include "asset_map.h" #include "certificate.h" #include "compose.hpp" #include "metadata.h" @@ -165,7 +166,11 @@ public: /** @return Standard of a DCP that was read in */ boost::optional<Standard> standard () const { - return _standard; + if (!_asset_map) { + return {}; + } + + return _asset_map->standard(); } boost::filesystem::path directory () const { @@ -180,7 +185,11 @@ public: } boost::optional<boost::filesystem::path> asset_map_path () { - return _asset_map; + if (!_asset_map) { + return {}; + } + + return _asset_map->path(); } static std::vector<boost::filesystem::path> directories_from_files (std::vector<boost::filesystem::path> files); @@ -200,15 +209,11 @@ private: /** The directory that we are writing to */ boost::filesystem::path _directory; + boost::optional<AssetMap> _asset_map; /** The CPLs that make up this DCP */ std::vector<std::shared_ptr<CPL>> _cpls; /** The PKLs that make up this DCP */ std::vector<std::shared_ptr<PKL>> _pkls; - /** File that the ASSETMAP was read from or last written to */ - mutable boost::optional<boost::filesystem::path> _asset_map; - - /** Standard of DCP that was read in */ - boost::optional<Standard> _standard; }; |
