summaryrefslogtreecommitdiff
path: root/tools/dcpdiff.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-02-03 11:02:07 +0000
committerCarl Hetherington <cth@carlh.net>2015-02-03 11:02:07 +0000
commit04e22d37316badc8b46a6e7d390ef9917faf7985 (patch)
tree462739281ccb646a5cb7ccfe4138436ef75185d0 /tools/dcpdiff.cc
parent0c6af18e06e9aff329a613deadcd773768fddd42 (diff)
Fix build.
Diffstat (limited to 'tools/dcpdiff.cc')
-rw-r--r--tools/dcpdiff.cc20
1 files changed, 14 insertions, 6 deletions
diff --git a/tools/dcpdiff.cc b/tools/dcpdiff.cc
index 30c09f87..c2a454cf 100644
--- a/tools/dcpdiff.cc
+++ b/tools/dcpdiff.cc
@@ -22,11 +22,19 @@
#include "common.h"
#include "mxf.h"
#include <getopt.h>
+#include <boost/optional.hpp>
+#include <boost/shared_ptr.hpp>
#include <boost/filesystem.hpp>
#include <iostream>
-
-using namespace std;
-using namespace boost;
+#include <list>
+
+using std::list;
+using std::cerr;
+using std::cout;
+using std::string;
+using boost::shared_ptr;
+using boost::optional;
+using boost::dynamic_pointer_cast;
using namespace dcp;
static bool verbose = false;
@@ -81,7 +89,7 @@ load_dcp (boost::filesystem::path path, bool keep_going, bool ignore_missing_ass
}
}
}
-
+
} catch (FileError& e) {
cerr << "Could not read DCP " << path.string() << "; " << e.what() << " " << e.filename() << "\n";
exit (EXIT_FAILURE);
@@ -164,12 +172,12 @@ main (int argc, char* argv[])
exit (EXIT_FAILURE);
}
- if (!filesystem::exists (argv[optind])) {
+ if (!boost::filesystem::exists (argv[optind])) {
cerr << argv[0] << ": DCP " << argv[optind] << " not found.\n";
exit (EXIT_FAILURE);
}
- if (!filesystem::exists (argv[optind + 1])) {
+ if (!boost::filesystem::exists (argv[optind + 1])) {
cerr << argv[0] << ": DCP " << argv[optind + 1] << " not found.\n";
exit (EXIT_FAILURE);
}