Ubuntu TV Media Scanner
A centralized index for removable media content.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Constant Groups | Functions
utilities.h File Reference
#include <boost/type_traits/is_enum.hpp>
#include <boost/utility/enable_if.hpp>
#include <iostream>
#include <map>
#include <string>
#include <utility>
#include <vector>

Classes

struct  mediascanner::flag_operations< T >
 
struct  mediascanner::flag_operations< void >
 

Namespaces

 mediascanner
 Public components of the Ubuntu TV Media Scanner.
 

Constant Groups

 mediascanner
 Public components of the Ubuntu TV Media Scanner.
 

Functions

template<typename T >
mediascanner::operator| (T a, T b)
 
template<typename T >
mediascanner::operator& (T a, T b)
 
template<typename T >
mediascanner::operator~ (T a)
 
void mediascanner::abort_with_backtrace ()
 abort_with_backtrace Prints a backtrace and aborts then. More...
 
std::string mediascanner::safe_string (const char *str)
 Safely constructs a std::string from potential null pointers. More...
 
std::string mediascanner::take_string (char *str)
 Safely constructs a std::string from potential null pointers and then frees the pointer. More...
 
std::wstring mediascanner::safe_wstring (const char *str)
 Safely constructs a std::wstring from potential null pointers. More...
 
template<typename KeyType , typename ValueType >
std::map< KeyType, ValueType > & mediascanner::operator<< (std::map< KeyType, ValueType > &target, const typename std::map< KeyType, ValueType >::value_type &element)
 Conveniently fills the std::map target with elements. More...
 
template<typename T >
std::vector< T > & mediascanner::operator<< (std::vector< T > &target, const T &element)
 Conveniently fills the std::vector target with elements. More...
 
template<typename T >
std::vector< T > mediascanner::operator<< (const std::vector< T > &source, const T &element)
 Conveniently creates a copy of the std::vector source, and then pushes element to its end. More...
 
std::ostream & mediascanner::operator<< (std::ostream &os, const class Property &p)
 Prints a property to a regular I/O stream. More...
 
ostream & std::operator<< (ostream &os, const wstring &s)
 Prints a wide string to a regular I/O stream. More...
 
template<typename CharType , typename ValueType >
basic_ostream< CharType > & std::operator<< (basic_ostream< CharType > &os, const vector< ValueType > &v)
 Prints a std::vector to a I/O stream. More...
 
template<typename T1 , typename T2 >
ostream & std::operator<< (ostream &os, const pair< T1, T2 > &p)
 Prints a std::pair to a I/O stream. More...
 
template<typename CharType , typename KeyType , typename ValueType >
basic_ostream< CharType > & std::operator<< (basic_ostream< CharType > &os, const map< KeyType, ValueType > &m)
 Prints a std::map to a I/O stream. More...