#include "mxf.h"
#include <getopt.h>
#include <boost/optional.hpp>
-#include <boost/shared_ptr.hpp>
+#include <memory>
#include <boost/filesystem.hpp>
-#include <boost/foreach.hpp>
#include <iostream>
#include <list>
using std::cerr;
using std::cout;
using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
+using std::vector;
using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
#if BOOST_VERSION >= 106100
using namespace boost::placeholders;
#endif
void
note (NoteType t, string n)
{
- if (t == DCP_ERROR || verbose) {
+ if (t == NoteType::ERROR || verbose) {
cout << " " << n << "\n";
cout.flush ();
}
DCP* dcp = 0;
try {
dcp = new DCP (path);
- list<dcp::VerificationNote> notes;
+ vector<dcp::VerificationNote> notes;
dcp->read (¬es);
filter_notes (notes, ignore_missing_assets);
- BOOST_FOREACH (dcp::VerificationNote i, notes) {
+ for (auto i: notes) {
cerr << dcp::note_to_string(i) << "\n";
}
if (key) {
- list<shared_ptr<Asset> > assets = dcp->assets ();
- for (list<shared_ptr<Asset> >::const_iterator i = assets.begin(); i != assets.end(); ++i) {
- shared_ptr<MXF> mxf = dynamic_pointer_cast<MXF> (*i);
+ auto assets = dcp->assets ();
+ for (auto i: assets) {
+ auto mxf = dynamic_pointer_cast<MXF>(i);
if (mxf) {
mxf->set_key (Key (key.get ()));
}