CppCMS
Public Member Functions | Static Public Member Functions
booster::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 <booster/booster/locale/localization_backend.h>

List of all members.

Public Member Functions

 localization_backend_manager ()
 localization_backend_manager (localization_backend_manager const &)
localization_backend_manager
const & 
operator= (localization_backend_manager const &)
 ~localization_backend_manager ()
std::auto_ptr
< localization_backend
get () const
void add_backend (std::string const &name, std::auto_ptr< localization_backend > backend)
void remove_all_backends ()
std::vector< std::string > get_all_backends () const
void select (std::string const &backend_name, locale_category_type category=all_categories)

Static Public Member Functions

static localization_backend_manager global (localization_backend_manager const &)
static localization_backend_manager global ()

Detailed Description

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


Constructor & Destructor Documentation

Destructor


Member Function Documentation

void booster::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.

Create new localization backend according to current settings.

Get list of all available backends

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

This function is thread safe

Get global backend manager

This function is thread safe

localization_backend_manager const& booster::locale::localization_backend_manager::operator= ( localization_backend_manager const &  )

Clear backend

void booster::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: