<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>ICU 3.8: currunit.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.1 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="classes.html"><span>Data Structures</span></a></li> <li id="current"><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li> <form action="search.php" method="get"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td><label> <u>S</u>earch for </label></td> <td><input type="text" name="query" value="" size="20" accesskey="s"/></td> </tr> </table> </form> </li> </ul></div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul></div> <h1>currunit.h</h1><a href="currunit_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 __CURRENCYUNIT_H__</span> <a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define __CURRENCYUNIT_H__</span> <a name="l00013"></a>00013 <span class="preprocessor"></span> <a name="l00014"></a>00014 <span class="preprocessor">#include "<a class="code" href="utypes_8h.html">unicode/utypes.h</a>"</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 "<a class="code" href="measunit_8h.html">unicode/measunit.h</a>"</span> <a name="l00019"></a>00019 <a name="l00025"></a>00025 <a class="code" href="uversion_8h.html#7d9374e037299886d4192b763b4c5e8b">U_NAMESPACE_BEGIN</a> <a name="l00026"></a>00026 <a name="l00035"></a><a class="code" href="classCurrencyUnit.html">00035</a> <span class="keyword">class </span><a class="code" href="utypes_8h.html#b9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="code" href="classCurrencyUnit.html">CurrencyUnit</a>: <span class="keyword">public</span> <a class="code" href="classMeasureUnit.html">MeasureUnit</a> { <a name="l00036"></a>00036 <span class="keyword">public</span>: <a name="l00045"></a>00045 <a class="code" href="classCurrencyUnit.html">CurrencyUnit</a>(<span class="keyword">const</span> <a class="code" href="umachine_8h.html#6bb9fad572d65b305324ef288165e2ac">UChar</a>* isoCode, <a class="code" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &ec); <a name="l00046"></a>00046 <a name="l00051"></a>00051 <a class="code" href="classCurrencyUnit.html">CurrencyUnit</a>(<span class="keyword">const</span> <a class="code" href="classCurrencyUnit.html">CurrencyUnit</a>& other); <a name="l00052"></a>00052 <a name="l00057"></a>00057 <a class="code" href="classCurrencyUnit.html">CurrencyUnit</a>& operator=(<span class="keyword">const</span> <a class="code" href="classCurrencyUnit.html">CurrencyUnit</a>& other); <a name="l00058"></a>00058 <a name="l00064"></a>00064 <span class="keyword">virtual</span> <a class="code" href="classUObject.html">UObject</a>* <a class="code" href="classMeasureUnit.html#48b16451dce8b9f591855dcaadca1023">clone</a>() <span class="keyword">const</span>; <a name="l00065"></a>00065 <a name="l00070"></a>00070 <span class="keyword">virtual</span> ~<a class="code" href="classCurrencyUnit.html">CurrencyUnit</a>(); <a name="l00071"></a>00071 <a name="l00077"></a>00077 <a class="code" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> <a class="code" href="classMeasureUnit.html#a0c1bc87e7098dabf49a3a14d9b68a50">operator==</a>(<span class="keyword">const</span> <a class="code" href="classUObject.html">UObject</a>& other) <span class="keyword">const</span>; <a name="l00078"></a>00078 <a name="l00087"></a>00087 <span class="keyword">virtual</span> <a class="code" href="utypes_8h.html#22af10545208a455a6e884008df48e9f">UClassID</a> <a class="code" href="classUObject.html#ce1dd31fb2c6f2c07dfebe8fd240ec37">getDynamicClassID</a>() <span class="keyword">const</span>; <a name="l00088"></a>00088 <a name="l00095"></a>00095 <span class="keyword">static</span> <a class="code" href="utypes_8h.html#22af10545208a455a6e884008df48e9f">UClassID</a> <a class="code" href="platform_8h.html#72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> getStaticClassID(); <a name="l00096"></a>00096 <a name="l00101"></a>00101 <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="umachine_8h.html#6bb9fad572d65b305324ef288165e2ac">UChar</a>* getISOCurrency() <span class="keyword">const</span>; <a name="l00102"></a>00102 <a name="l00103"></a>00103 <span class="keyword">private</span>: <a name="l00107"></a>00107 <a class="code" href="umachine_8h.html#6bb9fad572d65b305324ef288165e2ac">UChar</a> isoCode[4]; <a name="l00108"></a>00108 }; <a name="l00109"></a>00109 <a name="l00110"></a><a class="code" href="classCurrencyUnit.html#244761656c1884348abff9e115017168">00110</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="umachine_8h.html#6bb9fad572d65b305324ef288165e2ac">UChar</a>* <a class="code" href="classCurrencyUnit.html#244761656c1884348abff9e115017168">CurrencyUnit::getISOCurrency</a>()<span class="keyword"> const </span>{ <a name="l00111"></a>00111 <span class="keywordflow">return</span> isoCode; <a name="l00112"></a>00112 } <a name="l00113"></a>00113 <a name="l00114"></a>00114 <a class="code" href="uversion_8h.html#3da1f00f3b02976ac53c014a3e4c0933">U_NAMESPACE_END</a> <a name="l00115"></a>00115 <a name="l00116"></a>00116 <span class="preprocessor">#endif // !UCONFIG_NO_FORMATTING</span> <a name="l00117"></a>00117 <span class="preprocessor"></span><span class="preprocessor">#endif // __CURRENCYUNIT_H__</span> </pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Sep 14 12:59:19 2007 for ICU 3.8 by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> </body> </html>