source: NonGTP/Xerces/xerces/doc/html/apiDocs/XSValue_8hpp-source.html @ 358

Revision 358, 37.4 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1<HTML><HEAD><SCRIPT language="JavaScript" src="../resources/script.js" type="text/javascript"></SCRIPT><TITLE>XSValue.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>
2  <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>
3
4  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
5
6  <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>
7  <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>
8  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
9  <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>
10  <A href="http://xml.apache.org/dist/xerces-c/" onMouseOut="rolloverOff('side-ext-18');" onMouseOver="rolloverOn('side-ext-18');"><IMG alt="Download" border="0" height="12" hspace="0" name="side-ext-18" onLoad="rolloverLoad('side-ext-18','../graphics/ext-18-label-2.jpg','../graphics/ext-18-label-3.jpg');" src="../graphics/ext-18-label-3.jpg" vspace="0" width="120"></A><BR>
11  <A href="../build.html" onMouseOut="rolloverOff('side-build');" onMouseOver="rolloverOn('side-build');"><IMG alt="Build" 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>
12
13  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
14  <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> 
15  <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>
16  <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> 
17
18  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR> 
19  <A href="../ApacheDOMC++Binding.html" onMouseOut="rolloverOff('side-ext-68');" onMouseOver="rolloverOn('side-ext-68');"><IMG alt="DOM C++ Binding" border="0" height="12" hspace="0" name="side-ext-68" onLoad="rolloverLoad('side-ext-68','../graphics/ext-68-label-2.jpg','../graphics/ext-68-label-3.jpg');" src="../graphics/ext-68-label-3.jpg" vspace="0" width="120"></A><BR>
20
21  <A href="../program.html" onMouseOut="rolloverOff('side-program');" onMouseOver="rolloverOn('side-program');"><IMG alt="Programming" border="0" height="12" hspace="0" name="side-program" onLoad="rolloverLoad('side-program','../graphics/program-label-2.jpg','../graphics/program-label-3.jpg');" src="../graphics/program-label-3.jpg" vspace="0" width="120"></A><BR>
22  <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>
23
24  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
25
26  <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>
27  <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> 
28  <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>
29
30  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
31
32  <A href="http://xml.apache.org/websrc/cvsweb.cgi/xml-xerces/c/" onMouseOut="rolloverOff('side-ext-100');" onMouseOver="rolloverOn('side-ext-100');"><IMG alt="CVS Repository" border="0" height="12" hspace="0" name="side-ext-100" onLoad="rolloverLoad('side-ext-100','../graphics/ext-100-label-2.jpg','../graphics/ext-100-label-3.jpg');" src="../graphics/ext-100-label-3.jpg" vspace="0" width="120"></A><BR>
33
34  <A href="http://marc.theaimsgroup.com/?l=xerces-c-dev" onMouseOut="rolloverOff('side-ext-102');" onMouseOver="rolloverOn('side-ext-102');"><IMG alt="Mail Archive" 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>
35
36
37<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>
38    <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">&nbsp;</TD><TD width="484"><FONT color="#000000" face="arial,helvetica,sanserif">
39
40            <P>
41<!-- Generated by Doxygen 1.2.14 -->
42<center>
43<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
44<hr><h1>XSValue.hpp</h1><a href="XSValue_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*</font>
4500002 <font class="comment"> * Copyright 2004,2004 The Apache Software Foundation.</font>
4600003 <font class="comment"> * </font>
4700004 <font class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</font>
4800005 <font class="comment"> * you may not use this file except in compliance with the License.</font>
4900006 <font class="comment"> * You may obtain a copy of the License at</font>
5000007 <font class="comment"> * </font>
5100008 <font class="comment"> *      http://www.apache.org/licenses/LICENSE-2.0</font>
5200009 <font class="comment"> * </font>
5300010 <font class="comment"> * Unless required by applicable law or agreed to in writing, software</font>
5400011 <font class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</font>
5500012 <font class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</font>
5600013 <font class="comment"> * See the License for the specific language governing permissions and</font>
5700014 <font class="comment"> * limitations under the License.</font>
5800015 <font class="comment"> */</font>
5900016
6000017 <font class="comment">/*</font>
6100018 <font class="comment"> * $Log: XSValue.hpp,v $</font>
6200019 <font class="comment"> * Revision 1.12  2004/09/23 21:22:47  peiyongz</font>
6300020 <font class="comment"> * Documentation</font>
6400021 <font class="comment"> * st_noContent added</font>
6500022 <font class="comment"> * unused parameter removed</font>
6600023 <font class="comment"> *</font>
6700024 <font class="comment"> * Revision 1.11  2004/09/13 21:24:20  peiyongz</font>
6800025 <font class="comment"> * 1. returned data to contain datatype in addition to value</font>
6900026 <font class="comment"> * 2. registry to map type name (in string) to type name enum</font>
7000027 <font class="comment"> *</font>
7100028 <font class="comment"> * Revision 1.10  2004/09/09 20:08:31  peiyongz</font>
7200029 <font class="comment"> * Using new error code</font>
7300030 <font class="comment"> *</font>
7400031 <font class="comment"> * Revision 1.9  2004/09/08 19:56:05  peiyongz</font>
7500032 <font class="comment"> * Remove parameter toValidate from validation interface</font>
7600033 <font class="comment"> *</font>
7700034 <font class="comment"> * Revision 1.8  2004/09/08 13:56:09  peiyongz</font>
7800035 <font class="comment"> * Apache License Version 2.0</font>
7900036 <font class="comment"> *</font>
8000037 <font class="comment"> * Revision 1.7  2004/08/31 20:52:25  peiyongz</font>
8100038 <font class="comment"> * Return additional double value for decimal</font>
8200039 <font class="comment"> * remove tz_hh/tz_mm</font>
8300040 <font class="comment"> *</font>
8400041 <font class="comment"> * Revision 1.6  2004/08/31 15:14:47  peiyongz</font>
8500042 <font class="comment"> * remove XSValueContext</font>
8600043 <font class="comment"> *</font>
8700044 <font class="comment"> * Revision 1.5  2004/08/17 21:11:41  peiyongz</font>
8800045 <font class="comment"> * no more Unrepresentable</font>
8900046 <font class="comment"> *</font>
9000047 <font class="comment"> * Revision 1.4  2004/08/13 21:29:20  peiyongz</font>
9100048 <font class="comment"> * fMemAllocated</font>
9200049 <font class="comment"> *</font>
9300050 <font class="comment"> * Revision 1.3  2004/08/12 14:24:34  peiyongz</font>
9400051 <font class="comment"> * HP aCC A.03</font>
9500052 <font class="comment"> *</font>
9600053 <font class="comment"> * Revision 1.2  2004/08/11 17:06:44  peiyongz</font>
9700054 <font class="comment"> * Do not panic if can't create RegEx</font>
9800055 <font class="comment"> *</font>
9900056 <font class="comment"> * $Id: XSValue.hpp,v 1.12 2004/09/23 21:22:47 peiyongz Exp $</font>
10000057 <font class="comment"> */</font>
10100058
10200059 <font class="preprocessor">#if !defined(XSVALUE_HPP)</font>
103<a name="l00060"></a><a class="code" href="XSValue_8hpp.html#a0">00060</a> <font class="preprocessor"></font><font class="preprocessor">#define XSVALUE_HPP</font>
10400061 <font class="preprocessor"></font>
10500062 <font class="preprocessor">#include &lt;<a class="code" href="PlatformUtils_8hpp.html">xercesc/util/PlatformUtils.hpp</a>&gt;</font>
10600063 <font class="preprocessor">#include &lt;xercesc/util/RefHashTableOf.hpp&gt;</font>
10700064
10800065 <a class="code" href="XercesDefs_8hpp.html#a2">XERCES_CPP_NAMESPACE_BEGIN</a>
10900066
110<a name="l00067"></a><a class="code" href="XSValue_8hpp.html#a1">00067</a> <font class="keyword">class </font><a class="code" href="XSValue_8hpp.html#a1">RegularExpression</a>;
11100068
112<a name="l00069"></a><a class="code" href="classXSValue.html">00069</a> <font class="keyword">class </font><a class="code" href="XercesDefs_8hpp.html#a9"></a> <a class="code" href="classXSValue.html">XSValue</a> : <font class="keyword">public</font> <a class="code" href="classXMemory.html">XMemory</a>
11300070 {
11400071 <font class="keyword">public</font>:
11500072
116<a name="l00073"></a><a class="code" href="classXSValue.html#s62">00073</a>     <font class="keyword">enum</font> DataType {
11700074               dt_string               = 0,
11800075               dt_boolean              = 1,
11900076               dt_decimal              = 2,
12000077               dt_float                = 3,
12100078               dt_double               = 4,
12200079               dt_duration             = 5,
12300080               dt_dateTime             = 6,
12400081               dt_time                 = 7,
12500082               dt_date                 = 8,
12600083               dt_gYearMonth           = 9,
12700084               dt_gYear                = 10,
12800085               dt_gMonthDay            = 11,
12900086               dt_gDay                 = 12,
13000087               dt_gMonth               = 13,
13100088               dt_hexBinary            = 14,
13200089               dt_base64Binary         = 15,
13300090               dt_anyURI               = 16,
13400091               dt_QName                = 17,
13500092               dt_NOTATION             = 18,
13600093               dt_normalizedString     = 19,
13700094               dt_token                = 20,
13800095               dt_language             = 21,
13900096               dt_NMTOKEN              = 22,
14000097               dt_NMTOKENS             = 23,
14100098               dt_Name                 = 24,
14200099               dt_NCName               = 25,
14300100               dt_ID                   = 26,
14400101               dt_IDREF                = 27,
14500102               dt_IDREFS               = 28,
14600103               dt_ENTITY               = 29,
14700104               dt_ENTITIES             = 30,
14800105               dt_integer              = 31,
14900106               dt_nonPositiveInteger   = 32,
15000107               dt_negativeInteger      = 33,
15100108               dt_long                 = 34,
15200109               dt_int                  = 35,
15300110               dt_short                = 36,
15400111               dt_byte                 = 37,
15500112               dt_nonNegativeInteger   = 38,
15600113               dt_unsignedLong         = 39,
15700114               dt_unsignedInt          = 40,
15800115               dt_unsignedShort        = 41,
15900116               dt_unsignedByte         = 42,
16000117               dt_positiveInteger      = 43,
16100118               dt_MAXCOUNT             = 44
16200119     };
16300120
164<a name="l00121"></a><a class="code" href="classXSValue.html#s63">00121</a>     <font class="keyword">enum</font> XMLVersion {
16500122             ver_10,
16600123             ver_11
16700124     };
16800125
169<a name="l00126"></a><a class="code" href="classXSValue.html#s64">00126</a>     <font class="keyword">enum</font> Status {
17000127             st_Init,
17100128             st_InvalidRange,
17200129             st_NoContent,
17300130             st_NoCanRep,
17400131             st_NoActVal,
17500132             st_NotSupported,
17600133             st_CantCreateRegEx,
17700134             st_FOCA0002,        <font class="comment">//invalid lexical value </font>
17800135             st_FOCA0001,        <font class="comment">//input value too large for decimal </font>
17900136             st_FOCA0003,        <font class="comment">//input value too large for integer </font>
18000137             st_FODT0003,        <font class="comment">//invalid timezone value </font>
18100138             st_UnknownType
18200139     };
18300140
184<a name="l00141"></a><a class="code" href="classXSValue.html#s65">00141</a>     <font class="keyword">enum</font> DataGroup {
18500142             dg_numerics,
18600143             dg_datetimes,
18700144             dg_strings
18800145     };
18900146
19000147     <font class="comment">//  Constructors and Destructor</font>
19100148     <font class="comment">// -----------------------------------------------------------------------</font>
19200151 <font class="comment"></font>    ~<a class="code" href="classXSValue.html">XSValue</a>();
19300153
19400154     <font class="comment">//---------------------------------</font>
19500157 <font class="comment"></font>
19600167     <font class="keyword">static</font>
19700168     <font class="keywordtype">bool</font>     validate
19800169              (
19900170                 <font class="keyword">const</font> XMLCh*          <font class="keyword">const</font> content   
20000171               ,       DataType              datatype
20100172               ,       Status&amp;               status
20200173               ,       XMLVersion            version    = ver_10
20300174               ,       <a class="code" href="classMemoryManager.html">MemoryManager</a>*  <font class="keyword">const</font> manager    = <a class="code" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a>
20400175              );
20500176
20600188     <font class="keyword">static</font>
20700189     XMLCh*   getCanonicalRepresentation
20800190              (
20900191                 <font class="keyword">const</font> XMLCh*          <font class="keyword">const</font> content   
21000192               ,       DataType              datatype
21100193               ,       Status&amp;               status
21200194               ,       XMLVersion            version    = ver_10
21300195               ,       <font class="keywordtype">bool</font>                  toValidate = <font class="keyword">true</font>
21400196               ,       <a class="code" href="classMemoryManager.html">MemoryManager</a>*  <font class="keyword">const</font> manager    = <a class="code" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a>
21500197              );
21600198
21700212     <font class="keyword">static</font>
21800213     <a class="code" href="classXSValue.html">XSValue</a>* getActualValue
21900214              (
22000215                 <font class="keyword">const</font> XMLCh*          <font class="keyword">const</font> content   
22100216               ,       DataType              datatype
22200217               ,       Status&amp;               status
22300218               ,       XMLVersion            version    = ver_10
22400219               ,       <font class="keywordtype">bool</font>                  toValidate = <font class="keyword">true</font>
22500220               ,       <a class="code" href="classMemoryManager.html">MemoryManager</a>*  <font class="keyword">const</font> manager    = <a class="code" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a>
22600221              );
22700222
22800223     <font class="keyword">static</font>
22900224     DataType  getDataType  (<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> dtString);
23000225
23100227
23200228     <font class="comment">//----------------------------------</font>
23300231 <font class="comment"></font>    <font class="keyword">struct </font>{
23400232
235<a name="l00233"></a><a class="code" href="classXSValue.html#m0">00233</a>         DataType f_datatype;
23600234         
23700235         <font class="keyword">union </font>{
238<a name="l00236"></a><a class="code" href="classXSValue.html#m1">00236</a>                          <font class="keywordtype">bool</font>      f_bool;
239<a name="l00237"></a><a class="code" href="classXSValue.html#m2">00237</a>                          <font class="keywordtype">char</font>      f_char;                   
240<a name="l00238"></a><a class="code" href="classXSValue.html#m3">00238</a>                 <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font>      f_uchar;
241<a name="l00239"></a><a class="code" href="classXSValue.html#m4">00239</a>                          <font class="keywordtype">short</font>     f_short;
242<a name="l00240"></a><a class="code" href="classXSValue.html#m5">00240</a>                 <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font>     f_ushort;
243<a name="l00241"></a><a class="code" href="classXSValue.html#m6">00241</a>                          <font class="keywordtype">int</font>       f_int;
244<a name="l00242"></a><a class="code" href="classXSValue.html#m7">00242</a>                 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>       f_uint;
245<a name="l00243"></a><a class="code" href="classXSValue.html#m8">00243</a>                          <font class="keywordtype">long</font>      f_long;
246<a name="l00244"></a><a class="code" href="classXSValue.html#m9">00244</a>                 <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font>      f_ulong;
247<a name="l00245"></a><a class="code" href="classXSValue.html#m10">00245</a>                          <font class="keywordtype">float</font>     f_float;
248<a name="l00246"></a><a class="code" href="classXSValue.html#m11">00246</a>                          <font class="keywordtype">double</font>    f_double;
249<a name="l00247"></a><a class="code" href="classXSValue.html#m12">00247</a>                          XMLCh*    f_strVal;
25000248
25100249                 <font class="keyword">struct </font>decimal {
252<a name="l00250"></a><a class="code" href="classXSValue.html#m13">00250</a>                                 <font class="keywordtype">int</font>              f_sign;
253<a name="l00251"></a><a class="code" href="classXSValue.html#m14">00251</a>                                 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>     f_scale; 
254<a name="l00252"></a><a class="code" href="classXSValue.html#m15">00252</a>                                 <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font>    f_integral;
255<a name="l00253"></a><a class="code" href="classXSValue.html#m16">00253</a>                                 <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font>    f_fraction;
256<a name="l00254"></a><a class="code" href="classXSValue.html#m17">00254</a>                                 <font class="keywordtype">double</font>           f_dvalue;
25700255                 } f_decimal;
25800256
25900257                 <font class="keyword">struct </font>datetime {
260<a name="l00258"></a><a class="code" href="classXSValue.html#m19">00258</a>                                 <font class="keywordtype">int</font>       f_year;
261<a name="l00259"></a><a class="code" href="classXSValue.html#m20">00259</a>                                 <font class="keywordtype">int</font>       f_month;
262<a name="l00260"></a><a class="code" href="classXSValue.html#m21">00260</a>                                 <font class="keywordtype">int</font>       f_day;
263<a name="l00261"></a><a class="code" href="classXSValue.html#m22">00261</a>                                 <font class="keywordtype">int</font>       f_hour;
264<a name="l00262"></a><a class="code" href="classXSValue.html#m23">00262</a>                                 <font class="keywordtype">int</font>       f_min;
265<a name="l00263"></a><a class="code" href="classXSValue.html#m24">00263</a>                                 <font class="keywordtype">int</font>       f_second;
266<a name="l00264"></a><a class="code" href="classXSValue.html#m25">00264</a>                                 <font class="keywordtype">double</font>    f_milisec;
26700265
26800266                 } f_datetime;
26900267
27000268         } fValue;
27100269
27200270     } fData;
27300271
27400272     <font class="keyword">static</font>
27500273     <font class="keywordtype">void</font> reinitMutex();
27600274
27700275     <font class="keyword">static</font>
27800276     <font class="keywordtype">void</font> reinitRegEx();
27900277
28000278     <font class="keyword">static</font>
28100279     <font class="keywordtype">void</font> reinitRegistry();
28200280
28300281 <font class="keyword">private</font>:
28400282
28500283     <font class="keyword">typedef</font> <font class="keyword">union</font>
28600284 <font class="keyword">    </font>{
28700285                 <font class="keywordtype">long</font>  f_long;
28800286        <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font>  f_ulong;
28900287     } t_value;
29000288
29100295     <a class="code" href="XMLDateTime_8hpp.html#a0">XSValue</a>(
29200296              DataType        <font class="keyword">const</font> dt
29300297            , <a class="code" href="classMemoryManager.html">MemoryManager</a>*  <font class="keyword">const</font> manager = <a class="code" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a>
29400298            );
29500299
29600301
29700302     <font class="comment">// -----------------------------------------------------------------------</font>
29800303     <font class="comment">//  Unimplemented constructors and operators</font>
29900304     <font class="comment">// -----------------------------------------------------------------------</font>
30000305     <a class="code" href="XMLDateTime_8hpp.html#a0">XSValue</a>(<font class="keyword">const</font> <a class="code" href="classXSValue.html">XSValue</a>&amp;);
30100306     <a class="code" href="classXSValue.html">XSValue</a> &amp; operator=(<font class="keyword">const</font> <a class="code" href="classXSValue.html">XSValue</a> &amp;);
30200307
30300308     <font class="comment">//---------------------------------</font>
30400312 <font class="comment"></font>
30500313     <font class="keyword">static</font> <font class="keyword">const</font> <a class="code" href="classXSValue.html#s65">XSValue::DataGroup</a> inGroup[];
30600314
30700316
30800317     <font class="keyword">static</font>
30900318     <font class="keywordtype">bool</font>     validateNumerics
31000319              (
31100320                 <font class="keyword">const</font> XMLCh*          <font class="keyword">const</font> content   
31200321               ,       DataType              datatype
31300322               ,       Status&amp;               status
31400323               ,       XMLVersion            version
31500324               ,       <a class="code" href="classMemoryManager.html">MemoryManager</a>*  <font class="keyword">const</font> manager
31600325              );
31700326
31800327     <font class="keyword">static</font>
31900328     <font class="keywordtype">bool</font>     validateDateTimes
32000329              (
32100330                 <font class="keyword">const</font> XMLCh*          <font class="keyword">const</font> content   
32200331               ,       DataType              datatype
32300332               ,       Status&amp;               status
32400333               ,       XMLVersion            version
32500334               ,       <a class="code" href="classMemoryManager.html">MemoryManager</a>*  <font class="keyword">const</font> manager
32600335              );
32700336
32800337     <font class="keyword">static</font>
32900338     <font class="keywordtype">bool</font>     validateStrings
33000339              (
33100340                 <font class="keyword">const</font> XMLCh*          <font class="keyword">const</font> content   
33200341               ,       DataType              datatype
33300342               ,       Status&amp;               status
33400343               ,       XMLVersion            version
33500344               ,       <a class="code" href="classMemoryManager.html">MemoryManager</a>*  <font class="keyword">const</font> manager
33600345              );
33700346
33800347     <font class="keyword">static</font>
33900348     XMLCh*   getCanRepNumerics
34000349              (
34100350                 <font class="keyword">const</font> XMLCh*          <font class="keyword">const</font> content   
34200351               ,       DataType              datatype
34300352               ,       Status&amp;               status
34400353               ,       XMLVersion            version
34500354               ,       <font class="keywordtype">bool</font>                  toValidate
34600355               ,       <a class="code" href="classMemoryManager.html">MemoryManager</a>*  <font class="keyword">const</font> manager
34700356              );
34800357
34900358     <font class="keyword">static</font>
35000359     XMLCh*   getCanRepDateTimes
35100360              (
35200361                 <font class="keyword">const</font> XMLCh*          <font class="keyword">const</font> content   
35300362               ,       DataType              datatype
35400363               ,       Status&amp;               status
35500364               ,       XMLVersion            version
35600365               ,       <font class="keywordtype">bool</font>                  toValidate
35700366               ,       <a class="code" href="classMemoryManager.html">MemoryManager</a>*  <font class="keyword">const</font> manager
35800367              );
35900368
36000369     <font class="keyword">static</font>
36100370     XMLCh*   getCanRepStrings
36200371              (
36300372                 <font class="keyword">const</font> XMLCh*          <font class="keyword">const</font> content   
36400373               ,       DataType              datatype
36500374               ,       Status&amp;               status
36600375               ,       XMLVersion            version
36700376               ,       <font class="keywordtype">bool</font>                  toValidate
36800377               ,       <a class="code" href="classMemoryManager.html">MemoryManager</a>*  <font class="keyword">const</font> manager
36900378              );
37000379
37100380     <font class="keyword">static</font>
37200381     <a class="code" href="classXSValue.html">XSValue</a>*  getActValNumerics
37300382              (
37400383                 <font class="keyword">const</font> XMLCh*          <font class="keyword">const</font> content   
37500384               ,       DataType              datatype
37600385               ,       Status&amp;               status
37700386               ,       XMLVersion            version
37800387               ,       <a class="code" href="classMemoryManager.html">MemoryManager</a>*  <font class="keyword">const</font> manager
37900388              );
38000389
38100390     <font class="keyword">static</font>
38200391     <a class="code" href="classXSValue.html">XSValue</a>*  getActValDateTimes
38300392              (
38400393                 <font class="keyword">const</font> XMLCh*          <font class="keyword">const</font> content   
38500394               ,       DataType              datatype
38600395               ,       Status&amp;               status
38700396               ,       XMLVersion            version
38800397               ,       <a class="code" href="classMemoryManager.html">MemoryManager</a>*  <font class="keyword">const</font> manager
38900398              );
39000399
39100400     <font class="keyword">static</font>
39200401     <a class="code" href="classXSValue.html">XSValue</a>*  getActValStrings
39300402              (
39400403                 <font class="keyword">const</font> XMLCh*          <font class="keyword">const</font> content   
39500404               ,       DataType              datatype
39600405               ,       Status&amp;               status
39700406               ,       XMLVersion            version
39800407               ,       <font class="keywordtype">bool</font>                  toValidate
39900408               ,       <a class="code" href="classMemoryManager.html">MemoryManager</a>*  <font class="keyword">const</font> manager
40000409              );
40100410
40200411     <font class="keyword">static</font>
40300412     <font class="keywordtype">bool</font>      getActualValue
40400413               (
40500414                  <font class="keyword">const</font> XMLCh*         <font class="keyword">const</font> content
40600415                ,       Status&amp;               status
40700416                ,       XMLVersion            version   
40800417                ,       <font class="keywordtype">int</font>                   ct
40900418                ,       t_value&amp;              retVal               
41000419                ,       <font class="keywordtype">int</font>                   base
41100420                ,       <a class="code" href="classMemoryManager.html">MemoryManager</a>* <font class="keyword">const</font>  manager
41200421                );
41300422
41400423     <font class="keyword">static</font> RefHashTableOf&lt;XSValue&gt;*    fDataTypeRegistry;
41500424
41600425     <font class="comment">// -----------------------------------------------------------------------</font>
41700426     <font class="comment">//  data members</font>
41800427     <font class="comment">// -----------------------------------------------------------------------</font>
41900428     <font class="keywordtype">bool</font>                fMemAllocated;
42000429     <a class="code" href="classMemoryManager.html">MemoryManager</a>*      fMemoryManager;
42100430
42200431 };
42300432
42400433 <a class="code" href="XercesDefs_8hpp.html#a3">XERCES_CPP_NAMESPACE_END</a>
42500434
42600435 <font class="preprocessor">#endif</font>
427</pre></div>    </FONT></TD></TR></TABLE><BR>
428</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>
429              Copyright &copy; 1994-2004 The Apache Software Foundation.
430              All Rights Reserved.
431            </I></FONT></TD></TR></TABLE></BODY></HTML>
Note: See TracBrowser for help on using the repository browser.