Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 27e1947652828f999d005d1f369b8bf5 > files > 88

lib64zen-devel-0.4.29-2.mga4.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>ZenLib: InfoMap.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">ZenLib
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_2f6a66f21b21faa3b2ca762adad4ca87.html">ZenLib</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">InfoMap.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="InfoMap_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*  Copyright (c) MediaArea.net SARL. All Rights Reserved.</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *  Use of this source code is governed by a zlib-style license that can</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *  be found in the License.txt file in the root of the source tree.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//---------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#ifndef ZenLib_InfoMapH</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define ZenLib_InfoMapH</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor"></span><span class="comment">//---------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//---------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="ZtringList_8h.html">ZenLib/ZtringList.h</a>&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//---------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">namespace </span>ZenLib</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;{</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">//***************************************************************************</span><span class="comment"></span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">/// @brief Helper for InfoMap</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"></span><span class="comment">//***************************************************************************</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classZenLib_1_1InfoMap.html">   24</a></span>&#160;<span class="keyword">class </span><a class="code" href="classZenLib_1_1InfoMap.html">InfoMap</a> : <span class="keyword">public</span> std::multimap&lt;Ztring, ZtringList&gt;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;{</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">public</span> :</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <span class="comment">//Constructors/Destructor</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <a class="code" href="classZenLib_1_1InfoMap.html#aaa2ca6ded6e674f09b7e7fd3f66dd3c7">InfoMap</a> ();</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <a class="code" href="classZenLib_1_1InfoMap.html#aaa2ca6ded6e674f09b7e7fd3f66dd3c7">InfoMap</a> (<span class="keyword">const</span> <a class="code" href="classZenLib_1_1Ztring.html">Ztring</a> &amp;Source);</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <a class="code" href="classZenLib_1_1InfoMap.html#aaa2ca6ded6e674f09b7e7fd3f66dd3c7">InfoMap</a> (<span class="keyword">const</span> <a class="code" href="namespaceZenLib.html#a30670db81d05c6a0dedbb71925817989">Char</a> *Source);</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">    #ifdef _UNICODE</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor"></span>    <a class="code" href="classZenLib_1_1InfoMap.html#aaa2ca6ded6e674f09b7e7fd3f66dd3c7">InfoMap</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *Source); <span class="comment">//convert a UTF-8 string into Unicode</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">    #endif</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="comment">//In/Out</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <span class="keyword">const</span> <a class="code" href="classZenLib_1_1Ztring.html">Ztring</a>   &amp;<a class="code" href="classZenLib_1_1InfoMap.html#a3c084beae701d6c7e540f09dc9b9cae2">Get</a> (<span class="keyword">const</span> <a class="code" href="classZenLib_1_1Ztring.html">Ztring</a> &amp;Value, <span class="keywordtype">size_t</span> Pos) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="keyword">const</span> <a class="code" href="classZenLib_1_1Ztring.html">Ztring</a>   &amp;<a class="code" href="classZenLib_1_1InfoMap.html#a3c084beae701d6c7e540f09dc9b9cae2">Get</a> (<span class="keyword">const</span> <a class="code" href="classZenLib_1_1Ztring.html">Ztring</a> &amp;Value, <span class="keywordtype">size_t</span> Pos, <span class="keyword">const</span> <a class="code" href="classZenLib_1_1Ztring.html">Ztring</a> &amp;WithValue, <span class="keywordtype">size_t</span> WithValue_Pos) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;          <span class="keywordtype">void</span>      <a class="code" href="classZenLib_1_1InfoMap.html#a79d8d05223af5acce6da2c68094569b9">Write</a> (<span class="keyword">const</span> <a class="code" href="classZenLib_1_1Ztring.html">Ztring</a> &amp;NewLanguage);</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="comment">//Configuration</span><span class="comment"></span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="comment">    /// @brief Set the Separator character</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="comment"></span>    <span class="keywordtype">void</span> <a class="code" href="classZenLib_1_1InfoMap.html#ab7be7e06ec2675eeba8ec044f79adfca">Separator_Set</a> (size_type Level, <span class="keyword">const</span> <a class="code" href="classZenLib_1_1Ztring.html">Ztring</a> &amp;NewSeparator);<span class="comment"></span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment">    /// @brief Set the Quote character</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment">    /// During Read() or Write() method, if Separator is in the sequence, we must quote it</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment"></span>    <span class="keywordtype">void</span> <a class="code" href="classZenLib_1_1InfoMap.html#a383647cc97014e5a318f674e0211e04a">Quote_Set</a> (<span class="keyword">const</span> <a class="code" href="classZenLib_1_1Ztring.html">Ztring</a> &amp;NewQuote);<span class="comment"></span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment">    /// @brief Set the Maximum number of element to read</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="comment">    /// During Read() or Write() method, if there is more elements, merge them with the last element</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment"></span>    <span class="keywordtype">void</span> <a class="code" href="classZenLib_1_1InfoMap.html#a937c851b19d1ec659beeec5c9ff8e748">Max_Set</a> (size_type Level, size_type <a class="code" href="classZenLib_1_1InfoMap.html#a5fce9e304050fd1ea1b117a2030c31cb">Max</a>);</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="keyword">protected</span> :</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classZenLib_1_1InfoMap.html#af995c24b580ed7d7b2c9c40b9b5fec66">   51</a></span>&#160;    <a class="code" href="classZenLib_1_1Ztring.html">Ztring</a> <a class="code" href="classZenLib_1_1InfoMap.html#af995c24b580ed7d7b2c9c40b9b5fec66">Separator</a>[2];</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classZenLib_1_1InfoMap.html#ac43777e12f32011d9101b6f0ca80d31b">   52</a></span>&#160;    <a class="code" href="classZenLib_1_1Ztring.html">Ztring</a> <a class="code" href="classZenLib_1_1InfoMap.html#ac43777e12f32011d9101b6f0ca80d31b">Quote</a>;</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classZenLib_1_1InfoMap.html#a5fce9e304050fd1ea1b117a2030c31cb">   53</a></span>&#160;    size_type Max[2];</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;};</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;} <span class="comment">//namespace</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="namespaceZenLib_html_a30670db81d05c6a0dedbb71925817989"><div class="ttname"><a href="namespaceZenLib.html#a30670db81d05c6a0dedbb71925817989">ZenLib::Char</a></div><div class="ttdeci">char Char</div><div class="ttdef"><b>Definition:</b> Conf.h:214</div></div>
<div class="ttc" id="classZenLib_1_1InfoMap_html_ab7be7e06ec2675eeba8ec044f79adfca"><div class="ttname"><a href="classZenLib_1_1InfoMap.html#ab7be7e06ec2675eeba8ec044f79adfca">ZenLib::InfoMap::Separator_Set</a></div><div class="ttdeci">void Separator_Set(size_type Level, const Ztring &amp;NewSeparator)</div><div class="ttdoc">Set the Separator character. </div></div>
<div class="ttc" id="classZenLib_1_1InfoMap_html_a5fce9e304050fd1ea1b117a2030c31cb"><div class="ttname"><a href="classZenLib_1_1InfoMap.html#a5fce9e304050fd1ea1b117a2030c31cb">ZenLib::InfoMap::Max</a></div><div class="ttdeci">size_type Max[2]</div><div class="ttdef"><b>Definition:</b> InfoMap.h:53</div></div>
<div class="ttc" id="classZenLib_1_1InfoMap_html_a937c851b19d1ec659beeec5c9ff8e748"><div class="ttname"><a href="classZenLib_1_1InfoMap.html#a937c851b19d1ec659beeec5c9ff8e748">ZenLib::InfoMap::Max_Set</a></div><div class="ttdeci">void Max_Set(size_type Level, size_type Max)</div><div class="ttdoc">Set the Maximum number of element to read During Read() or Write() method, if there is more elements...</div></div>
<div class="ttc" id="classZenLib_1_1InfoMap_html"><div class="ttname"><a href="classZenLib_1_1InfoMap.html">ZenLib::InfoMap</a></div><div class="ttdoc">Helper for InfoMap. </div><div class="ttdef"><b>Definition:</b> InfoMap.h:24</div></div>
<div class="ttc" id="ZtringList_8h_html"><div class="ttname"><a href="ZtringList_8h.html">ZtringList.h</a></div></div>
<div class="ttc" id="classZenLib_1_1InfoMap_html_af995c24b580ed7d7b2c9c40b9b5fec66"><div class="ttname"><a href="classZenLib_1_1InfoMap.html#af995c24b580ed7d7b2c9c40b9b5fec66">ZenLib::InfoMap::Separator</a></div><div class="ttdeci">Ztring Separator[2]</div><div class="ttdef"><b>Definition:</b> InfoMap.h:51</div></div>
<div class="ttc" id="classZenLib_1_1InfoMap_html_ac43777e12f32011d9101b6f0ca80d31b"><div class="ttname"><a href="classZenLib_1_1InfoMap.html#ac43777e12f32011d9101b6f0ca80d31b">ZenLib::InfoMap::Quote</a></div><div class="ttdeci">Ztring Quote</div><div class="ttdef"><b>Definition:</b> InfoMap.h:52</div></div>
<div class="ttc" id="classZenLib_1_1InfoMap_html_a3c084beae701d6c7e540f09dc9b9cae2"><div class="ttname"><a href="classZenLib_1_1InfoMap.html#a3c084beae701d6c7e540f09dc9b9cae2">ZenLib::InfoMap::Get</a></div><div class="ttdeci">const Ztring &amp; Get(const Ztring &amp;Value, size_t Pos) const </div></div>
<div class="ttc" id="classZenLib_1_1InfoMap_html_aaa2ca6ded6e674f09b7e7fd3f66dd3c7"><div class="ttname"><a href="classZenLib_1_1InfoMap.html#aaa2ca6ded6e674f09b7e7fd3f66dd3c7">ZenLib::InfoMap::InfoMap</a></div><div class="ttdeci">InfoMap()</div></div>
<div class="ttc" id="classZenLib_1_1Ztring_html"><div class="ttname"><a href="classZenLib_1_1Ztring.html">ZenLib::Ztring</a></div><div class="ttdoc">String manipulation (based on std::(w)string) </div><div class="ttdef"><b>Definition:</b> Ztring.h:49</div></div>
<div class="ttc" id="classZenLib_1_1InfoMap_html_a383647cc97014e5a318f674e0211e04a"><div class="ttname"><a href="classZenLib_1_1InfoMap.html#a383647cc97014e5a318f674e0211e04a">ZenLib::InfoMap::Quote_Set</a></div><div class="ttdeci">void Quote_Set(const Ztring &amp;NewQuote)</div><div class="ttdoc">Set the Quote character During Read() or Write() method, if Separator is in the sequence, we must quote it. </div></div>
<div class="ttc" id="classZenLib_1_1InfoMap_html_a79d8d05223af5acce6da2c68094569b9"><div class="ttname"><a href="classZenLib_1_1InfoMap.html#a79d8d05223af5acce6da2c68094569b9">ZenLib::InfoMap::Write</a></div><div class="ttdeci">void Write(const Ztring &amp;NewLanguage)</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sat Oct 19 2013 00:11:17 for ZenLib by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>