<HTML><HEAD><SCRIPT language="JavaScript" src="../resources/script.js" type="text/javascript"></SCRIPT><TITLE>Xerces-C++: XMLAbstractDoubleFloat.hpp Source File</TITLE><link href="XercesApi.css" rel="stylesheet" type="text/css"></HEAD><BODY alink="#ff0000" bgcolor="#ffffff" leftmargin="4" link="#0000ff" marginheight="4" marginwidth="4" text="#000000" topmargin="4" vlink="#0000aa"><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD align="left" height="60" rowspan="3" valign="top" width="135"><IMG border="0" height="60" hspace="0" src="../resources/logo.gif" vspace="0" width="135"></TD><TD align="left" colspan="4" height="5" valign="top" width="456"><IMG border="0" height="5" hspace="0" src="../resources/line.gif" vspace="0" width="456"></TD><TD align="left" height="60" rowspan="3" valign="top" width="29"><IMG border="0" height="60" hspace="0" src="../resources/right.gif" vspace="0" width="29"></TD></TR><TR><TD align="left" bgcolor="#0086b2" colspan="4" height="35" valign="top" width="456"><IMG alt="" border="0" height="35" hspace="0" src="../graphics/api-header.jpg" vspace="0" width="456"></TD></TR><TR><TD align="left" height="20" valign="top" width="168"><IMG border="0" height="20" hspace="0" src="../resources/bottom.gif" vspace="0" width="168"></TD><TD align="left" height="20" valign="top" width="96"><A href="http://xml.apache.org/" onMouseOut="rolloverOff('xml');" onMouseOver="rolloverOn('xml');" target="new"><IMG alt="http://xml.apache.org/" border="0" height="20" hspace="0" name="xml" onLoad="rolloverLoad('xml','../resources/button-xml-hi.gif','../resources/button-xml-lo.gif');" src="../resources/button-xml-lo.gif" vspace="0" width="96"></A></TD><TD align="left" height="20" valign="top" width="96"><A href="http://www.apache.org/" onMouseOut="rolloverOff('asf');" onMouseOver="rolloverOn('asf');" target="new"><IMG alt="http://www.apache.org/" border="0" height="20" hspace="0" name="asf" onLoad="rolloverLoad('asf','../resources/button-asf-hi.gif','../resources/button-asf-lo.gif');" src="../resources/button-asf-lo.gif" vspace="0" width="96"></A></TD><TD align="left" height="20" valign="top" width="96"><A href="http://www.w3.org/" onMouseOut="rolloverOff('w3c');" onMouseOver="rolloverOn('w3c');" target="new"><IMG alt="http://www.w3.org/" border="0" height="20" hspace="0" name="w3c" onLoad="rolloverLoad('w3c','../resources/button-w3c-hi.gif','../resources/button-w3c-lo.gif');" src="../resources/button-w3c-lo.gif" vspace="0" width="96"></A></TD></TR></TABLE><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD align="left" valign="top" width="120"><IMG border="0" height="14" hspace="0" src="../resources/join.gif" vspace="0" width="120"><BR> <A href="../../index.html" onMouseOut="rolloverOff('side-ext-2');" onMouseOver="rolloverOn('side-ext-2');"><IMG alt="Home" border="0" height="12" hspace="0" name="side-ext-2" onLoad="rolloverLoad('side-ext-2','../graphics/ext-2-label-2.jpg','../graphics/ext-2-label-3.jpg');" src="../graphics/ext-2-label-3.jpg" vspace="0" width="120"></A><BR> <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR> <A href="../index.html" onMouseOut="rolloverOff('side-index');" onMouseOver="rolloverOn('side-index');"><IMG alt="Readme" border="0" height="12" hspace="0" name="side-index" onLoad="rolloverLoad('side-index','../graphics/index-label-2.jpg','../graphics/index-label-3.jpg');" src="../graphics/index-label-3.jpg" vspace="0" width="120"></A><BR> <A href="../charter.html" onMouseOut="rolloverOff('side-charter');" onMouseOver="rolloverOn('side-charter');"><IMG alt="Charter" border="0" height="12" hspace="0" name="side-charter" onLoad="rolloverLoad('side-charter','../graphics/charter-label-2.jpg','../graphics/charter-label-3.jpg');" src="../graphics/charter-label-3.jpg" vspace="0" width="120"></A><BR> <A href="../releases.html" onMouseOut="rolloverOff('side-releases');" onMouseOver="rolloverOn('side-releases');"><IMG alt="Release Info" border="0" height="12" hspace="0" name="side-releases" onLoad="rolloverLoad('side-releases','../graphics/releases-label-2.jpg','../graphics/releases-label-3.jpg');" src="../graphics/releases-label-3.jpg" vspace="0" width="120"></A><BR> <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR> <A href="../install.html" onMouseOut="rolloverOff('side-install');" onMouseOver="rolloverOn('side-install');"><IMG alt="Installation" border="0" height="12" hspace="0" name="side-install" onLoad="rolloverLoad('side-install','../graphics/install-label-2.jpg','../graphics/install-label-3.jpg');" src="../graphics/install-label-3.jpg" vspace="0" width="120"></A><BR> <A href="http://xml.apache.org/xerces-c/download.cgi" onMouseOut="rolloverOff('side-ext-20');" onMouseOver="rolloverOn('side-ext-20');"><IMG alt="Download" border="0" height="12" hspace="0" name="side-ext-20" onLoad="rolloverLoad('side-ext-20','../graphics/ext-20-label-2.jpg','../graphics/ext-20-label-3.jpg');" src="../graphics/ext-20-label-3.jpg" vspace="0" width="120"></A><BR> <A href="../build.html" onMouseOut="rolloverOff('side-build');" onMouseOver="rolloverOn('side-build');"><IMG alt="Build Instructions" border="0" height="12" hspace="0" name="side-build" onLoad="rolloverLoad('side-build','../graphics/build-label-2.jpg','../graphics/build-label-3.jpg');" src="../graphics/build-label-3.jpg" vspace="0" width="120"></A><BR> <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR> <A href="../faqs.html" onMouseOut="rolloverOff('side-faqs');" onMouseOver="rolloverOn('side-faqs');"><IMG alt="FAQs" border="0" height="12" hspace="0" name="side-faqs" onLoad="rolloverLoad('side-faqs','../graphics/faqs-label-2.jpg','../graphics/faqs-label-3.jpg');" src="../graphics/faqs-label-3.jpg" vspace="0" width="120"></A><BR> <A href="../samples.html" onMouseOut="rolloverOff('side-samples');" onMouseOver="rolloverOn('side-samples');"><IMG alt="Samples" border="0" height="12" hspace="0" name="side-samples" onLoad="rolloverLoad('side-samples','../graphics/samples-label-2.jpg','../graphics/samples-label-3.jpg');" src="../graphics/samples-label-3.jpg" vspace="0" width="120"></A><BR> <A href="../api.html" onMouseOut="rolloverOff('side-api');" onMouseOver="rolloverOn('side-api');"><IMG alt="API Docs" border="0" height="12" hspace="0" name="side-api" onLoad="rolloverLoad('side-api','../graphics/api-label-2.jpg','../graphics/api-label-3.jpg');" src="../graphics/api-label-3.jpg" vspace="0" width="120"></A><BR> <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR> <A href="../ApacheDOMC++Binding.html" onMouseOut="rolloverOff('side-ext-70');" onMouseOver="rolloverOn('side-ext-70');"><IMG alt="DOM C++ Binding" border="0" height="12" hspace="0" name="side-ext-70" onLoad="rolloverLoad('side-ext-70','../graphics/ext-70-label-2.jpg','../graphics/ext-70-label-3.jpg');" src="../graphics/ext-70-label-3.jpg" vspace="0" width="120"></A><BR> <IMG alt="Programming" border="0" height="12" hspace="0" src="../graphics/program-label-1.jpg" vspace="0" width="120"><BR> <A href="../migrate.html" onMouseOut="rolloverOff('side-migrate');" onMouseOver="rolloverOn('side-migrate');"><IMG alt="Migration Guide" border="0" height="12" hspace="0" name="side-migrate" onLoad="rolloverLoad('side-migrate','../graphics/migrate-label-2.jpg','../graphics/migrate-label-3.jpg');" src="../graphics/migrate-label-3.jpg" vspace="0" width="120"></A><BR> <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR> <A href="../feedback.html" onMouseOut="rolloverOff('side-feedback');" onMouseOver="rolloverOn('side-feedback');"><IMG alt="Feedback" border="0" height="12" hspace="0" name="side-feedback" onLoad="rolloverLoad('side-feedback','../graphics/feedback-label-2.jpg','../graphics/feedback-label-3.jpg');" src="../graphics/feedback-label-3.jpg" vspace="0" width="120"></A><BR> <A href="bug-report.html" onMouseOut="rolloverOff('side-bug-report');" onMouseOver="rolloverOn('side-bug-report');"><IMG alt="Bug-Reporting" border="0" height="12" hspace="0" name="side-bug-report" onLoad="rolloverLoad('side-bug-report','../graphics/bug-report-label-2.jpg','../graphics/bug-report-label-3.jpg');" src="../graphics/bug-report-label-3.jpg" vspace="0" width="120"></A><BR> <A href="../pdf.html" onMouseOut="rolloverOff('side-pdf');" onMouseOver="rolloverOn('side-pdf');"><IMG alt="PDF Document" border="0" height="12" hspace="0" name="side-pdf" onLoad="rolloverLoad('side-pdf','../graphics/pdf-label-2.jpg','../graphics/pdf-label-3.jpg');" src="../graphics/pdf-label-3.jpg" vspace="0" width="120"></A><BR> <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR> <A href="http://svn.apache.org/viewcvs.cgi/xerces/?root=Apache-SVN" onMouseOut="rolloverOff('side-ext-102');" onMouseOver="rolloverOn('side-ext-102');"><IMG alt="Source Repository" border="0" height="12" hspace="0" name="side-ext-102" onLoad="rolloverLoad('side-ext-102','../graphics/ext-102-label-2.jpg','../graphics/ext-102-label-3.jpg');" src="../graphics/ext-102-label-3.jpg" vspace="0" width="120"></A><BR> <A href="http://marc.theaimsgroup.com/?l=xerces-c-users" onMouseOut="rolloverOff('side-ext-104');" onMouseOver="rolloverOn('side-ext-104');"><IMG alt="User Mail Archive" border="0" height="12" hspace="0" name="side-ext-104" onLoad="rolloverLoad('side-ext-104','../graphics/ext-104-label-2.jpg','../graphics/ext-104-label-3.jpg');" src="../graphics/ext-104-label-3.jpg" vspace="0" width="120"></A><BR> <A href="http://marc.theaimsgroup.com/?l=xerces-c-dev" onMouseOut="rolloverOff('side-ext-106');" onMouseOver="rolloverOn('side-ext-106');"><IMG alt="Devel Mail Archive" border="0" height="12" hspace="0" name="side-ext-106" onLoad="rolloverLoad('side-ext-106','../graphics/ext-106-label-2.jpg','../graphics/ext-106-label-3.jpg');" src="../graphics/ext-106-label-3.jpg" vspace="0" width="120"></A><BR> <IMG border="0" height="14" hspace="0" src="../resources/close.gif" vspace="0" width="120"><BR></TD><TD align="left" valign="top" width="500"><TABLE border="0" cellpadding="3" cellspacing="0"><TR><TD> <TABLE border="0" cellpadding="0" cellspacing="0" width="494"><TR><TD bgcolor="#FFFFFF" colspan="2" width="494"><TABLE border="0" cellpadding="0" cellspacing="0" width="494"><TR><TD bgcolor="#039acc" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#039acc" height="1" width="492"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="492"></TD><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#039acc" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#0086b2" width="492"><FONT color="#ffffff" face="arial,helvetica,sanserif" size="+1"><IMG border="0" height="2" hspace="0" src="../resources/void.gif" vspace="0" width="2"><B>API Docs for SAX and DOM</B></FONT></TD><TD bgcolor="#017299" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#017299" height="1" width="492"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="492"></TD><TD bgcolor="#017299" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR></TABLE></TD></TR><TR><TD width="10"> </TD><TD width="484"><FONT color="#000000" face="arial,helvetica,sanserif"> <P> <!-- Generated by Doxygen 1.4.1 --> <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div> <div class="nav"> <a class="el" href="dir_000000.html">src</a> / <a class="el" href="dir_000001.html">xercesc</a> / <a class="el" href="dir_000003.html">util</a></div> <h1>XMLAbstractDoubleFloat.hpp</h1><a href="XMLAbstractDoubleFloat_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/*</span> 00002 <span class="comment"> * Copyright 2001,2004 The Apache Software Foundation.</span> 00003 <span class="comment"> * </span> 00004 <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span> 00005 <span class="comment"> * you may not use this file except in compliance with the License.</span> 00006 <span class="comment"> * You may obtain a copy of the License at</span> 00007 <span class="comment"> * </span> 00008 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span> 00009 <span class="comment"> * </span> 00010 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span> 00011 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span> 00012 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span> 00013 <span class="comment"> * See the License for the specific language governing permissions and</span> 00014 <span class="comment"> * limitations under the License.</span> 00015 <span class="comment"> */</span> 00016 00017 <span class="comment">/*</span> 00018 <span class="comment"> * $Id: XMLAbstractDoubleFloat.hpp 191054 2005-06-17 02:56:35Z jberry $</span> 00019 <span class="comment"> */</span> 00020 00021 <span class="preprocessor">#ifndef XML_ABSTRACT_DOUBLE_FLOAT_HPP</span> 00022 <span class="preprocessor"></span><span class="preprocessor">#define XML_ABSTRACT_DOUBLE_FLOAT_HPP</span> 00023 <span class="preprocessor"></span> 00024 <span class="preprocessor">#include <<a class="code" href="XMLNumber_8hpp.html">xercesc/util/XMLNumber.hpp</a>></span> 00025 <span class="preprocessor">#include <<a class="code" href="PlatformUtils_8hpp.html">xercesc/util/PlatformUtils.hpp</a>></span> 00026 00027 <a class="code" href="XercesDefs_8hpp.html#a3">XERCES_CPP_NAMESPACE_BEGIN</a> 00028 00029 <span class="comment">/***</span> 00030 <span class="comment"> * 3.2.5.1 Lexical representation</span> 00031 <span class="comment"> *</span> 00032 <span class="comment"> * double values have a lexical representation consisting of a mantissa followed,</span> 00033 <span class="comment"> * optionally, by the character "E" or "e", followed by an exponent.</span> 00034 <span class="comment"> *</span> 00035 <span class="comment"> * The exponent �must� be an integer.</span> 00036 <span class="comment"> * The mantissa must be a decimal number.</span> 00037 <span class="comment"> * The representations for exponent and mantissa must follow the lexical rules</span> 00038 <span class="comment"> * for integer and decimal.</span> 00039 <span class="comment"> *</span> 00040 <span class="comment"> * If the "E" or "e" and the following exponent are omitted,</span> 00041 <span class="comment"> * an exponent value of 0 is assumed.</span> 00042 <span class="comment">***/</span> 00043 00044 <span class="comment">/***</span> 00045 <span class="comment"> * 3.2.4.1 Lexical representation</span> 00046 <span class="comment"> *</span> 00047 <span class="comment"> * float values have a lexical representation consisting of a mantissa followed,</span> 00048 <span class="comment"> * optionally, by the character "E" or "e", followed by an exponent.</span> 00049 <span class="comment"> *</span> 00050 <span class="comment"> * The exponent �must� be an integer.</span> 00051 <span class="comment"> * The mantissa must be a decimal number.</span> 00052 <span class="comment"> * The representations for exponent and mantissa must follow the lexical rules</span> 00053 <span class="comment"> * for integer and decimal.</span> 00054 <span class="comment"> *</span> 00055 <span class="comment"> * If the "E" or "e" and the following exponent are omitted,</span> 00056 <span class="comment"> * an exponent value of 0 is assumed.</span> 00057 <span class="comment">***/</span> 00058 <a name="l00059"></a><a class="code" href="classXMLAbstractDoubleFloat.html">00059</a> <span class="keyword">class </span><a class="code" href="XercesDefs_8hpp.html#a9"></a> XMLAbstractDoubleFloat : <span class="keyword">public</span> <a class="code" href="classXMLNumber.html">XMLNumber</a> 00060 { 00061 <span class="keyword">public</span>: 00062 <a name="l00063"></a><a class="code" href="classXMLAbstractDoubleFloat.html#w5">00063</a> <span class="keyword">enum</span> LiteralType 00064 { 00065 NegINF, 00066 PosINF, 00067 NaN, 00068 SpecialTypeNum, 00069 Normal 00070 }; 00071 00072 <span class="keyword">virtual</span> ~XMLAbstractDoubleFloat(); 00073 00074 <span class="keyword">static</span> XMLCh* getCanonicalRepresentation 00075 ( 00076 <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> rawData 00077 , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <span class="keyword">const</span> memMgr = XMLPlatformUtils::fgMemoryManager 00078 ); 00079 00085 <span class="keyword">virtual</span> XMLCh* <a class="code" href="classXMLNumber.html#a1">toString</a>() <span class="keyword">const</span>; 00086 00087 <span class="keyword">virtual</span> XMLCh* <a class="code" href="classXMLNumber.html#a2">getRawData</a>() <span class="keyword">const</span>; 00088 00089 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* <a class="code" href="classXMLNumber.html#a3">getFormattedString</a>() <span class="keyword">const</span>; 00090 00091 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classXMLNumber.html#a4">getSign</a>() <span class="keyword">const</span>; 00092 00093 <a class="code" href="classMemoryManager.html">MemoryManager</a>* getMemoryManager() <span class="keyword">const</span>; 00094 00095 <span class="keyword">inline</span> <span class="keywordtype">bool</span> isDataConverted() <span class="keyword">const</span>; 00096 00097 <span class="keyword">inline</span> <span class="keywordtype">bool</span> isDataOverflowed() <span class="keyword">const</span>; 00098 00099 <span class="keyword">inline</span> <span class="keywordtype">double</span> getValue() <span class="keyword">const</span>; 00100 00101 <span class="keyword">inline</span> LiteralType getType() <span class="keyword">const</span>; 00102 00103 <span class="comment">/***</span> 00104 <span class="comment"> *</span> 00105 <span class="comment"> * The decimal point delimiter for the schema double/float type is</span> 00106 <span class="comment"> * defined to be a period and is not locale-specific. So, it must</span> 00107 <span class="comment"> * be replaced with the local-specific delimiter before converting</span> 00108 <span class="comment"> * from string to double/float.</span> 00109 <span class="comment"> *</span> 00110 <span class="comment"> ***/</span> 00111 <span class="keyword">static</span> <span class="keywordtype">void</span> normalizeDecimalPoint(<span class="keywordtype">char</span>* <span class="keyword">const</span> toNormal); 00112 00113 <span class="comment">/***</span> 00114 <span class="comment"> * Support for Serialization/De-serialization</span> 00115 <span class="comment"> ***/</span> 00116 DECL_XSERIALIZABLE(XMLAbstractDoubleFloat) 00117 00118 protected: 00119 00120 <span class="comment">//</span> 00121 <span class="comment">// To be used by derived class exclusively</span> 00122 <span class="comment">//</span> 00123 XMLAbstractDoubleFloat(<a class="code" href="classMemoryManager.html">MemoryManager</a>* const manager = <a class="code" href="classXMLPlatformUtils.html">XMLPlatformUtils</a>::fgMemoryManager); 00124 00125 <span class="keywordtype">void</span> init(const XMLCh* const strValue); 00126 00140 static <span class="keywordtype">int</span> compareValues(const XMLAbstractDoubleFloat* const lValue 00141 , const XMLAbstractDoubleFloat* const rValue 00142 , <a class="code" href="classMemoryManager.html">MemoryManager</a>* const manager); 00143 00144 <span class="comment">//</span> 00145 <span class="comment">// to be overridden by derived class</span> 00146 <span class="comment">//</span> 00147 virtual <span class="keywordtype">void</span> checkBoundary(<span class="keywordtype">char</span>* const strValue) = 0; 00148 00149 <span class="keywordtype">void</span> 00150 convert(<span class="keywordtype">char</span>* const strValue); 00151 00152 private: 00153 <span class="comment">//</span> 00154 <span class="comment">// Unimplemented</span> 00155 <span class="comment">//</span> 00156 <span class="comment">// copy ctor</span> 00157 <span class="comment">// assignment ctor</span> 00158 <span class="comment">//</span> 00159 XMLAbstractDoubleFloat(const XMLAbstractDoubleFloat& toCopy); 00160 XMLAbstractDoubleFloat& operator=(const XMLAbstractDoubleFloat& toAssign); 00161 00162 <span class="keywordtype">void</span> normalizeZero(XMLCh* const); 00163 00164 inline <span class="keywordtype">bool</span> isSpecialValue() const; 00165 00166 static <span class="keywordtype">int</span> compareSpecial(const XMLAbstractDoubleFloat* const specialValue 00167 , <a class="code" href="classMemoryManager.html">MemoryManager</a>* const manager); 00168 00169 <span class="keywordtype">void</span> formatString(); 00170 00171 protected: <a name="l00172"></a><a class="code" href="classXMLAbstractDoubleFloat.html#p0">00172</a> <span class="keywordtype">double</span> fValue; <a name="l00173"></a><a class="code" href="classXMLAbstractDoubleFloat.html#p1">00173</a> LiteralType fType; <a name="l00174"></a><a class="code" href="classXMLAbstractDoubleFloat.html#p2">00174</a> <span class="keywordtype">bool</span> fDataConverted; <a name="l00175"></a><a class="code" href="classXMLAbstractDoubleFloat.html#p3">00175</a> <span class="keywordtype">bool</span> fDataOverflowed; 00176 00177 private: 00178 <span class="keywordtype">int</span> fSign; 00179 XMLCh* fRawData; 00180 00181 <span class="comment">//</span> 00182 <span class="comment">// If the original string is not lexcially the same as the five</span> 00183 <span class="comment">// special value notations, and the value is converted to</span> 00184 <span class="comment">// special value due underlying platform restriction on data</span> 00185 <span class="comment">// representation, then this string is constructed and</span> 00186 <span class="comment">// takes the form "original_string (special_value_notation)", </span> 00187 <span class="comment">// otherwise it is empty.</span> 00188 <span class="comment">//</span> 00189 XMLCh* fFormattedString; 00190 <a class="code" href="classMemoryManager.html">MemoryManager</a>* fMemoryManager; 00191 00192 }; 00193 00194 inline <span class="keywordtype">bool</span> XMLAbstractDoubleFloat::isSpecialValue()<span class="keyword"> const</span> 00195 <span class="keyword"></span>{ 00196 <span class="keywordflow">return</span> (fType < SpecialTypeNum); 00197 } 00198 <a name="l00199"></a><a class="code" href="classXMLAbstractDoubleFloat.html#a5">00199</a> <span class="keyword">inline</span> <a class="code" href="classMemoryManager.html">MemoryManager</a>* <a class="code" href="classXMLAbstractDoubleFloat.html#a5">XMLAbstractDoubleFloat::getMemoryManager</a>()<span class="keyword"> const</span> 00200 <span class="keyword"></span>{ 00201 <span class="keywordflow">return</span> fMemoryManager; 00202 } 00203 <a name="l00204"></a><a class="code" href="classXMLAbstractDoubleFloat.html#a6">00204</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classXMLAbstractDoubleFloat.html#a6">XMLAbstractDoubleFloat::isDataConverted</a>()<span class="keyword"> const</span> 00205 <span class="keyword"></span>{ 00206 <span class="keywordflow">return</span> <a class="code" href="classXMLAbstractDoubleFloat.html#p2">fDataConverted</a>; 00207 } 00208 <a name="l00209"></a><a class="code" href="classXMLAbstractDoubleFloat.html#a7">00209</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classXMLAbstractDoubleFloat.html#a7">XMLAbstractDoubleFloat::isDataOverflowed</a>()<span class="keyword"> const</span> 00210 <span class="keyword"></span>{ 00211 <span class="keywordflow">return</span> <a class="code" href="classXMLAbstractDoubleFloat.html#p3">fDataOverflowed</a>; 00212 } 00213 <a name="l00214"></a><a class="code" href="classXMLAbstractDoubleFloat.html#a8">00214</a> <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="classXMLAbstractDoubleFloat.html#a8">XMLAbstractDoubleFloat::getValue</a>()<span class="keyword"> const</span> 00215 <span class="keyword"></span>{ 00216 <span class="keywordflow">return</span> <a class="code" href="classXMLAbstractDoubleFloat.html#p0">fValue</a>; 00217 } 00218 <a name="l00219"></a><a class="code" href="classXMLAbstractDoubleFloat.html#a9">00219</a> <span class="keyword">inline</span> <a class="code" href="classXMLAbstractDoubleFloat.html#w5">XMLAbstractDoubleFloat::LiteralType</a> <a class="code" href="classXMLAbstractDoubleFloat.html#a9">XMLAbstractDoubleFloat::getType</a>()<span class="keyword"> const</span> 00220 <span class="keyword"></span>{ 00221 <span class="keywordflow">return</span> <a class="code" href="classXMLAbstractDoubleFloat.html#p1">fType</a>; 00222 } 00223 00224 <a class="code" href="XercesDefs_8hpp.html#a4">XERCES_CPP_NAMESPACE_END</a> 00225 00226 <span class="preprocessor">#endif</span> </pre></div> </FONT></TD></TR></TABLE><BR> </TD></TR></TABLE></TD></TR></TABLE><BR><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD bgcolor="#0086b2"><IMG height="1" src="images/dot.gif" width="1" alt=""></TD></TR><TR><TD align="center"><FONT color="#0086b2" size="-1"><I> Copyright © 1994-2004 The Apache Software Foundation. All Rights Reserved. </I></FONT></TD></TR></TABLE></BODY></HTML>