1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 <meta http-equiv=
"Content-Type" content=
"text/xhtml;charset=UTF-8"/>
5 <meta http-equiv=
"X-UA-Compatible" content=
"IE=9"/>
6 <meta name=
"generator" content=
"Doxygen 1.8.6"/>
7 <title>Boost.Locale: boost::locale::localization_backend Class Reference
</title>
8 <link href=
"tabs.css" rel=
"stylesheet" type=
"text/css"/>
9 <script type=
"text/javascript" src=
"jquery.js"></script>
10 <script type=
"text/javascript" src=
"dynsections.js"></script>
11 <link href=
"navtree.css" rel=
"stylesheet" type=
"text/css"/>
12 <script type=
"text/javascript" src=
"resize.js"></script>
13 <script type=
"text/javascript" src=
"navtree.js"></script>
14 <script type=
"text/javascript">
15 $(document).ready(initResizable);
16 $(window).load(resizeHeight);
18 <link href=
"doxygen.css" rel=
"stylesheet" type=
"text/css" />
21 <div id=
"top"><!-- do not remove this div, it is closed by doxygen! -->
23 <table cellspacing=
"0" cellpadding=
"0">
25 <tr style=
"height: 56px;">
26 <td id=
"projectlogo"><img alt=
"Logo" src=
"boost-small.png"/></td>
27 <td style=
"padding-left: 0.5em;">
28 <div id=
"projectname">Boost.Locale
35 <!-- end header part -->
36 <!-- Generated by Doxygen 1.8.6 -->
37 <div id=
"navrow1" class=
"tabs">
39 <li><a href=
"index.html"><span>Main
 Page
</span></a></li>
40 <li><a href=
"pages.html"><span>Related
 Pages
</span></a></li>
41 <li><a href=
"modules.html"><span>Modules
</span></a></li>
42 <li><a href=
"namespaces.html"><span>Namespaces
</span></a></li>
43 <li class=
"current"><a href=
"annotated.html"><span>Classes
</span></a></li>
44 <li><a href=
"files.html"><span>Files
</span></a></li>
45 <li><a href=
"examples.html"><span>Examples
</span></a></li>
48 <div id=
"navrow2" class=
"tabs2">
50 <li><a href=
"annotated.html"><span>Class
 List
</span></a></li>
51 <li><a href=
"hierarchy.html"><span>Class
 Hierarchy
</span></a></li>
52 <li><a href=
"functions.html"><span>Class
 Members
</span></a></li>
56 <div id=
"side-nav" class=
"ui-resizable side-nav-resizable">
58 <div id=
"nav-tree-contents">
59 <div id=
"nav-sync" class=
"sync"></div>
62 <div id=
"splitbar" style=
"-moz-user-select:none;"
63 class=
"ui-resizable-handle">
66 <script type=
"text/javascript">
67 $(document).ready(function(){initNavTree('classboost_1_1locale_1_1localization__backend.html','');});
69 <div id=
"doc-content">
72 <a href=
"#pub-methods">Public Member Functions
</a> |
73 <a href=
"classboost_1_1locale_1_1localization__backend-members.html">List of all members
</a> </div>
74 <div class=
"headertitle">
75 <div class=
"title">boost::locale::localization_backend Class Reference
<span class=
"mlabels"><span class=
"mlabel">abstract
</span></span></div> </div>
77 <div class=
"contents">
79 <p>this class represents a localization backend that can be used for localizing your application.
80 <a href=
"classboost_1_1locale_1_1localization__backend.html#details">More...
</a></p>
82 <p><code>#include
<<a class=
"el" href=
"localization__backend_8hpp_source.html">boost/locale/localization_backend.hpp
</a>></code></p>
83 <table class=
"memberdecls">
84 <tr class=
"heading"><td colspan=
"2"><h2 class=
"groupheader"><a name=
"pub-methods"></a>
85 Public Member Functions
</h2></td></tr>
86 <tr class=
"memitem:ab89828234ca84d4b43f3692bfbb08b25"><td class=
"memItemLeft" align=
"right" valign=
"top">virtual
<a class=
"el" href=
"classboost_1_1locale_1_1localization__backend.html">localization_backend
</a> *
 </td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classboost_1_1locale_1_1localization__backend.html#ab89828234ca84d4b43f3692bfbb08b25">clone
