ardour
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
PBD Namespace Reference

Namespaces

 DEBUG
 
 sys
 

Classes

struct  AngularVector
 
class  atomic_counter
 
class  BlinkTimer
 
struct  CartesianVector
 
class  Configuration
 
class  ConfigVariable
 
class  ConfigVariable< bool >
 
class  ConfigVariable< std::string >
 
class  ConfigVariableBase
 
class  ConfigVariableWithMutation
 
class  ConfigVariableWithMutation< std::string >
 
class  Connection
 
class  Controllable
 
class  ControllableDescriptor
 
class  Destructible
 
class  EnumProperty
 
class  EnumWriter
 
class  EnvironmentalProtectionAgency
 
class  EventLoop
 
union  Float_t
 
class  FPU
 
class  FunctorCommand
 
class  GlibSemaphore
 
class  ID
 
class  IgnorableControllable
 
struct  LocaleGuard
 
class  OptionalLastValue
 
class  OwnedPropertyList
 
class  ProcessSemaphore
 
class  Property
 
class  Property< std::string >
 
class  PropertyBase
 
class  PropertyChange
 
struct  PropertyDescriptor
 
class  PropertyList
 
class  PropertyTemplate
 
struct  ResourceLimit
 
class  RingBufferNPT
 
class  ScopedConnection
 
class  ScopedConnectionList
 
struct  ScopedFileDescriptor
 
class  Searchpath
 
class  Semaphore
 
class  SequenceProperty
 
class  SharedStatefulProperty
 
class  SignalBase
 
class  StandardTimer
 
class  Stateful
 
class  StatefulDestructible
 
class  StatefulDiffCommand
 
class  SystemExec
 execute an external command More...
 
class  thing_with_backtrace
 
class  Timed
 
class  Timer
 
class  Timing
 
class  TimingData
 
class  unknown_enumeration
 
class  Unwinder
 
class  UUID
 

Typedefs

typedef GQuark PropertyID
 
typedef uint64_t rlimit_t
 
typedef boost::shared_ptr
< Connection
UnscopedConnection
 

Enumerations

enum  ResourceType { OpenFiles }
 

Functions

string capitalize (const string &str)
 
string downcase (const string &str)
 
const char * downcase (const char *str)
 
string short_version (string orig, string::size_type target_length)
 
int atoi (const string &s)
 
int32_t atol (const string &s)
 
int64_t atoll (const string &s)
 
double atof (const string &s)
 
vector< string > internationalize (const char *package_name, const char **array)
 
static int32_t int_from_hex (char hic, char loc)
 
string url_decode (string const &url)
 
string length2string (const int64_t frames, const double sample_rate)
 
static bool chars_equal_ignore_case (char x, char y)
 
bool strings_equal_ignore_case (const string &a, const string &b)
 
bool string_is_affirmative (const std::string &str)
 
const char * sgettext (const char *domain_name, const char *msgid)
 
DebugMap_debug_bit_map ()
 
int ffs (int x)
 
void run_functor_for_paths (vector< string > &result, const Searchpath &paths, bool(*functor)(const string &, void *), void *arg, bool pass_files_only, bool pass_fullpath, bool return_fullpath, bool recurse)
 
static bool accept_all_files (string const &, void *)
 
void get_paths (vector< string > &result, const Searchpath &paths, bool files_only, bool recurse)
 
void get_files (vector< string > &result, const Searchpath &paths)
 
static bool pattern_filter (const string &str, void *arg)
 
void find_files_matching_pattern (vector< string > &result, const Searchpath &paths, const Glib::PatternSpec &pattern)
 
void find_files_matching_pattern (vector< string > &result, const Searchpath &paths, const string &pattern)
 
bool find_file (const Searchpath &search_path, const string &filename, std::string &result)
 
static bool regexp_filter (const string &str, void *arg)
 
void find_files_matching_regex (vector< string > &result, const Searchpath &paths, const std::string &regexp, bool recurse)
 
void find_paths_matching_filter (vector< string > &result, const Searchpath &paths, bool(*filter)(const string &, void *), void *arg, bool pass_fullpath, bool return_fullpath, bool recurse)
 
void find_files_matching_filter (vector< string > &result, const Searchpath &paths, bool(*filter)(const string &, void *), void *arg, bool pass_fullpath, bool return_fullpath, bool recurse)
 
bool copy_file (const std::string &from_path, const std::string &to_path)
 
void copy_files (const std::string &from_path, const std::string &to_dir)
 
void copy_recurse (const std::string &from_path, const std::string &to_dir)
 
std::string get_absolute_path (const std::string &p)
 
std::string get_suffix (const std::string &p)
 
bool equivalent_paths (const std::string &a, const std::string &b)
 
bool path_is_within (std::string const &haystack, std::string needle)
 
bool exists_and_writable (const std::string &p)
 
int remove_directory_internal (const string &dir, size_t *size, vector< string > *paths, bool just_remove_files)
 
int clear_directory (const string &dir, size_t *size, vector< string > *paths)
 
void remove_directory (const std::string &dir)
 
string tmp_writable_directory (const char *domain, const string &prefix)
 
int toggle_file_existence (string const &path)
 
LIBPBD_API Glib::ustring basename_nosuffix (Glib::ustring)
 
LIBPBD_API void spherical_to_cartesian (double azi, double ele, double len, double &x, double &y, double &z)
 
LIBPBD_API void cartesian_to_spherical (double x, double y, double z, double &azi, double &ele, double &len)
 
LIBPBD_API std::string short_version (std::string, std::string::size_type target_length)
 
LIBPBD_API int atoi (const std::string &)
 
LIBPBD_API int32_t atol (const std::string &)
 
LIBPBD_API int64_t atoll (const std::string &)
 
LIBPBD_API double atof (const std::string &)
 
LIBPBD_API std::string url_decode (std::string const &)
 
LIBPBD_API std::string capitalize (const std::string &)
 
LIBPBD_API std::string downcase (const std::string &)
 
LIBPBD_API bool strings_equal_ignore_case (const std::string &a, const std::string &b)
 
template<class T >
std::string to_string (T t, std::ios_base &(*f)(std::ios_base &))
 
LIBPBD_API uint64_t new_debug_bit (const char *name)
 
LIBPBD_API void debug_print (const char *prefix, std::string str)
 
LIBPBD_API void set_debug_bits (uint64_t bits)
 
LIBPBD_API int parse_debug_options (const char *str)
 
LIBPBD_API void list_debug_options ()
 
template<typename T >
std::string demangled_name (T const &obj)
 
LIBPBD_API void get_paths (std::vector< std::string > &result, const Searchpath &paths, bool files_only=true, bool recurse=false)
 
LIBPBD_API void get_files (std::vector< std::string > &result, const Searchpath &paths)
 
LIBPBD_API void find_files_matching_pattern (std::vector< std::string > &result, const Searchpath &paths, const Glib::PatternSpec &pattern)
 
LIBPBD_API void find_files_matching_pattern (std::vector< std::string > &result, const Searchpath &paths, const std::string &pattern)
 
LIBPBD_API bool find_file (const Searchpath &search_path, const std::string &filename, std::string &result)
 
LIBPBD_API void find_files_matching_regex (std::vector< std::string > &results, const Searchpath &paths, const std::string &regexp, bool recurse=false)
 
LIBPBD_API void find_paths_matching_filter (std::vector< std::string > &results, const Searchpath &paths, bool(*filter)(const std::string &, void *), void *arg, bool pass_fullpath, bool return_fullpath, bool recurse=false)
 
LIBPBD_API void find_files_matching_filter (std::vector< std::string > &results, const Searchpath &paths, bool(*filter)(const std::string &, void *), void *arg, bool pass_fullpath, bool return_fullpath, bool recurse=false)
 
LIBPBD_API int clear_directory (const std::string &dir, size_t *size=0, std::vector< std::string > *removed_files=0)
 
LIBPBD_API std::string tmp_writable_directory (const char *domain, const std::string &prefix)
 
LIBPBD_API int toggle_file_existence (std::string const &)
 
static bool floateq (float a, float b, int max_ulps_diff)
 
LIBPBD_API bool open_uri (const char *)
 
