diff options
| -rw-r--r-- | src/dcp.cc | 22 | ||||
| -rw-r--r-- | src/dcp.h | 2 |
2 files changed, 24 insertions, 0 deletions
@@ -108,6 +108,28 @@ DCP::DCP (boost::filesystem::path directory) } +DCP::DCP (DCP&& other) + : _directory(std::move(other._directory)) + , _cpls(std::move(other._cpls)) + , _pkls(std::move(other._pkls)) + , _asset_map(std::move(other._asset_map)) + , _standard(std::move(other._standard)) +{ + +} + + +dcp::DCP& DCP::operator= (DCP&& other) +{ + _directory = std::move(other._directory); + _cpls = std::move(other._cpls); + _pkls = std::move(other._pkls); + _asset_map = std::move(other._asset_map); + _standard = std::move(other._standard); + return *this; +} + + void DCP::read (vector<dcp::VerificationNote>* notes, bool ignore_incorrect_picture_mxf_type) { @@ -93,6 +93,8 @@ public: DCP (DCP const&) = delete; DCP& operator= (DCP const&) = delete; + DCP (DCP &&); + DCP& operator= (DCP &&); /** Read a DCP. This method does not do any deep checking of the DCP's validity, but * if it comes across any bad things it will do one of two things. |
