diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-12-17 18:22:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-12-18 01:10:32 +0100 |
| commit | 18446861340bfb301b2157e1ebc7fa532bd75952 (patch) | |
| tree | e3ab3c5dd12302700a92d9327f13529235a70ac6 | |
| parent | a8c0fd03be2ee810741fe7ab2063926ea8834e8b (diff) | |
Add can_be_read() to DCP.
| -rw-r--r-- | src/dcp.cc | 9 | ||||
| -rw-r--r-- | src/dcp.h | 2 |
2 files changed, 11 insertions, 0 deletions
@@ -691,3 +691,12 @@ DCP::cpl_summaries() const return cpls; } + +bool +DCP::can_be_read() const +{ + auto c = cpls(); + return std::all_of(c.begin(), c.end(), [](shared_ptr<const CPL> cpl) { return cpl->can_be_read(); }); +} + + @@ -204,6 +204,8 @@ public: return _asset_map; } + bool can_be_read() const; + static std::vector<boost::filesystem::path> directories_from_files (std::vector<boost::filesystem::path> files); private: |
