Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::locale::localization_backend_manager Class Reference

Localization backend manager is a class that holds various backend and allows creation of their combination or selection. More...

#include <localization_backend.hpp>

Public Member Functions

 localization_backend_manager ()
 New empty localization_backend_manager. More...
 
 localization_backend_manager (localization_backend_manager const &)
 Copy localization_backend_manager. More...
 
localization_backend_manager
const & 
operator= (localization_backend_manager const &)
 Assign localization_backend_manager. More...
 
 ~localization_backend_manager ()
 Destructor. More...
 
std::auto_ptr
< localization_backend
get () const
 Create new localization backend according to current settings. More...
 
void add_backend (std::string const &name, std::auto_ptr< localization_backend > backend)
 Add new backend to the manager, each backend should be uniquely defined by its name. More...
 
void remove_all_backends ()
 Clear backend. More...
 
std::vector< std::string > get_all_backends () const
 Get list of all available backends. More...
 
void select (std::string const &backend_name, locale_category_type category=all_categories)
 Select specific backend by name for a category category. More...
 

Static Public Member Functions

static localization_backend_manager global (localization_backend_manager const &)
 Set new global backend manager, the old one is returned. More...
 
static localization_backend_manager global ()
 Get global backend manager. More...
 

Detailed Description

Localization backend manager is a class that holds various backend and allows creation of their combination or selection.

Constructor & Destructor Documentation

boost::locale::localization_backend_manager::localization_backend_manager ( )
boost::locale::localization_backend_manager::localization_backend_manager ( localization_backend_manager const &  )
boost::locale::localization_backend_manager::~localization_backend_manager ( )

Destructor.

Member Function Documentation

void boost::locale::localization_backend_manager::add_backend ( std::string const &  name,
std::auto_ptr< localization_backend backend 
)

Add new backend to the manager, each backend should be uniquely defined by its name.

This library provides: "icu", "posix", "winapi" and "std" backends.

std::auto_ptr<localization_backend> boost::locale::localization_backend_manager::get ( ) const

Create new localization backend according to current settings.

std::vector<std::string> boost::locale::localization_backend_manager::get_all_backends ( ) const

Get list of all available backends.

static localization_backend_manager boost::locale::localization_backend_manager::global ( localization_backend_manager const &  )
static

Set new global backend manager, the old one is returned.

This function is thread safe

static localization_backend_manager boost::locale::localization_backend_manager::global ( )
static

Get global backend manager.

This function is thread safe

localization_backend_manager const& boost::locale::localization_backend_manager::operator= ( localization_backend_manager const &  )
void boost::locale::localization_backend_manager::remove_all_backends ( )

Clear backend.

void boost::locale::localization_backend_manager::select ( std::string const &  backend_name,
locale_category_type  category = all_categories 
)

Select specific backend by name for a category category.

It allows combining different backends for user preferences.


The documentation for this class was generated from the following file: