Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > f51238514e2abe817779ad2fe01b0759 > files > 247

icu-doc-4.4-2.1mdv2010.2.i586.rpm

<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!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"/>
<title>ICU 4.4: curramt.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>curramt.h</h1><a href="curramt_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">**********************************************************************</span>
<a name="l00003"></a>00003 <span class="comment">* Copyright (c) 2004-2006, International Business Machines</span>
<a name="l00004"></a>00004 <span class="comment">* Corporation and others.  All Rights Reserved.</span>
<a name="l00005"></a>00005 <span class="comment">**********************************************************************</span>
<a name="l00006"></a>00006 <span class="comment">* Author: Alan Liu</span>
<a name="l00007"></a>00007 <span class="comment">* Created: April 26, 2004</span>
<a name="l00008"></a>00008 <span class="comment">* Since: ICU 3.0</span>
<a name="l00009"></a>00009 <span class="comment">**********************************************************************</span>
<a name="l00010"></a>00010 <span class="comment">*/</span>
<a name="l00011"></a>00011 <span class="preprocessor">#ifndef __CURRENCYAMOUNT_H__</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define __CURRENCYAMOUNT_H__</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;<a class="code" href="utypes_8h.html" title="Basic definitions for ICU, for both C and C++ APIs.">unicode/utypes.h</a>&quot;</span>
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="preprocessor">#if !UCONFIG_NO_FORMATTING</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &quot;<a class="code" href="measure_8h.html" title="C++ API: MeasureUnit object.">unicode/measure.h</a>&quot;</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &quot;<a class="code" href="currunit_8h.html" title="C++ API: Currency Unit Information.">unicode/currunit.h</a>&quot;</span>
<a name="l00020"></a>00020 
<a name="l00026"></a>00026 <a class="code" href="uversion_8h.html#a7d9374e037299886d4192b763b4c5e8b" title="This is used to begin a declaration of a public ICU C++ API.">U_NAMESPACE_BEGIN</a>
<a name="l00027"></a>00027 
<a name="l00035"></a><a class="code" href="classCurrencyAmount.html">00035</a> <span class="keyword">class </span><a class="code" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a" title="Set to export library symbols from inside the i18n library, and to import them from...">U_I18N_API</a> <a class="code" href="classCurrencyAmount.html" title="A currency together with a numeric amount, such as 200 USD.">CurrencyAmount</a>: <span class="keyword">public</span> <a class="code" href="classMeasure.html" title="An amount of a specified unit, consisting of a number and a Unit.">Measure</a> {
<a name="l00036"></a>00036  <span class="keyword">public</span>:
<a name="l00047"></a>00047     <a class="code" href="classCurrencyAmount.html" title="A currency together with a numeric amount, such as 200 USD.">CurrencyAmount</a>(<span class="keyword">const</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>&amp; amount, <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned...">UChar</a>* isoCode,
<a name="l00048"></a>00048                    <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a> &amp;ec);
<a name="l00049"></a>00049 
<a name="l00060"></a>00060     <a class="code" href="classCurrencyAmount.html" title="A currency together with a numeric amount, such as 200 USD.">CurrencyAmount</a>(<span class="keywordtype">double</span> amount, <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned...">UChar</a>* isoCode,
<a name="l00061"></a>00061                    <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a> &amp;ec);
<a name="l00062"></a>00062 
<a name="l00067"></a>00067     <a class="code" href="classCurrencyAmount.html" title="A currency together with a numeric amount, such as 200 USD.">CurrencyAmount</a>(<span class="keyword">const</span> <a class="code" href="classCurrencyAmount.html" title="A currency together with a numeric amount, such as 200 USD.">CurrencyAmount</a>&amp; other);
<a name="l00068"></a>00068  
<a name="l00073"></a>00073     <a class="code" href="classCurrencyAmount.html" title="A currency together with a numeric amount, such as 200 USD.">CurrencyAmount</a>&amp; <a class="code" href="classMeasure.html#a94221e3ffde5706e1f28e0a558f34981" title="Assignment operator.">operator=</a>(<span class="keyword">const</span> <a class="code" href="classCurrencyAmount.html" title="A currency together with a numeric amount, such as 200 USD.">CurrencyAmount</a>&amp; other);
<a name="l00074"></a>00074 
<a name="l00080"></a>00080     <span class="keyword">virtual</span> <a class="code" href="classUObject.html" title="UObject is the common ICU &amp;quot;boilerplate&amp;quot; class.">UObject</a>* <a class="code" href="classMeasure.html#abc87db8d55945660b2ea2cd3d0713b89" title="Return a polymorphic clone of this object.">clone</a>() <span class="keyword">const</span>;
<a name="l00081"></a>00081 
<a name="l00086"></a>00086     <span class="keyword">virtual</span> ~<a class="code" href="classCurrencyAmount.html" title="A currency together with a numeric amount, such as 200 USD.">CurrencyAmount</a>();
<a name="l00087"></a>00087     
<a name="l00096"></a>00096     <span class="keyword">virtual</span> <a class="code" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f" title="UClassID is used to identify classes without using RTTI, since RTTI is not yet supported...">UClassID</a> <a class="code" href="classUObject.html#a9b1acc95efd89cb86ec31f2dc947a262" title="ICU4C &amp;quot;poor man&amp;#39;s RTTI&amp;quot;, returns a UClassID for the actual ICU class...">getDynamicClassID</a>() <span class="keyword">const</span>;
<a name="l00097"></a>00097 
<a name="l00104"></a>00104     <span class="keyword">static</span> <a class="code" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f" title="UClassID is used to identify classes without using RTTI, since RTTI is not yet supported...">UClassID</a> <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> getStaticClassID();
<a name="l00105"></a>00105 
<a name="l00110"></a>00110     <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classCurrencyUnit.html" title="A unit of currency, such as USD (U.S.">CurrencyUnit</a>&amp; getCurrency() <span class="keyword">const</span>;
<a name="l00111"></a>00111 
<a name="l00116"></a>00116     <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned...">UChar</a>* getISOCurrency() <span class="keyword">const</span>;
<a name="l00117"></a>00117 };
<a name="l00118"></a>00118 
<a name="l00119"></a><a class="code" href="classCurrencyAmount.html#a9601d6dd26b64a40978c64b074b64073">00119</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classCurrencyUnit.html" title="A unit of currency, such as USD (U.S.">CurrencyUnit</a>&amp; <a class="code" href="classCurrencyAmount.html#a9601d6dd26b64a40978c64b074b64073" title="Return the currency unit object of this object.">CurrencyAmount::getCurrency</a>()<span class="keyword"> const </span>{
<a name="l00120"></a>00120     <span class="keywordflow">return</span> (<span class="keyword">const</span> <a class="code" href="classCurrencyUnit.html" title="A unit of currency, such as USD (U.S.">CurrencyUnit</a>&amp;) <a class="code" href="classMeasure.html#aca10f62e4a418373e4b1e58e39637d0a" title="Return a reference to the unit of this object.">getUnit</a>();
<a name="l00121"></a>00121 }
<a name="l00122"></a>00122 
<a name="l00123"></a><a class="code" href="classCurrencyAmount.html#a99954a6dac387603d04cedaa1333a78b">00123</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned...">UChar</a>* <a class="code" href="classCurrencyAmount.html#a99954a6dac387603d04cedaa1333a78b" title="Return the ISO currency code of this object.">CurrencyAmount::getISOCurrency</a>()<span class="keyword"> const </span>{
<a name="l00124"></a>00124     <span class="keywordflow">return</span> <a class="code" href="classCurrencyAmount.html#a9601d6dd26b64a40978c64b074b64073" title="Return the currency unit object of this object.">getCurrency</a>().<a class="code" href="classCurrencyUnit.html#a23a93a872b11b8315f05894247ef7360" title="Return the ISO currency code of this object.">getISOCurrency</a>();
<a name="l00125"></a>00125 }
<a name="l00126"></a>00126 
<a name="l00127"></a>00127 <a class="code" href="uversion_8h.html#a3da1f00f3b02976ac53c014a3e4c0933" title="This is used to end a declaration of a public ICU C++ API.">U_NAMESPACE_END</a>
<a name="l00128"></a>00128 
<a name="l00129"></a>00129 <span class="preprocessor">#endif // !UCONFIG_NO_FORMATTING</span>
<a name="l00130"></a>00130 <span class="preprocessor"></span><span class="preprocessor">#endif // __CURRENCYAMOUNT_H__</span>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"/><address style="text-align: right;"><small>Generated on 16 Mar 2010 for ICU 4.4 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>