libdcp
Classes | Namespaces | Macros | Functions | Variables
util.h File Reference

Utility methods and classes. More...

#include "array_data.h"
#include "local_time.h"
#include "types.h"
#include <asdcp/KM_log.h>
#include <boost/filesystem.hpp>
#include <boost/function.hpp>
#include <boost/optional.hpp>
#include <memory>
#include <string>
#include <stdint.h>

Go to the source code of this file.

Classes

class  dcp::ASDCPErrorSuspender
 

Namespaces

 dcp
 Namespace for everything in libdcp.
 

Macros

#define LIBDCP_UNUSED(x)   (void)(x)
 

Functions

std::string dcp::make_uuid ()
 
std::string dcp::make_digest (boost::filesystem::path filename, boost::function< void(float)>)
 
std::string dcp::make_digest (ArrayData data)
 
bool dcp::empty_or_white_space (std::string s)
 
bool dcp::ids_equal (std::string a, std::string b)
 
std::string dcp::remove_urn_uuid (std::string raw)
 
void dcp::init (boost::optional< boost::filesystem::path > resources_directory=boost::optional< boost::filesystem::path >())
 
int dcp::base64_decode (std::string const &in, unsigned char *out, int out_length)
 
boost::optional< boost::filesystem::path > dcp::relative_to_root (boost::filesystem::path root, boost::filesystem::path file)
 
FILE * dcp::fopen_boost (boost::filesystem::path, std::string)
 
std::string dcp::file_to_string (boost::filesystem::path, uintmax_t max_length=1048576)
 
std::string dcp::private_key_fingerprint (std::string key)
 
xmlpp::Node * dcp::find_child (xmlpp::Node const *node, std::string name)
 
std::string dcp::openjpeg_version ()
 
std::string dcp::spaces (int n)
 
void dcp::indent (xmlpp::Element *element, int initial)
 
bool dcp::day_less_than_or_equal (LocalTime a, LocalTime b)
 
bool dcp::day_greater_than_or_equal (LocalTime a, LocalTime b)
 
std::string dcp::unique_string (std::vector< std::string > existing, std::string base)
 
boost::filesystem::path dcp::directory_containing_executable ()
 
boost::filesystem::path dcp::resources_directory ()
 

Variables

ASDCP::Dictionary const * dcp::asdcp_smpte_dict = nullptr
 

Detailed Description

Utility methods and classes.

Definition in file util.h.