LIBPBD_API bool open_uri (const std::string &)
 
LIBPBD_API std::string canonical_path (const std::string &path)
 
LIBPBD_API std::string path_expand (std::string path)
 
LIBPBD_API std::string search_path_expand (std::string path)
 
LIBPBD_API std::vector
< std::string > 
parse_path (std::string path, bool check_if_exists=false)
 
LIBPBD_API bool init ()
 
LIBPBD_API void cleanup ()
 
template<class T >
std::ostream & operator<< (std::ostream &os, PropertyTemplate< T > const &s)
 
LIBPBD_API void notify_gui_about_thread_creation (std::string, pthread_t, std::string, int requests=256)
 
bool get_resource_limit (ResourceType resource, ResourceLimit &limit)
 
bool set_resource_limit (ResourceType resource, const ResourceLimit &limit)
 
LIBPBD_API void export_search_path (const std::string &base_dir, const char *varname, const char *dir)
 
LIBPBD_API void stacktrace (std::ostream &out, int levels=0)
 
LIBPBD_API void trace_twb ()
 
LIBPBD_API std::string demangle (const std::string &)
 
LIBPBD_API bool get_min_max_avg_total (const std::vector< uint64_t > &values, uint64_t &min, uint64_t &max, uint64_t &avg, uint64_t &total)
 
LIBPBD_API std::string timing_summary (const std::vector< uint64_t > &values)
 
template<typename StringType , typename Iter >
unsigned int tokenize (const StringType &str, const StringType &delims, Iter it, bool strip_whitespace=false)
 
LIBPBD_API void strip_whitespace_edges (std::string &str)
 
LIBPBD_API char * get_win_special_folder (int csidl)
 
void export_search_path (const string &base_dir, const char *varname, const char *dir)
 
void strip_whitespace_edges (string &str)
 

Variables

LIBPBD_API uint64_t debug_bits = 0x0
 
LIBPBD_API Transmitter error
 
LIBPBD_API Transmitter info
 
LIBPBD_API Transmitter warning
 
LIBPBD_API Transmitter fatal
 
class LIBPBD_API PropertyList
 
class LIBPBD_API StatefulDiffCommand
 
LIBPBD_API PBD::Signal4< void,
std::string, pthread_t,
std::string, uint32_t > 
ThreadCreatedWithRequestSize
 
class LIBPBD_API Connection
 

Detailed Description

This command class is initialized

Typedef Documentation

typedef GQuark PBD::PropertyID

A unique identifier for a property of a Stateful object

Definition at line 38 of file property_basics.h.

typedef uint64_t PBD::rlimit_t

Definition at line 24 of file resource.h.

Definition at line 119 of file signals.h.

Enumeration Type Documentation

Enumerator
OpenFiles 

Definition at line 26 of file resource.h.

Function Documentation

DebugMap& PBD::_debug_bit_map ( )

Definition at line 39 of file debug.cc.

static bool PBD::accept_all_files ( string const &  ,
void *   
)
static

Definition at line 138 of file file_utils.cc.

LIBPBD_API double PBD::atof ( const std::string &  )
double PBD::atof ( const string &  s)

Definition at line 158 of file convert.cc.

LIBPBD_API int PBD::atoi ( const std::string &  )
int PBD::atoi ( const string &  s)

Definition at line 140 of file convert.cc.

LIBPBD_API int32_t PBD::atol ( const std::string &  )
int32_t PBD::atol ( const string &  s)

Definition at line 146 of file convert.cc.

LIBPBD_API int64_t PBD::atoll ( const std::string &  )
int64_t PBD::atoll ( const string &  s)

Definition at line 152 of file convert.cc.

LIBPBD_API Glib::ustring PBD::basename_nosuffix ( Glib::ustring  )
string PBD::canonical_path ( const std::string &  path)

Definition at line 90 of file pathexpand.cc.

LIBPBD_API std::string PBD::capitalize ( const std::string &  )
string PBD::capitalize ( const string &  str)

Definition at line 47 of file convert.cc.

void PBD::cartesian_to_spherical ( double  x,
double  y,
double  z,
double &  azi,
double &  ele,
double &  len 
)