</a> () const =
0</td></tr>
87 <tr class=
"separator:ab89828234ca84d4b43f3692bfbb08b25"><td class=
"memSeparator" colspan=
"2"> </td></tr>
88 <tr class=
"memitem:a3dc9028eb813001f6cdd8fca937837ef"><td class=
"memItemLeft" align=
"right" valign=
"top">virtual void
 </td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classboost_1_1locale_1_1localization__backend.html#a3dc9028eb813001f6cdd8fca937837ef">set_option
</a> (std::string const
&name, std::string const
&value)=
0</td></tr>
89 <tr class=
"separator:a3dc9028eb813001f6cdd8fca937837ef"><td class=
"memSeparator" colspan=
"2"> </td></tr>
90 <tr class=
"memitem:a631af306f8652dcf7874b0bb38ab8891"><td class=
"memItemLeft" align=
"right" valign=
"top">virtual void
 </td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classboost_1_1locale_1_1localization__backend.html#a631af306f8652dcf7874b0bb38ab8891">clear_options
</a> ()=
0</td></tr>
91 <tr class=
"separator:a631af306f8652dcf7874b0bb38ab8891"><td class=
"memSeparator" colspan=
"2"> </td></tr>
92 <tr class=
"memitem:a5992c75d469f775ce1d18a0912bfa8a1"><td class=
"memItemLeft" align=
"right" valign=
"top">virtual std::locale
 </td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classboost_1_1locale_1_1localization__backend.html#a5992c75d469f775ce1d18a0912bfa8a1">install
