47 LIBDCP_DISABLE_WARNINGS
48 #include <asdcp/KM_log.h>
49 LIBDCP_ENABLE_WARNINGS
50 #include <boost/filesystem.hpp>
51 #include <boost/function.hpp>
52 #include <boost/optional.hpp>
62 #define LIBDCP_UNUSED(x) (void)(x)
79 class CertificateChain;
84 extern std::string make_uuid ();
92 extern std::string
make_digest(boost::filesystem::path filename, boost::function<
void (int64_t, int64_t)>);
96 extern bool ids_equal (std::string a, std::string b);
97 extern std::string remove_urn_uuid (std::string raw);
107 extern void init (boost::optional<boost::filesystem::path> resources_directory = boost::optional<boost::filesystem::path>());
118 extern int base64_decode (std::string
const & in,
unsigned char* out,
int out_length);
120 extern boost::optional<boost::filesystem::path> relative_to_root (boost::filesystem::path root, boost::filesystem::path file);
122 extern std::string file_to_string (boost::filesystem::path, uintmax_t max_length = 1048576);
123 extern void write_string_to_file(std::string
const&
string, boost::filesystem::path
const& path);
129 extern std::string openjpeg_version();
130 extern std::string spaces (
int n);
131 extern void indent (xmlpp::Element* element,
int initial);
146 extern std::string
unique_string (std::vector<std::string> existing, std::string base);
148 extern ASDCP::Dictionary
const* asdcp_smpte_dict;
150 extern boost::filesystem::path directory_containing_executable ();
151 extern boost::filesystem::path resources_directory ();
161 Kumu::LogEntryList _log;
162 Kumu::ILogSink& _old;
163 Kumu::EntryListLogSink* _sink;
167 template <
class From,
class To>
169 add_to_container(To& container, From source)
171 std::copy(source.begin(), source.end(), std::back_inserter(container));
Class to hold an arbitrary block of data.
A representation of a local time (down to the second), including its offset from GMT (equivalent to x...
Namespace for everything in libdcp.
std::string unique_string(std::vector< std::string > existing, std::string base)
void init(boost::optional< boost::filesystem::path > resources_directory=boost::optional< boost::filesystem::path >())
int base64_decode(std::string const &in, unsigned char *out, int out_length)
std::string private_key_fingerprint(std::string key)
bool day_less_than_or_equal(LocalTime a, LocalTime b)
std::string make_digest(boost::filesystem::path filename, boost::function< void(int64_t, int64_t)>)
bool day_greater_than_or_equal(LocalTime a, LocalTime b)