Definition at line 42 of file cartesian.cc.

static bool PBD::chars_equal_ignore_case ( char  x,
char  y 
)
static

Definition at line 264 of file convert.cc.

void PBD::cleanup ( )

Definition at line 107 of file pbd.cc.

LIBPBD_API int PBD::clear_directory ( const std::string &  dir,
size_t *  size = 0,
std::vector< std::string > *  removed_files = 0 
)

Remove all the files in a directory recursively leaving the directory structure in place.

Note
dir will not be removed
Parameters
dirThe directory to clear of files.
sizeof removed files in bytes.
listof files that were removed.
int PBD::clear_directory ( const string &  dir,
size_t *  size,
vector< string > *  paths 
)

Definition at line 458 of file file_utils.cc.

LIBPBD_API bool PBD::copy_file ( const std::string &  from_path,
const std::string &  to_path 
)

Attempt to copy the contents of the file from_path to a new file at path to_path. If to_path exists it is overwritten.

Returns
true if file was successfully copied

Definition at line 282 of file file_utils.cc.

LIBPBD_API void PBD::copy_files ( const std::string &  from_path,
const std::string &  to_dir 
)

Attempt to copy all regular files from from_path to a new directory. This method does not recurse.

Definition at line 319 of file file_utils.cc.

LIBPBD_API void PBD::copy_recurse ( const std::string &  from_path,
const std::string &  to_dir 
)

Attempt to copy all regular files from from_path to a new directory.

Definition at line 332 of file file_utils.cc.

LIBPBD_API void PBD::debug_print ( const char *  prefix,
std::string  str 
)
std::string PBD::demangle ( const std::string &  l)

Definition at line 109 of file stacktrace.cc.

template<typename T >
std::string PBD::demangled_name ( T const &  obj)

Definition at line 36 of file demangle.h.

LIBPBD_API std::string PBD::downcase ( const std::string &  )
string PBD::downcase ( const string &  str)

Definition at line 58 of file convert.cc.

LIBPBD_API const char * PBD::downcase ( const char *  str)

Definition at line 66 of file convert.cc.

LIBPBD_API bool PBD::equivalent_paths ( const std::string &  p1,
const std::string &  p2 
)
Returns
true if p1 and p2 both resolve to the same file
Parameters
p1a file path.
p2a file path.

Uses g_stat to check for identical st_dev and st_ino values.

Definition at line 364 of file file_utils.cc.

LIBPBD_API bool PBD::exists_and_writable ( const std::string &  p)
Returns
true if path at p exists and is writable, false otherwise

Definition at line 392 of file file_utils.cc.

LIBPBD_API void PBD::export_search_path ( const std::string &  base_dir,
const char *  varname,
const char *  dir 
)
void PBD::export_search_path ( const string &  base_dir,
const char *  varname,
const char *  dir 
)

Definition at line 174 of file search_path.cc.

LIBPBD_API int PBD::ffs ( int  x)

Definition at line 28 of file ffs.cc.

LIBPBD_API bool PBD::find_file ( const Searchpath &  search_path,
const std::string &  filename,
std::string &  result 
)

Takes a search path and a file name and places the full path to that file in result if it is found within the search path.

Note
the parameter order of this function doesn't match the others. At the time of writing it is the most widely used file utility function so I didn't change it but it may be worth doing at some point if it causes any confusion.
Returns
true If file is found within the search path.
bool PBD::find_file ( const Searchpath &  search_path,
const string &  filename,
std::string &  result 
)

Definition at line 187 of file file_utils.cc.

LIBPBD_API void PBD::find_files_matching_filter ( std::vector< std::string > &  results,
const Searchpath &  paths,
bool(*)(const std::string &, void *)  filter,
void *  arg,
bool  pass_fullpath,
bool  return_fullpath,
bool  recurse = false 
)

Find paths in a Searchpath that match a supplied filter(functor)

