diff options
Diffstat (limited to 'src')
| -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: |
