#include "metadata.h"
#include "compose.hpp"
-using namespace std;
-using namespace boost;
+using std::string;
+using boost::shared_ptr;
+using boost::lexical_cast;
using namespace libdcp;
Asset::Asset (boost::filesystem::path directory, boost::filesystem::path file_name)
asset->add_child("Id")->add_child_text ("urn:uuid:" + _uuid);
asset->add_child("AnnotationText")->add_child_text (_file_name.string ());
asset->add_child("Hash")->add_child_text (digest ());
- asset->add_child("Size")->add_child_text (lexical_cast<string> (filesystem::file_size(path())));
+ asset->add_child("Size")->add_child_text (lexical_cast<string> (boost::filesystem::file_size(path())));
if (interop) {
asset->add_child("Type")->add_child_text (String::compose ("application/x-smpte-mxf;asdcpKind=%1", asdcp_kind ()));
} else {
chunk->add_child("Path")->add_child_text (_file_name.string ());
chunk->add_child("VolumeIndex")->add_child_text ("1");
chunk->add_child("Offset")->add_child_text ("0");
- chunk->add_child("Length")->add_child_text (lexical_cast<string> (filesystem::file_size(path())));
+ chunk->add_child("Length")->add_child_text (lexical_cast<string> (boost::filesystem::file_size(path())));
}
-filesystem::path
+boost::filesystem::path
Asset::path () const
{
- filesystem::path p;
+ boost::filesystem::path p;
p /= _directory;
p /= _file_name;
return p;
#include "types.h"
namespace ASDCP {
- class WriterInfo;
+ struct WriterInfo;
}
namespace xmlpp {
namespace ASDCP {
namespace JP2K {
- class PictureDescriptor;
+ struct PictureDescriptor;
}
}
#include <libcxml/cxml.h>
#include "signer.h"
#include "exceptions.h"
+#include "compose.hpp"
using std::string;
using std::list;
throw MiscError ("could not set key name");
}
- if (xmlSecDSigCtxSign (signature_context, parent->cobj ()) < 0) {
- throw MiscError ("could not sign");
+ int const r = xmlSecDSigCtxSign (signature_context, parent->cobj ());
+ if (r < 0) {
+ throw MiscError (String::compose ("could not sign (%1)", r));
}
xmlSecDSigCtxDestroy (signature_context);
namespace ASDCP {
namespace JP2K {
- class SFrameBuffer;
+ struct SFrameBuffer;
}
class AESDecContext;
}
conf.env.append_value('CXXFLAGS', '-DLIBDCP_POSIX')
if not conf.options.osx:
- conf.env.append_value('CXXFLAGS', ['-Wno-unused-result'])
+ conf.env.append_value('CXXFLAGS', ['-Wno-unused-result', '-Wno-unused-parameter'])
conf.check_cfg(package = 'openssl', args = '--cflags --libs', uselib_store = 'OPENSSL', mandatory = True)
conf.check_cfg(package = 'libxml++-2.6', args = '--cflags --libs', uselib_store = 'LIBXML++', mandatory = True)