Note
results include only files.
Parameters
resultA vector in which to place the resulting matches.
pathsA Searchpath
filterA functor to use to filter paths
argadditonal argument to filter if required
pass_fullpathpass the full path to the filter or just the basename
return_fullpathput the full path in results or just the basename
recurseRecurse into child directories to find files.
void PBD::find_files_matching_filter ( vector< string > &  result,
const Searchpath &  paths,
bool(*)(const string &, void *)  filter,
void *  arg,
bool  pass_fullpath,
bool  return_fullpath,
bool  recurse 
)

Definition at line 271 of file file_utils.cc.

LIBPBD_API void PBD::find_files_matching_pattern ( std::vector< std::string > &  result,
const Searchpath &  paths,
const Glib::PatternSpec &  pattern 
)

Takes a Searchpath and returns all the files contained in the directory paths that match a particular pattern.

Parameters
resultA vector in which to place the resulting matches.
pathsA Searchpath
patternA Glib::PatternSpec used to match the files.
LIBPBD_API void PBD::find_files_matching_pattern ( std::vector< std::string > &  result,
const Searchpath &  paths,
const std::string &  pattern 
)

Takes a Searchpath and returns all the files contained in the directory paths that match a particular pattern.

This is a convenience method to avoid explicitly declaring temporary variables such as: find_files_matching_pattern (result, paths, string("*.ext"))

Parameters
resultA vector in which to place the resulting matches.
pathsA Searchpath
patternA string representing the Glib::PatternSpec used to match the files.
void PBD::find_files_matching_pattern ( vector< string > &  result,
const Searchpath &  paths,
const Glib::PatternSpec &  pattern 
)

Definition at line 168 of file file_utils.cc.

void PBD::find_files_matching_pattern ( vector< string > &  result,
const Searchpath &  paths,
const string &  pattern 
)

Definition at line 178 of file file_utils.cc.

LIBPBD_API void PBD::find_files_matching_regex ( std::vector< std::string > &  results,
const Searchpath &  paths,
const std::string &  regexp,
bool  recurse = false 
)

Find files in paths that match a regular expression

Note
This function does not recurse.
Parameters
resultA vector in which to place the resulting matches.
pathsA Searchpath
regexpA regular expression
void PBD::find_files_matching_regex ( vector< string > &  result,
const Searchpath &  paths,
const std::string &  regexp,
bool  recurse 
)

Definition at line 226 of file file_utils.cc.

LIBPBD_API void PBD::find_paths_matching_filter ( std::vector< std::string > &  results,
const Searchpath &  paths,
bool(*)(const std::string &, void *)  filter,
void *  arg,
bool  pass_fullpath,
bool  return_fullpath,
bool  recurse = false 
)

Find paths in a Searchpath that match a supplied filter(functor)

Note
results include files and directories.
Parameters
resultA vector in which to place the resulting matches.
pathsA Searchpath
filterA functor to use to filter paths
argadditonal argument to filter if required
pass_fullpathpass the full path to the filter or just the basename
return_fullpathput the full path in results or just the basename
recurseRecurse into child directories to find paths.
void PBD::find_paths_matching_filter ( vector< string > &  result,
const Searchpath &  paths,
bool(*)(const string &, void *)  filter,
void *  arg,
bool  pass_fullpath,
bool  return_fullpath,
bool  recurse 
)

Definition at line 260 of file file_utils.cc.

static bool PBD::floateq ( float  a,
float  b,
int  max_ulps_diff 
)
inlinestatic

Definition at line 52 of file floating.h.

LIBPBD_API std::string PBD::get_absolute_path ( const std::string &  )

Take a (possibly) relative path and make it absolute

Returns
An absolute path

Definition at line 347 of file file_utils.cc.

LIBPBD_API void PBD::get_files ( std::vector< std::string > &  result,
const Searchpath &  paths 
)

Get a list of files in a Searchpath.

Note
paths in result will be absolute.
Parameters
pathA Searchpath
resultA vector of paths to files.
void PBD::get_files ( vector< string > &  result,
const Searchpath &  paths 
)

Definition at line 154 of file file_utils.cc.

bool PBD::get_min_max_avg_total ( const std::vector< uint64_t > &  values,
uint64_t &  min,
uint64_t &  max,
uint64_t &  avg,
uint64_t &  total 
)

Definition at line 33 of file timing.cc.

