[358] | 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"> </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> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </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>
|
---|
| 45 | 00002 <font class="comment"> * Copyright 2004,2004 The Apache Software Foundation.</font>
|
---|
| 46 | 00003 <font class="comment"> * </font>
|
---|
| 47 | 00004 <font class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</font>
|
---|
| 48 | 00005 <font class="comment"> * you may not use this file except in compliance with the License.</font>
|
---|
| 49 | 00006 <font class="comment"> * You may obtain a copy of the License at</font>
|
---|
| 50 | 00007 <font class="comment"> * </font>
|
---|
| 51 | 00008 <font class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</font>
|
---|
| 52 | 00009 <font class="comment"> * </font>
|
---|
| 53 | 00010 <font class="comment"> * Unless required by applicable law or agreed to in writing, software</font>
|
---|
| 54 | 00011 <font class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</font>
|
---|
| 55 | 00012 <font class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</font>
|
---|
| 56 | 00013 <font class="comment"> * See the License for the specific language governing permissions and</font>
|
---|
| 57 | 00014 <font class="comment"> * limitations under the License.</font>
|
---|
| 58 | 00015 <font class="comment"> */</font>
|
---|
| 59 | 00016
|
---|
| 60 | 00017 <font class="comment">/*</font>
|
---|
| 61 | 00018 <font class="comment"> * $Log: XSValue.hpp,v $</font>
|
---|
| 62 | 00019 <font class="comment"> * Revision 1.12 2004/09/23 21:22:47 peiyongz</font>
|
---|
| 63 | 00020 <font class="comment"> * Documentation</font>
|
---|
| 64 | 00021 <font class="comment"> * st_noContent added</font>
|
---|
| 65 | 00022 <font class="comment"> * unused parameter removed</font>
|
---|
| 66 | 00023 <font class="comment"> *</font>
|
---|
| 67 | 00024 <font class="comment"> * Revision 1.11 2004/09/13 21:24:20 peiyongz</font>
|
---|
| 68 | 00025 <font class="comment"> * 1. returned data to contain datatype in addition to value</font>
|
---|
| 69 | 00026 <font class="comment"> * 2. registry to map type name (in string) to type name enum</font>
|
---|
| 70 | 00027 <font class="comment"> *</font>
|
---|
| 71 | 00028 <font class="comment"> * Revision 1.10 2004/09/09 20:08:31 peiyongz</font>
|
---|
| 72 | 00029 <font class="comment"> * Using new error code</font>
|
---|
| 73 | 00030 <font class="comment"> *</font>
|
---|
| 74 | 00031 <font class="comment"> * Revision 1.9 2004/09/08 19:56:05 peiyongz</font>
|
---|
| 75 | 00032 <font class="comment"> * Remove parameter toValidate from validation interface</font>
|
---|
| 76 | 00033 <font class="comment"> *</font>
|
---|
| 77 | 00034 <font class="comment"> * Revision 1.8 2004/09/08 13:56:09 peiyongz</font>
|
---|
| 78 | 00035 <font class="comment"> * Apache License Version 2.0</font>
|
---|
| 79 | 00036 <font class="comment"> *</font>
|
---|
| 80 | 00037 <font class="comment"> * Revision 1.7 2004/08/31 20:52:25 peiyongz</font>
|
---|
| 81 | 00038 <font class="comment"> * Return additional double value for decimal</font>
|
---|
| 82 | 00039 <font class="comment"> * remove tz_hh/tz_mm</font>
|
---|
| 83 | 00040 <font class="comment"> *</font>
|
---|
| 84 | 00041 <font class="comment"> * Revision 1.6 2004/08/31 15:14:47 peiyongz</font>
|
---|
| 85 | 00042 <font class="comment"> * remove XSValueContext</font>
|
---|
| 86 | 00043 <font class="comment"> *</font>
|
---|
| 87 | 00044 <font class="comment"> * Revision 1.5 2004/08/17 21:11:41 peiyongz</font>
|
---|
| 88 | 00045 <font class="comment"> * no more Unrepresentable</font>
|
---|
| 89 | 00046 <font class="comment"> *</font>
|
---|
| 90 | 00047 <font class="comment"> * Revision 1.4 2004/08/13 21:29:20 peiyongz</font>
|
---|
| 91 | 00048 <font class="comment"> * fMemAllocated</font>
|
---|
| 92 | 00049 <font class="comment"> *</font>
|
---|
| 93 | 00050 <font class="comment"> * Revision 1.3 2004/08/12 14:24:34 peiyongz</font>
|
---|
| 94 | 00051 <font class="comment"> * HP aCC A.03</font>
|
---|
| 95 | 00052 <font class="comment"> *</font>
|
---|
| 96 | 00053 <font class="comment"> * Revision 1.2 2004/08/11 17:06:44 peiyongz</font>
|
---|
| 97 | 00054 <font class="comment"> * Do not panic if can't create RegEx</font>
|
---|
| 98 | 00055 <font class="comment"> *</font>
|
---|
| 99 | 00056 <font class="comment"> * $Id: XSValue.hpp,v 1.12 2004/09/23 21:22:47 peiyongz Exp $</font>
|
---|
| 100 | 00057 <font class="comment"> */</font>
|
---|
| 101 | 00058
|
---|
| 102 | 00059 <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>
|
---|
| 104 | 00061 <font class="preprocessor"></font>
|
---|
| 105 | 00062 <font class="preprocessor">#include <<a class="code" href="PlatformUtils_8hpp.html">xercesc/util/PlatformUtils.hpp</a>></font>
|
---|
| 106 | 00063 <font class="preprocessor">#include <xercesc/util/RefHashTableOf.hpp></font>
|
---|
| 107 | 00064
|
---|
| 108 | 00065 <a class="code" href="XercesDefs_8hpp.html#a2">XERCES_CPP_NAMESPACE_BEGIN</a>
|
---|
| 109 | 00066
|
---|
| 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>;
|
---|
| 111 | 00068
|
---|
| 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>
|
---|
| 113 | 00070 {
|
---|
| 114 | 00071 <font class="keyword">public</font>:
|
---|
| 115 | 00072
|
---|
| 116 | <a name="l00073"></a><a class="code" href="classXSValue.html#s62">00073</a> <font class="keyword">enum</font> DataType {
|
---|
| 117 | 00074 dt_string = 0,
|
---|
| 118 | 00075 dt_boolean = 1,
|
---|
| 119 | 00076 dt_decimal = 2,
|
---|
| 120 | 00077 dt_float = 3,
|
---|
| 121 | 00078 dt_double = 4,
|
---|
| 122 | 00079 dt_duration = 5,
|
---|
| 123 | 00080 dt_dateTime = 6,
|
---|
| 124 | 00081 dt_time = 7,
|
---|
| 125 | 00082 dt_date = 8,
|
---|
| 126 | 00083 dt_gYearMonth = 9,
|
---|
| 127 | 00084 dt_gYear = 10,
|
---|
| 128 | 00085 dt_gMonthDay = 11,
|
---|
| 129 | 00086 dt_gDay = 12,
|
---|
| 130 | 00087 dt_gMonth = 13,
|
---|
| 131 | 00088 dt_hexBinary = 14,
|
---|
| 132 | 00089 dt_base64Binary = 15,
|
---|
| 133 | 00090 dt_anyURI = 16,
|
---|
| 134 | 00091 dt_QName = 17,
|
---|
| 135 | 00092 dt_NOTATION = 18,
|
---|
| 136 | 00093 dt_normalizedString = 19,
|
---|
| 137 | 00094 dt_token = 20,
|
---|
| 138 | 00095 dt_language = 21,
|
---|
| 139 | 00096 dt_NMTOKEN = 22,
|
---|
| 140 | 00097 dt_NMTOKENS = 23,
|
---|
| 141 | 00098 dt_Name = 24,
|
---|
| 142 | 00099 dt_NCName = 25,
|
---|
| 143 | 00100 dt_ID = 26,
|
---|
| 144 | 00101 dt_IDREF = 27,
|
---|
| 145 | 00102 dt_IDREFS = 28,
|
---|
| 146 | 00103 dt_ENTITY = 29,
|
---|
| 147 | 00104 dt_ENTITIES = 30,
|
---|
| 148 | 00105 dt_integer = 31,
|
---|
| 149 | 00106 dt_nonPositiveInteger = 32,
|
---|
| 150 | 00107 dt_negativeInteger = 33,
|
---|
| 151 | 00108 dt_long = 34,
|
---|
| 152 | 00109 dt_int = 35,
|
---|
| 153 | 00110 dt_short = 36,
|
---|
| 154 | 00111 dt_byte = 37,
|
---|
| 155 | 00112 dt_nonNegativeInteger = 38,
|
---|
| 156 | 00113 dt_unsignedLong = 39,
|
---|
| 157 | 00114 dt_unsignedInt = 40,
|
---|
| 158 | 00115 dt_unsignedShort = 41,
|
---|
| 159 | 00116 dt_unsignedByte = 42,
|
---|
| 160 | 00117 dt_positiveInteger = 43,
|
---|
| 161 | 00118 dt_MAXCOUNT = 44
|
---|
| 162 | 00119 };
|
---|
| 163 | 00120
|
---|
| 164 | <a name="l00121"></a><a class="code" href="classXSValue.html#s63">00121</a> <font class="keyword">enum</font> XMLVersion {
|
---|
| 165 | 00122 ver_10,
|
---|
| 166 | 00123 ver_11
|
---|
| 167 | 00124 };
|
---|
| 168 | 00125
|
---|
| 169 | <a name="l00126"></a><a class="code" href="classXSValue.html#s64">00126</a> <font class="keyword">enum</font> Status {
|
---|
| 170 | 00127 st_Init,
|
---|
| 171 | 00128 st_InvalidRange,
|
---|
| 172 | 00129 st_NoContent,
|
---|
| 173 | 00130 st_NoCanRep,
|
---|
| 174 | 00131 st_NoActVal,
|
---|
| 175 | 00132 st_NotSupported,
|
---|
| 176 | 00133 st_CantCreateRegEx,
|
---|
| 177 | 00134 st_FOCA0002, <font class="comment">//invalid lexical value </font>
|
---|
| 178 | 00135 st_FOCA0001, <font class="comment">//input value too large for decimal </font>
|
---|
| 179 | 00136 st_FOCA0003, <font class="comment">//input value too large for integer </font>
|
---|
| 180 | 00137 st_FODT0003, <font class="comment">//invalid timezone value </font>
|
---|
| 181 | 00138 st_UnknownType
|
---|
| 182 | 00139 };
|
---|
| 183 | 00140
|
---|
| 184 | <a name="l00141"></a><a class="code" href="classXSValue.html#s65">00141</a> <font class="keyword">enum</font> DataGroup {
|
---|
| 185 | 00142 dg_numerics,
|
---|
| 186 | 00143 dg_datetimes,
|
---|
| 187 | 00144 dg_strings
|
---|
| 188 | 00145 };
|
---|
| 189 | 00146
|
---|
| 190 | 00147 <font class="comment">// Constructors and Destructor</font>
|
---|
| 191 | 00148 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
| 192 | 00151 <font class="comment"></font> ~<a class="code" href="classXSValue.html">XSValue</a>();
|
---|
| 193 | 00153
|
---|
| 194 | 00154 <font class="comment">//---------------------------------</font>
|
---|
| 195 | 00157 <font class="comment"></font>
|
---|
| 196 | 00167 <font class="keyword">static</font>
|
---|
| 197 | 00168 <font class="keywordtype">bool</font> validate
|
---|
| 198 | 00169 (
|
---|
| 199 | 00170 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> content
|
---|
| 200 | 00171 , DataType datatype
|
---|
| 201 | 00172 , Status& status
|
---|
| 202 | 00173 , XMLVersion version = ver_10
|
---|
| 203 | 00174 , <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>
|
---|
| 204 | 00175 );
|
---|
| 205 | 00176
|
---|
| 206 | 00188 <font class="keyword">static</font>
|
---|
| 207 | 00189 XMLCh* getCanonicalRepresentation
|
---|
| 208 | 00190 (
|
---|
| 209 | 00191 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> content
|
---|
| 210 | 00192 , DataType datatype
|
---|
| 211 | 00193 , Status& status
|
---|
| 212 | 00194 , XMLVersion version = ver_10
|
---|
| 213 | 00195 , <font class="keywordtype">bool</font> toValidate = <font class="keyword">true</font>
|
---|
| 214 | 00196 , <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>
|
---|
| 215 | 00197 );
|
---|
| 216 | 00198
|
---|
| 217 | 00212 <font class="keyword">static</font>
|
---|
| 218 | 00213 <a class="code" href="classXSValue.html">XSValue</a>* getActualValue
|
---|
| 219 | 00214 (
|
---|
| 220 | 00215 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> content
|
---|
| 221 | 00216 , DataType datatype
|
---|
| 222 | 00217 , Status& status
|
---|
| 223 | 00218 , XMLVersion version = ver_10
|
---|
| 224 | 00219 , <font class="keywordtype">bool</font> toValidate = <font class="keyword">true</font>
|
---|
| 225 | 00220 , <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>
|
---|
| 226 | 00221 );
|
---|
| 227 | 00222
|
---|
| 228 | 00223 <font class="keyword">static</font>
|
---|
| 229 | 00224 DataType getDataType (<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> dtString);
|
---|
| 230 | 00225
|
---|
| 231 | 00227
|
---|
| 232 | 00228 <font class="comment">//----------------------------------</font>
|
---|
| 233 | 00231 <font class="comment"></font> <font class="keyword">struct </font>{
|
---|
| 234 | 00232
|
---|
| 235 | <a name="l00233"></a><a class="code" href="classXSValue.html#m0">00233</a> DataType f_datatype;
|
---|
| 236 | 00234
|
---|
| 237 | 00235 <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;
|
---|
| 250 | 00248
|
---|
| 251 | 00249 <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;
|
---|
| 257 | 00255 } f_decimal;
|
---|
| 258 | 00256
|
---|
| 259 | 00257 <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;
|
---|
| 267 | 00265
|
---|
| 268 | 00266 } f_datetime;
|
---|
| 269 | 00267
|
---|
| 270 | 00268 } fValue;
|
---|
| 271 | 00269
|
---|
| 272 | 00270 } fData;
|
---|
| 273 | 00271
|
---|
| 274 | 00272 <font class="keyword">static</font>
|
---|
| 275 | 00273 <font class="keywordtype">void</font> reinitMutex();
|
---|
| 276 | 00274
|
---|
| 277 | 00275 <font class="keyword">static</font>
|
---|
| 278 | 00276 <font class="keywordtype">void</font> reinitRegEx();
|
---|
| 279 | 00277
|
---|
| 280 | 00278 <font class="keyword">static</font>
|
---|
| 281 | 00279 <font class="keywordtype">void</font> reinitRegistry();
|
---|
| 282 | 00280
|
---|
| 283 | 00281 <font class="keyword">private</font>:
|
---|
| 284 | 00282
|
---|
| 285 | 00283 <font class="keyword">typedef</font> <font class="keyword">union</font>
|
---|
| 286 | 00284 <font class="keyword"> </font>{
|
---|
| 287 | 00285 <font class="keywordtype">long</font> f_long;
|
---|
| 288 | 00286 <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> f_ulong;
|
---|
| 289 | 00287 } t_value;
|
---|
| 290 | 00288
|
---|
| 291 | 00295 <a class="code" href="XMLDateTime_8hpp.html#a0">XSValue</a>(
|
---|
| 292 | 00296 DataType <font class="keyword">const</font> dt
|
---|
| 293 | 00297 , <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>
|
---|
| 294 | 00298 );
|
---|
| 295 | 00299
|
---|
| 296 | 00301
|
---|
| 297 | 00302 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
| 298 | 00303 <font class="comment">// Unimplemented constructors and operators</font>
|
---|
| 299 | 00304 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
| 300 | 00305 <a class="code" href="XMLDateTime_8hpp.html#a0">XSValue</a>(<font class="keyword">const</font> <a class="code" href="classXSValue.html">XSValue</a>&);
|
---|
| 301 | 00306 <a class="code" href="classXSValue.html">XSValue</a> & operator=(<font class="keyword">const</font> <a class="code" href="classXSValue.html">XSValue</a> &);
|
---|
| 302 | 00307
|
---|
| 303 | 00308 <font class="comment">//---------------------------------</font>
|
---|
| 304 | 00312 <font class="comment"></font>
|
---|
| 305 | 00313 <font class="keyword">static</font> <font class="keyword">const</font> <a class="code" href="classXSValue.html#s65">XSValue::DataGroup</a> inGroup[];
|
---|
| 306 | 00314
|
---|
| 307 | 00316
|
---|
| 308 | 00317 <font class="keyword">static</font>
|
---|
| 309 | 00318 <font class="keywordtype">bool</font> validateNumerics
|
---|
| 310 | 00319 (
|
---|
| 311 | 00320 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> content
|
---|
| 312 | 00321 , DataType datatype
|
---|
| 313 | 00322 , Status& status
|
---|
| 314 | 00323 , XMLVersion version
|
---|
| 315 | 00324 , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <font class="keyword">const</font> manager
|
---|
| 316 | 00325 );
|
---|
| 317 | 00326
|
---|
| 318 | 00327 <font class="keyword">static</font>
|
---|
| 319 | 00328 <font class="keywordtype">bool</font> validateDateTimes
|
---|
| 320 | 00329 (
|
---|
| 321 | 00330 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> content
|
---|
| 322 | 00331 , DataType datatype
|
---|
| 323 | 00332 , Status& status
|
---|
| 324 | 00333 , XMLVersion version
|
---|
| 325 | 00334 , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <font class="keyword">const</font> manager
|
---|
| 326 | 00335 );
|
---|
| 327 | 00336
|
---|
| 328 | 00337 <font class="keyword">static</font>
|
---|
| 329 | 00338 <font class="keywordtype">bool</font> validateStrings
|
---|
| 330 | 00339 (
|
---|
| 331 | 00340 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> content
|
---|
| 332 | 00341 , DataType datatype
|
---|
| 333 | 00342 , Status& status
|
---|
| 334 | 00343 , XMLVersion version
|
---|
| 335 | 00344 , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <font class="keyword">const</font> manager
|
---|
| 336 | 00345 );
|
---|
| 337 | 00346
|
---|
| 338 | 00347 <font class="keyword">static</font>
|
---|
| 339 | 00348 XMLCh* getCanRepNumerics
|
---|
| 340 | 00349 (
|
---|
| 341 | 00350 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> content
|
---|
| 342 | 00351 , DataType datatype
|
---|
| 343 | 00352 , Status& status
|
---|
| 344 | 00353 , XMLVersion version
|
---|
| 345 | 00354 , <font class="keywordtype">bool</font> toValidate
|
---|
| 346 | 00355 , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <font class="keyword">const</font> manager
|
---|
| 347 | 00356 );
|
---|
| 348 | 00357
|
---|
| 349 | 00358 <font class="keyword">static</font>
|
---|
| 350 | 00359 XMLCh* getCanRepDateTimes
|
---|
| 351 | 00360 (
|
---|
| 352 | 00361 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> content
|
---|
| 353 | 00362 , DataType datatype
|
---|
| 354 | 00363 , Status& status
|
---|
| 355 | 00364 , XMLVersion version
|
---|
| 356 | 00365 , <font class="keywordtype">bool</font> toValidate
|
---|
| 357 | 00366 , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <font class="keyword">const</font> manager
|
---|
| 358 | 00367 );
|
---|
| 359 | 00368
|
---|
| 360 | 00369 <font class="keyword">static</font>
|
---|
| 361 | 00370 XMLCh* getCanRepStrings
|
---|
| 362 | 00371 (
|
---|
| 363 | 00372 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> content
|
---|
| 364 | 00373 , DataType datatype
|
---|
| 365 | 00374 , Status& status
|
---|
| 366 | 00375 , XMLVersion version
|
---|
| 367 | 00376 , <font class="keywordtype">bool</font> toValidate
|
---|
| 368 | 00377 , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <font class="keyword">const</font> manager
|
---|
| 369 | 00378 );
|
---|
| 370 | 00379
|
---|
| 371 | 00380 <font class="keyword">static</font>
|
---|
| 372 | 00381 <a class="code" href="classXSValue.html">XSValue</a>* getActValNumerics
|
---|
| 373 | 00382 (
|
---|
| 374 | 00383 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> content
|
---|
| 375 | 00384 , DataType datatype
|
---|
| 376 | 00385 , Status& status
|
---|
| 377 | 00386 , XMLVersion version
|
---|
| 378 | 00387 , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <font class="keyword">const</font> manager
|
---|
| 379 | 00388 );
|
---|
| 380 | 00389
|
---|
| 381 | 00390 <font class="keyword">static</font>
|
---|
| 382 | 00391 <a class="code" href="classXSValue.html">XSValue</a>* getActValDateTimes
|
---|
| 383 | 00392 (
|
---|
| 384 | 00393 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> content
|
---|
| 385 | 00394 , DataType datatype
|
---|
| 386 | 00395 , Status& status
|
---|
| 387 | 00396 , XMLVersion version
|
---|
| 388 | 00397 , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <font class="keyword">const</font> manager
|
---|
| 389 | 00398 );
|
---|
| 390 | 00399
|
---|
| 391 | 00400 <font class="keyword">static</font>
|
---|
| 392 | 00401 <a class="code" href="classXSValue.html">XSValue</a>* getActValStrings
|
---|
| 393 | 00402 (
|
---|
| 394 | 00403 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> content
|
---|
| 395 | 00404 , DataType datatype
|
---|
| 396 | 00405 , Status& status
|
---|
| 397 | 00406 , XMLVersion version
|
---|
| 398 | 00407 , <font class="keywordtype">bool</font> toValidate
|
---|
| 399 | 00408 , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <font class="keyword">const</font> manager
|
---|
| 400 | 00409 );
|
---|
| 401 | 00410
|
---|
| 402 | 00411 <font class="keyword">static</font>
|
---|
| 403 | 00412 <font class="keywordtype">bool</font> getActualValue
|
---|
| 404 | 00413 (
|
---|
| 405 | 00414 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> content
|
---|
| 406 | 00415 , Status& status
|
---|
| 407 | 00416 , XMLVersion version
|
---|
| 408 | 00417 , <font class="keywordtype">int</font> ct
|
---|
| 409 | 00418 , t_value& retVal
|
---|
| 410 | 00419 , <font class="keywordtype">int</font> base
|
---|
| 411 | 00420 , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <font class="keyword">const</font> manager
|
---|
| 412 | 00421 );
|
---|
| 413 | 00422
|
---|
| 414 | 00423 <font class="keyword">static</font> RefHashTableOf<XSValue>* fDataTypeRegistry;
|
---|
| 415 | 00424
|
---|
| 416 | 00425 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
| 417 | 00426 <font class="comment">// data members</font>
|
---|
| 418 | 00427 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
| 419 | 00428 <font class="keywordtype">bool</font> fMemAllocated;
|
---|
| 420 | 00429 <a class="code" href="classMemoryManager.html">MemoryManager</a>* fMemoryManager;
|
---|
| 421 | 00430
|
---|
| 422 | 00431 };
|
---|
| 423 | 00432
|
---|
| 424 | 00433 <a class="code" href="XercesDefs_8hpp.html#a3">XERCES_CPP_NAMESPACE_END</a>
|
---|
| 425 | 00434
|
---|
| 426 | 00435 <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 © 1994-2004 The Apache Software Foundation.
|
---|
| 430 | All Rights Reserved.
|
---|
| 431 | </I></FONT></TD></TR></TABLE></BODY></HTML>
|
---|