</a> (std::locale const
&base,
<a class=
"el" href=
"namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">locale_category_type
</a> category,
<a class=
"el" href=
"namespaceboost_1_1locale.html#a8c993aaf15e683e97d062560ccf914d8">character_facet_type
</a> type=
<a class=
"el" href=
"namespaceboost_1_1locale.html#a330a4c5134eb5110b33a0b4f986f34be">nochar_facet
</a>)=
0</td></tr>
93 <tr class=
"separator:a5992c75d469f775ce1d18a0912bfa8a1"><td class=
"memSeparator" colspan=
"2"> </td></tr>
95 <a name=
"details" id=
"details"></a><h2 class=
"groupheader">Detailed Description
</h2>
96 <div class=
"textblock"><p>this class represents a localization backend that can be used for localizing your application.
</p>
97 <p>Backends are usually registered inside the localization backends manager and allow transparent support of different backends, so a user can switch the backend by simply linking the application to the correct one.
</p>
98 <p>Backends may support different tuning options, but these are the default options available to the user for all of them
</p>
100 <li><code>locale
</code> - the name of the locale in POSIX format like en_US.UTF-
8</li>
101 <li><code>use_ansi_encoding
</code> - select system locale using ANSI codepages rather then UTF-
8 under Windows by default
</li>
102 <li><code>message_path
</code> - path to the location of message catalogs (vector of strings)
</li>
103 <li><code>message_application
</code> - the name of applications that use message catalogs (vector of strings)
</li>
105 <p>Each backend can be installed with a different default priotiry so when you work with two different backends, you can specify priotiry so this backend will be chosen according to their priority.
</p>
106 </div><h2 class=
"groupheader">Member Function Documentation
</h2>
107 <a class=
"anchor" id=
"a631af306f8652dcf7874b0bb38ab8891"></a>
108 <div class=
"memitem">
109 <div class=
"memproto">
110 <table class=
"mlabels">
112 <td class=
"mlabels-left">
113 <table class=
"memname">
115 <td class=
"memname">virtual void boost::locale::localization_backend::clear_options
</td>
117 <td class=
"paramname"></td><td>)
</td>
122 <td class=
"mlabels-right">
123 <span class=
"mlabels"><span class=
"mlabel">pure virtual
</span></span> </td>
126 </div><div class=
"memdoc">
127 <p>Clear all options
</p>
131 <a class=
"anchor" id=
"ab89828234ca84d4b43f3692bfbb08b25"></a>
132 <div class=
"memitem">
133 <div class=
"memproto">
134 <table class=
"mlabels">
136 <td class=
"mlabels-left">
137 <table class=
"memname">
139 <td class=
"memname">virtual
<a class=
"el" href=
"classboost_1_1locale_1_1localization__backend.html">localization_backend
</a>* boost::locale::localization_backend::clone
</td>
141 <td class=
"paramname"></td><td>)
</td>
146 <td class=
"mlabels-right">
147 <span class=
"mlabels"><span class=
"mlabel">pure virtual
</span></span> </td>
150 </div><div class=
"memdoc">
151 <p>Make a polymorphic copy of the backend
</p>
155 <a class=
"anchor" id=
"a5992c75d469f775ce1d18a0912bfa8a1"></a>
156 <div class=
"memitem">
157 <div class=
"memproto">
158 <table class=
"mlabels">
160 <td class=
"mlabels-left">
161 <table class=
"memname">
163 <td class=
"memname">virtual std::locale boost::locale::localization_backend::install
</td>
165 <td class=
"paramtype">std::locale const
& </td>
166 <td class=
"paramname"><em>base
</em>,
</td>
169 <td class=
"paramkey"></td>
171 <td class=
"paramtype"><a class=
"el" href=
"namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">locale_category_type
</a> </td>
172 <td class=
"paramname"><em>category
</em>,
</td>
175 <td class=
"paramkey"></td>
177 <td class=
"paramtype"><a class=
"el" href=
"namespaceboost_1_1locale.html#a8c993aaf15e683e97d062560ccf914d8">character_facet_type
</a> </td>
178 <td class=
"paramname"><em>type
</em> =
<code><a class=
"el" href=
"namespaceboost_1_1locale.html#a330a4c5134eb5110b33a0b4f986f34be">nochar_facet
</a></code> </td>
187 <td class=
"mlabels-right">
188 <span class=
"mlabels"><span class=
"mlabel">pure virtual
</span></span> </td>
191 </div><div class=
"memdoc">
192 <p>Create a facet for category
<em>category
</em> and character type
<em>type
</em> </p>
196 <a class=
"anchor" id=
"a3dc9028eb813001f6cdd8fca937837ef"></a>
197 <div class=
"memitem">
198 <div class=
"memproto">
199 <table class=
"mlabels">
201 <td class=
"mlabels-left">
202 <table class=
"memname">
204 <td class=
"memname">virtual void boost::locale::localization_backend::set_option
</td>
206 <td class=
"paramtype">std::string const
& </td>
207 <td class=
"paramname"><em>name
</em>,
</td>
210 <td class=
"paramkey"></td>
212 <td class=
"paramtype">std::string const
& </td>
213 <td class=
"paramname"><em>value
</em> </td>
222 <td class=
"mlabels-right">
223 <span class=
"mlabels"><span class=
"mlabel">pure virtual
</span></span> </td>
226 </div><div class=
"memdoc">
227 <p>Set option for backend, for example
"locale" or
"encoding" </p>
231 <hr/>The documentation for this class was generated from the following file:
<ul>
232 <li>boost/locale/
<a class=
"el" href=
"localization__backend_8hpp_source.html">localization_backend.hpp
</a></li>
234 </div><!-- contents -->
235 </div><!-- doc-content -->
238 © Copyright
2009-
2012 Artyom Beilis, Distributed under the
<a href=
"http://www.boost.org/LICENSE_1_0.txt">Boost Software License
</a>, Version
1.0.