LIBPBD_API void PBD::get_paths ( std::vector< std::string > &  result,
const Searchpath &  paths,
bool  files_only = true,
bool  recurse = false 
)

Get a list of path entries in a directory or within a directory tree if recursing.

Note
paths in result will be absolute
Parameters
resultA vector of absolute paths to the directory entries in filename encoding.
pathsA Searchpath
files_onlyOnly include file entries in result
recurseRecurse into child directories
void PBD::get_paths ( vector< string > &  result,
const Searchpath &  paths,
bool  files_only,
bool  recurse 
)

Definition at line 144 of file file_utils.cc.

bool PBD::get_resource_limit ( ResourceType  resource,
ResourceLimit &  limit 
)
Returns
true on success, false on error

Definition at line 32 of file resource.cc.

LIBPBD_API std::string PBD::get_suffix ( const std::string &  )

Take a path/filename and return the suffix (characters beyond the last '.'

Returns
A string containing the suffix, which will be empty if there are no '.' characters in the path/filename.

Definition at line 354 of file file_utils.cc.

char * PBD::get_win_special_folder ( int  csidl)

Definition at line 43 of file windows_special_dirs.cc.

bool PBD::init ( )

Definition at line 66 of file pbd.cc.

static int32_t PBD::int_from_hex ( char  hic,
char  loc 
)
static

Definition at line 176 of file convert.cc.

LIBPBD_API std::vector< std::string > PBD::internationalize ( const char *  package_name,
const char **  array 
)

Definition at line 164 of file convert.cc.

LIBPBD_API std::string PBD::length2string ( const int64_t  frames,
const double  sample_rate 
)

Definition at line 245 of file convert.cc.

void PBD::list_debug_options ( )

Definition at line 113 of file debug.cc.

uint64_t PBD::new_debug_bit ( const char *  name)

Definition at line 58 of file debug.cc.

void PBD::notify_gui_about_thread_creation ( std::string  target_gui,
pthread_t  thread,
std::string  str,
int  requests = 256 
)

Definition at line 62 of file pthread_utils.cc.

bool PBD::open_uri ( const char *  uri)

Definition at line 41 of file openuri.cc.

bool PBD::open_uri ( const std::string &  uri)

Definition at line 70 of file openuri.cc.

template<class T >
std::ostream& PBD::operator<< ( std::ostream &  os,
PropertyTemplate< T > const &  s 
)

Definition at line 201 of file properties.h.

int PBD::parse_debug_options ( const char *  str)

Definition at line 80 of file debug.cc.

std::vector< std::string > PBD::parse_path ( std::string  path,
bool  check_if_exists = false 
)

Definition at line 207 of file pathexpand.cc.

LIBPBD_API std::string PBD::path_expand ( std::string  path)
LIBPBD_API bool PBD::path_is_within ( const std::string &  ,
std::string   
)

Find out if `needle' is a file or directory within the directory `haystack'.

Returns
true if it is.

Definition at line 375 of file file_utils.cc.

static bool PBD::pattern_filter ( const string &  str,
void *  arg 
)
static

Definition at line 161 of file file_utils.cc.

static bool PBD::regexp_filter ( const string &  str,
void *  arg 
)
static

Definition at line 219 of file file_utils.cc.

LIBPBD_API void PBD::remove_directory ( const std::string &  dir)

Remove all the contents of a directory recursively.

Note
dir will not be removed
Parameters
dirThe directory to remove files from.

Definition at line 465 of file file_utils.cc.

int PBD::remove_directory_internal ( const string &  dir,
size_t *  size,
vector< string > *  paths,
bool  just_remove_files 
)

Definition at line 422 of file file_utils.cc.

void PBD::run_functor_for_paths ( vector< string > &  result,
const Searchpath &  paths,
bool(*)(const string &, void *)  functor,
void *  arg,
bool  pass_files_only,
bool  pass_fullpath,
bool  return_fullpath,
bool  recurse 
)

Definition at line 67 of file file_utils.cc.

LIBPBD_API std::string PBD::search_path_expand ( std::string  path)
void PBD::set_debug_bits ( uint64_t  bits)

Definition at line 74 of file debug.cc.

bool PBD::set_resource_limit ( ResourceType  resource,
const ResourceLimit &  limit 
)
Returns
true on success, false on error

Definition at line 54 of file resource.cc.

LIBPBD_API const char * PBD::sgettext ( const char *  domain_name,
const char *  msgid 
)

A wrapper for dgettext that takes a msgid of the form Context|Text. If Context|Text is translated, the translation is returned, otherwise just Text is returned. Useful for getting translations of words or phrases that have different meanings in different contexts.

Definition at line 307 of file convert.cc.

LIBPBD_API std::string PBD::short_version ( std::string  ,
std::string::size_type  target_length 
)
string PBD::short_version ( string  orig,
string::size_type  target_length 
)

Definition at line 76 of file convert.cc.

void PBD::spherical_to_cartesian ( double  azi,
double  ele,
double  len,
double &  x,
double &  y,
double &  z 
)

Definition at line 26 of file cartesian.cc.

void PBD::stacktrace ( std::ostream &  out,
int  levels = 0 
)

Definition at line 115 of file stacktrace.cc.

LIBPBD_API bool PBD::string_is_affirmative ( const std::string &  str)

Definition at line 282 of file convert.cc.

LIBPBD_API bool PBD::strings_equal_ignore_case ( const std::string &  a,
const std::string &  b 
)
bool PBD::strings_equal_ignore_case ( const string &  a,
const string &  b 
)

Definition at line 273 of file convert.cc.

void PBD::strip_whitespace_edges ( string &  str)

Definition at line 27 of file whitespace.cc.

LIBPBD_API void PBD::strip_whitespace_edges ( std::string &  str)
std::string PBD::timing_summary ( const std::vector< uint64_t > &  values)

Definition at line 54 of file timing.cc.

LIBPBD_API std::string PBD::tmp_writable_directory ( const char *  domain,
const std::string &  prefix 
)

Create a temporary writable directory in which to create temporary files. The directory will be created under the top level "domain" directory.

For instance tmp_writable_directory ("pbd", "foo") on POSIX systems may return a path to a new directory something like to /tmp/pbd/foo-1423

Parameters
domainThe top level directory
prefixA prefix to use when creating subdirectory name
Returns
new temporary directory
string PBD::tmp_writable_directory ( const char *  domain,
const string &  prefix 
)

Definition at line 471 of file file_utils.cc.

template<class T >
std::string PBD::to_string ( t,
std::ios_base &(*)(std::ios_base &)  f 
)

Definition at line 53 of file convert.h.

LIBPBD_API int PBD::toggle_file_existence ( std::string const &  )

If

Parameters
pathexists, unlink it. If it doesn't exist, create it.
Returns
zero if required action was successful, non-zero otherwise.
int PBD::toggle_file_existence ( string const &  path)

Definition at line 488 of file file_utils.cc.

template<typename StringType , typename Iter >
unsigned int PBD::tokenize ( const StringType &  str,
const StringType &  delims,
Iter  it,
bool  strip_whitespace = false 
)

Tokenize string, this should work for standard strings as well as Glib::ustring. This is a bit of a hack, there are much better string tokenizing patterns out there. If strip_whitespace is set to true, tokens will be checked to see that they still have a length after stripping. If no length, they are discarded.

Definition at line 41 of file tokenizer.h.

void PBD::trace_twb ( )

Definition at line 28 of file stacktrace.cc.

LIBPBD_API std::string PBD::url_decode ( std::string const &  )
string PBD::url_decode ( string const &  url)

Definition at line 205 of file convert.cc.

Variable Documentation

Definition at line 53 of file signals.h.

uint64_t PBD::debug_bits = 0x0

Definition at line 55 of file debug.cc.

Transmitter PBD::error
Transmitter PBD::fatal
Transmitter PBD::info

Definition at line 34 of file property_basics.h.

Definition at line 35 of file property_basics.h.

PBD::Signal4< void, std::string, pthread_t, std::string, uint32_t > PBD::ThreadCreatedWithRequestSize

Definition at line 47 of file pthread_utils.cc.

Transmitter PBD::warning