summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dcp.cc9
-rw-r--r--src/dcp.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index a4ac3eb3..b9d23bad 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -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(); });
+}
+
+
diff --git a/src/dcp.h b/src/dcp.h
index 4e706349..814116f7 100644
--- a/src/dcp.h
+++ b/src/dcp.h
@@ -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: