<!-- This comment will put IE 6, 7 and 8 in quirks mode --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>wsdlpull: /builddir/build/BUILD/wsdlpull-1.23/src/schemaparser/SchemaParser.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javaScript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body onload='searchBox.OnSelectItem(0);'> <!-- Generated by Doxygen 1.6.2-20100208 --> <script type="text/javascript"><!-- var searchBox = new SearchBox("searchBox", "search",false,'Search'); --></script> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <img id="MSearchSelect" src="search/search.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </div> </li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="dir_02f058d422e7266632662d1436e7c90d.html">src</a> » <a class="el" href="dir_aa09c601595277e3f572f9f53a7da262.html">schemaparser</a> </div> </div> <div class="contents"> <h1>SchemaParser.h</h1><a href="SchemaParser_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* </span> <a name="l00002"></a>00002 <span class="comment"> * wsdlpull - A C++ parser for WSDL (Web services description language)</span> <a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 2005-2007 Vivek Krishna</span> <a name="l00004"></a>00004 <span class="comment"> *</span> <a name="l00005"></a>00005 <span class="comment"> * This library is free software; you can redistribute it and/or</span> <a name="l00006"></a>00006 <span class="comment"> * modify it under the terms of the GNU Library General Public</span> <a name="l00007"></a>00007 <span class="comment"> * License as published by the Free Software Foundation; either</span> <a name="l00008"></a>00008 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span> <a name="l00009"></a>00009 <span class="comment"> *</span> <a name="l00010"></a>00010 <span class="comment"> * This library is distributed in the hope that it will be useful,</span> <a name="l00011"></a>00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00012"></a>00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> <a name="l00013"></a>00013 <span class="comment"> * Library General Public License for more details.</span> <a name="l00014"></a>00014 <span class="comment"> *</span> <a name="l00015"></a>00015 <span class="comment"> * You should have received a copy of the GNU Library General Public</span> <a name="l00016"></a>00016 <span class="comment"> * License along with this library; if not, write to the Free</span> <a name="l00017"></a>00017 <span class="comment"> * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span> <a name="l00018"></a>00018 <span class="comment"> *</span> <a name="l00019"></a>00019 <span class="comment"> *</span> <a name="l00020"></a>00020 <span class="comment"> */</span> <a name="l00021"></a>00021 <span class="preprocessor">#ifndef _SCHEMAPARSERH</span> <a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define _SCHEMAPARSERH</span> <a name="l00023"></a>00023 <span class="preprocessor"></span> <a name="l00024"></a>00024 <a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="wsdlpull__export_8h.html">xmlpull/wsdlpull_export.h</a>"</span> <a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="XmlPullParser_8h.html">xmlpull/XmlPullParser.h</a>"</span> <a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="XmlPullParserException_8h.html">xmlpull/XmlPullParserException.h</a>"</span> <a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="Schema_8h.html">schemaparser/Schema.h</a>"</span> <a name="l00029"></a>00029 <span class="preprocessor">#include "<a class="code" href="SchemaParserException_8h.html">schemaparser/SchemaParserException.h</a>"</span> <a name="l00030"></a>00030 <span class="preprocessor">#include "<a class="code" href="Group_8h.html">schemaparser/Group.h</a>"</span> <a name="l00031"></a>00031 <span class="preprocessor">#include "<a class="code" href="Element_8h.html">schemaparser/Element.h</a>"</span> <a name="l00032"></a>00032 <span class="preprocessor">#include "<a class="code" href="Constraint_8h.html">schemaparser/Constraint.h</a>"</span> <a name="l00033"></a>00033 <span class="preprocessor">#include "<a class="code" href="AttributeGroup_8h.html">schemaparser/AttributeGroup.h</a>"</span> <a name="l00034"></a>00034 <span class="preprocessor">#include "<a class="code" href="ComplexType_8h.html">schemaparser/ComplexType.h</a>"</span> <a name="l00035"></a>00035 <span class="preprocessor">#include "<a class="code" href="SimpleType_8h.html">schemaparser/SimpleType.h</a>"</span> <a name="l00036"></a>00036 <span class="preprocessor">#include "<a class="code" href="TypesTable_8h.html">schemaparser/TypesTable.h</a>"</span> <a name="l00037"></a>00037 <a name="l00038"></a>00038 <a name="l00039"></a>00039 <span class="keyword">namespace </span>Schema { <a name="l00040"></a>00040 <a name="l00041"></a>00041 <span class="comment">//class Schema Parser</span> <a name="l00042"></a><a class="code" href="classSchema_1_1SchemaParser.html">00042</a> <span class="keyword">class </span><a class="code" href="wsdlpull__export_8h.html#ad360158cff99879c80a7072c29529f50">WSDLPULL_EXPORT</a> <a class="code" href="classSchema_1_1SchemaParser.html">SchemaParser</a> <a name="l00043"></a>00043 { <a name="l00044"></a>00044 <span class="keyword">public</span>: <a name="l00045"></a>00045 <a name="l00050"></a><a class="code" href="classSchema_1_1SchemaParser.html#aa0507b6296ea5ee7b6db52fc2f18fdfb">00050</a> <span class="keyword">typedef</span> std::list<Element> <a class="code" href="classSchema_1_1SchemaParser.html#aa0507b6296ea5ee7b6db52fc2f18fdfb">ElementList</a>; <a name="l00051"></a><a class="code" href="classSchema_1_1SchemaParser.html#ab9d30d5bb84c5ecfd85d74a1004f40af">00051</a> <span class="keyword">typedef</span> std::list<Attribute> <a class="code" href="classSchema_1_1SchemaParser.html#ab9d30d5bb84c5ecfd85d74a1004f40af">AttributeList</a>; <a name="l00052"></a><a class="code" href="classSchema_1_1SchemaParser.html#a978682184fe54dc2259e4f2077d6277f">00052</a> <span class="keyword">typedef</span> std::list<Group> <a class="code" href="classSchema_1_1SchemaParser.html#a978682184fe54dc2259e4f2077d6277f">GroupList</a>; <a name="l00053"></a><a class="code" href="classSchema_1_1SchemaParser.html#ac60d413c1563aa04ad89c47b9ff1ce4a">00053</a> <span class="keyword">typedef</span> std::list<AttributeGroup*> <a class="code" href="classSchema_1_1SchemaParser.html#ac60d413c1563aa04ad89c47b9ff1ce4a">AttributeGroupList</a>; <a name="l00054"></a><a class="code" href="classSchema_1_1SchemaParser.html#af3d52b77a5c66faf810852b3f18b373b">00054</a> <span class="keyword">typedef</span> std::list<Constraint*> <a class="code" href="classSchema_1_1SchemaParser.html#af3d52b77a5c66faf810852b3f18b373b">ConstraintList</a>; <a name="l00055"></a><a class="code" href="classSchema_1_1SchemaParser.html#af92a6d8f83dac20b51d119c616a0ca46">00055</a> <span class="keyword">typedef</span> std::list<Qname> <a class="code" href="classSchema_1_1SchemaParser.html#af92a6d8f83dac20b51d119c616a0ca46">QNameList</a>; <a name="l00056"></a><a class="code" href="classSchema_1_1SchemaParser.html#aa9cfc4267725f56a45a283e1fa5968dc">00056</a> <span class="keyword">typedef</span> std::list < const XSDType *> <a class="code" href="classSchema_1_1SchemaParser.html#aa9cfc4267725f56a45a283e1fa5968dc">ConstTypeList</a>; <a name="l00057"></a>00057 <a name="l00058"></a><a class="code" href="structSchema_1_1SchemaParser_1_1ImportedSchema.html">00058</a> <span class="keyword">typedef</span> <span class="keyword">struct</span> <a name="l00059"></a>00059 { <a name="l00060"></a><a class="code" href="structSchema_1_1SchemaParser_1_1ImportedSchema.html#a2512ce0c8e71c410bd4f70e548a00b1c">00060</a> <a class="code" href="classSchema_1_1SchemaParser.html">SchemaParser</a>* sParser; <a name="l00061"></a><a class="code" href="structSchema_1_1SchemaParser_1_1ImportedSchema.html#a4f84a9b9ab0dfc04c75659660096f65e">00061</a> std::string ns; <a name="l00062"></a>00062 } <a class="code" href="structSchema_1_1SchemaParser_1_1ImportedSchema.html">ImportedSchema</a> ; <a name="l00063"></a>00063 <a name="l00065"></a>00065 <a name="l00068"></a>00068 <a name="l00078"></a>00078 <a class="code" href="classSchema_1_1SchemaParser.html">SchemaParser</a>(<span class="keyword">const</span> std::string& Uri, std::string tns = <span class="stringliteral">""</span>, <a name="l00079"></a>00079 std::ostream & log = std::cout,<span class="keyword">const</span> std::string & confPath=<span class="stringliteral">""</span>); <a name="l00080"></a>00080 <a name="l00090"></a>00090 <a class="code" href="classSchema_1_1SchemaParser.html">SchemaParser</a>(<a class="code" href="classXmlPullParser.html">XmlPullParser</a> * parser, std::string tns = <span class="stringliteral">""</span>, <a name="l00091"></a>00091 std::ostream & log = std::cout,<span class="keyword">const</span> std::string & confPath=<span class="stringliteral">""</span>); <a name="l00092"></a>00092 <a name="l00093"></a>00093 ~<a class="code" href="classSchema_1_1SchemaParser.html">SchemaParser</a>(); <a name="l00094"></a>00094 <a name="l00096"></a>00096 <a name="l00103"></a>00103 <span class="keywordtype">bool</span> parseSchemaTag(); <a name="l00104"></a>00104 <a name="l00106"></a>00106 <a name="l00109"></a>00109 <a name="l00116"></a>00116 <span class="keyword">const</span> <a class="code" href="classSchema_1_1XSDType.html">XSDType</a> *getType(<span class="keyword">const</span> <a class="code" href="classQname.html">Qname</a> & type, <span class="keywordtype">bool</span> checkImports = <span class="keyword">true</span>) ; <a name="l00117"></a>00117 <a name="l00122"></a>00122 <span class="keyword">const</span> <a class="code" href="classSchema_1_1XSDType.html">XSDType</a> *getType(<span class="keywordtype">int</span> <span class="keywordtype">id</span>) <span class="keyword">const</span>; <a name="l00123"></a>00123 <a name="l00129"></a>00129 <span class="keyword">const</span> <a class="code" href="classSchema_1_1XSDType.html">XSDType</a> *getType(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, std::string &nameSpace); <a name="l00130"></a>00130 <a name="l00136"></a>00136 <a class="code" href="classSchema_1_1SchemaParser.html#aa9cfc4267725f56a45a283e1fa5968dc">ConstTypeList</a> *getAllTypes() <span class="keyword">const</span>; <a name="l00137"></a>00137 <a name="l00143"></a>00143 <span class="keyword">const</span> <a class="code" href="classSchema_1_1Element.html">Element</a> *getElement(<span class="keyword">const</span> <a class="code" href="classQname.html">Qname</a> & element,<span class="keywordtype">bool</span> checkImports=<span class="keyword">true</span>) <span class="keyword">const</span>; <a name="l00144"></a>00144 <a name="l00151"></a>00151 <span class="keyword">const</span> <a class="code" href="classSchema_1_1SchemaParser.html#aa0507b6296ea5ee7b6db52fc2f18fdfb">ElementList</a>& getElements() <span class="keyword">const</span>; <a name="l00152"></a>00152 <a name="l00156"></a>00156 <span class="keywordtype">int</span> getNumElements() <span class="keyword">const</span>; <a name="l00157"></a>00157 <a name="l00163"></a>00163 <a class="code" href="classSchema_1_1Attribute.html">Attribute</a> *getAttribute(<span class="keyword">const</span> <a class="code" href="classQname.html">Qname</a> & attribute) ; <a name="l00164"></a>00164 <a name="l00171"></a>00171 <span class="keyword">const</span> <a class="code" href="classSchema_1_1SchemaParser.html#ab9d30d5bb84c5ecfd85d74a1004f40af">AttributeList</a>& getAttributes()<span class="keyword">const</span>; <a name="l00172"></a>00172 <a name="l00176"></a>00176 <span class="keywordtype">int</span> getNumAttributes() <span class="keyword">const</span>; <a name="l00177"></a>00177 <a name="l00178"></a>00178 <a name="l00182"></a>00182 std::string getNamespace(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l00183"></a>00183 <a name="l00187"></a>00187 <span class="keywordtype">int</span> getNumTypes() <span class="keyword">const</span>; <a name="l00188"></a>00188 <a name="l00189"></a>00189 <a name="l00196"></a>00196 <span class="keywordtype">int</span> getTypeId(<span class="keyword">const</span> <a class="code" href="classQname.html">Qname</a> &, <span class="keywordtype">bool</span> create = <span class="keyword">false</span>); <a name="l00197"></a>00197 <a name="l00203"></a>00203 <span class="keywordtype">bool</span> isBasicType(<span class="keywordtype">int</span> sType) <span class="keyword">const</span>; <a name="l00204"></a>00204 <a name="l00227"></a>00227 <span class="keywordtype">int</span> getBasicContentType(<span class="keywordtype">int</span> typeId)<span class="keyword">const</span>; <a name="l00228"></a>00228 <a name="l00234"></a>00234 <a class="code" href="classSchema_1_1Group.html">Group</a>* getGroup(<span class="keyword">const</span> <a class="code" href="classQname.html">Qname</a>& name); <a name="l00235"></a>00235 <a name="l00241"></a>00241 <a class="code" href="classSchema_1_1AttributeGroup.html">AttributeGroup</a>* getAttributeGroup(<span class="keyword">const</span> <a class="code" href="classQname.html">Qname</a>& name); <a name="l00242"></a>00242 <a name="l00244"></a>00244 <a name="l00251"></a>00251 <span class="keywordtype">bool</span> isImported(<span class="keyword">const</span> std::string & ns)<span class="keyword">const</span>; <a name="l00252"></a>00252 <span class="keyword">const</span> <a class="code" href="classSchema_1_1SchemaParser.html">SchemaParser</a>* getImportedSchemaParser(<span class="keyword">const</span> std::string & ns)<span class="keyword">const</span>; <a name="l00260"></a>00260 <span class="keywordtype">bool</span> addImport(std::string ns, std::string location=<span class="stringliteral">""</span>); <a name="l00266"></a>00266 <span class="keywordtype">bool</span> addImport(<a class="code" href="classSchema_1_1SchemaParser.html">SchemaParser</a>* sp); <a name="l00267"></a>00267 <span class="comment">/*</span> <a name="l00268"></a>00268 <span class="comment"> * addImports .To add an array of schema parsers for imported schemas</span> <a name="l00269"></a>00269 <span class="comment"> * @param array of schema parsers</span> <a name="l00270"></a>00270 <span class="comment"> * @param number of schema parsers added</span> <a name="l00271"></a>00271 <span class="comment"> */</span> <a name="l00272"></a>00272 <span class="keywordtype">bool</span> addImports(<span class="keyword">const</span> std::vector<SchemaParser *>& schemaParsers); <span class="comment">//to be removed soon</span> <a name="l00273"></a>00273 <a name="l00275"></a>00275 <a name="l00276"></a>00276 <a name="l00284"></a>00284 <span class="keywordtype">bool</span> finalize(<span class="keywordtype">void</span>); <a name="l00285"></a>00285 <a name="l00292"></a>00292 <span class="keywordtype">void</span> setWarningLevel(<span class="keywordtype">int</span> l); <a name="l00293"></a>00293 <span class="comment">/*</span> <a name="l00294"></a>00294 <span class="comment"> * path to the directory where the config file for handling </span> <a name="l00295"></a>00295 <span class="comment"> * imports is located</span> <a name="l00296"></a>00296 <span class="comment"> */</span> <a name="l00297"></a>00297 <span class="keywordtype">void</span> setSchemaPath(<span class="keyword">const</span> std::string& s); <a name="l00298"></a>00298 <a name="l00299"></a>00299 <span class="comment">/* Set the path to the uri from where references to imported schemas</span> <a name="l00300"></a>00300 <span class="comment"> * may be resolved. One level up the actual location.</span> <a name="l00301"></a>00301 <span class="comment"> * Example if you set uri as "tempuri.org" ,a reference to imported schema location "x.xsd"</span> <a name="l00302"></a>00302 <span class="comment"> * will be mapped to "tempuri.org/x.xsd"</span> <a name="l00303"></a>00303 <span class="comment"> */</span> <a name="l00304"></a>00304 <span class="keywordtype">void</span> setUri(<span class="keyword">const</span> std::string& u ); <a name="l00309"></a>00309 std::string getTypeName(<a class="code" href="namespaceSchema.html#acbe1398d097409fb3c2f948fa876711d">Schema::Type</a> t)<span class="keyword">const</span>; <a name="l00310"></a>00310 <a class="code" href="classSchema_1_1TypesTable.html">TypesTable</a> *getTypesTable(); <a name="l00311"></a>00311 <span class="keyword">const</span> <a class="code" href="classSchema_1_1SchemaParser.html">SchemaParser</a> *getImportedSchema(std::string &nameSpace); <a name="l00312"></a>00312 std::vector<ImportedSchema> &getImportedSchemas(); <a name="l00313"></a>00313 <a name="l00317"></a>00317 std::string getVersion()<span class="keyword">const</span>; <a name="l00318"></a>00318 <a name="l00319"></a>00319 <span class="keywordtype">bool</span> getElementQualified() <span class="keyword">const</span>; <a name="l00320"></a>00320 std::string getTnsPrefix( <span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l00321"></a>00321 <a name="l00322"></a>00322 <span class="preprocessor">#ifdef LOGGING</span> <a name="l00323"></a>00323 <span class="preprocessor"></span> <a name="l00326"></a>00326 <span class="keywordtype">void</span> print(std::ostream &) ; <a name="l00327"></a>00327 <span class="preprocessor">#endif</span> <a name="l00328"></a>00328 <span class="preprocessor"></span> <a name="l00329"></a>00329 <a name="l00330"></a>00330 <span class="keyword">private</span>: <a name="l00331"></a>00331 <span class="comment">//This function parses global elements</span> <a name="l00332"></a>00332 <a class="code" href="classSchema_1_1Element.html">Element</a> parseElement(<span class="keywordtype">bool</span> & fwdRef); <a name="l00333"></a>00333 <span class="comment">//This function parses global attributes</span> <a name="l00334"></a>00334 <a class="code" href="classSchema_1_1Attribute.html">Attribute</a> parseAttribute(<span class="keywordtype">bool</span> & fwdRef); <a name="l00335"></a>00335 <span class="keywordtype">void</span> init(); <a name="l00336"></a>00336 <a name="l00337"></a>00337 <span class="comment">//This function parses <annotation> tag</span> <a name="l00338"></a>00338 <span class="keywordtype">void</span> parseAnnotation(); <a name="l00339"></a>00339 <a class="code" href="classSchema_1_1ComplexType.html">ComplexType</a> *parseComplexType(); <a name="l00340"></a>00340 <a class="code" href="classSchema_1_1SimpleType.html">SimpleType</a> *parseSimpleType(); <a name="l00341"></a>00341 <a name="l00342"></a>00342 <a name="l00343"></a>00343 <a class="code" href="classSchema_1_1Element.html">Element</a> addAny(<a class="code" href="classSchema_1_1ContentModel.html">ContentModel</a>* cm); <a name="l00344"></a>00344 <a class="code" href="classSchema_1_1Group.html">Group</a> parseGroup(<a class="code" href="classSchema_1_1ContentModel.html">ContentModel</a>* cm=0); <a name="l00345"></a>00345 <a class="code" href="classSchema_1_1Constraint.html">Constraint</a>* parseConstraint(<a class="code" href="namespaceSchema.html#a016df5c282799f5a08aeb68727dfae3c">Schema::ConstraintType</a> cstr); <a name="l00346"></a>00346 <a class="code" href="classSchema_1_1AttributeGroup.html">AttributeGroup</a>* parseAttributeGroup(<a class="code" href="classSchema_1_1ComplexType.html">ComplexType</a>* cType=0); <a name="l00347"></a>00347 <a class="code" href="classSchema_1_1Attribute.html">Attribute</a> addAnyAttribute(<a class="code" href="classSchema_1_1ComplexType.html">ComplexType</a> * cType); <a name="l00348"></a>00348 <a name="l00349"></a>00349 <span class="keywordtype">void</span> parseRestriction(<a class="code" href="classSchema_1_1SimpleType.html">SimpleType</a> * st,<a class="code" href="classSchema_1_1ComplexType.html">ComplexType</a> * ct=0); <a name="l00350"></a>00350 <span class="keywordtype">void</span> parseComplexContent(<a class="code" href="classSchema_1_1ComplexType.html">ComplexType</a> * ct); <a name="l00351"></a>00351 <span class="keywordtype">void</span> parseSimpleContent(<a class="code" href="classSchema_1_1ComplexType.html">ComplexType</a> * ct); <a name="l00352"></a>00352 <a name="l00353"></a>00353 <span class="keywordtype">void</span> parseContent(<a class="code" href="classSchema_1_1ContentModel.html">ContentModel</a> * cm); <a name="l00354"></a>00354 <span class="keywordtype">bool</span> parseImport(<span class="keywordtype">void</span>); <a name="l00355"></a>00355 <span class="keywordtype">bool</span> parseInclude(); <a name="l00356"></a>00356 <span class="keywordtype">bool</span> parseSchema(std::string tag=<span class="stringliteral">"schema"</span>); <a name="l00357"></a>00357 <span class="keywordtype">bool</span> parseRedefine(); <a name="l00358"></a>00358 <span class="keywordtype">int</span> checkImport(std::string nsp)<span class="keyword">const</span>; <a name="l00359"></a>00359 <span class="keywordtype">void</span> copyImports(<a class="code" href="classSchema_1_1SchemaParser.html">SchemaParser</a> * sp); <a name="l00360"></a>00360 <span class="keywordtype">void</span> resolveForwardElementRefs(); <a name="l00361"></a>00361 <span class="keywordtype">void</span> resolveForwardAttributeRefs(); <a name="l00362"></a>00362 <span class="keywordtype">bool</span>& shouldResolve(); <a name="l00363"></a>00363 <span class="keywordtype">bool</span> makeListFromSoapArray (<a class="code" href="classSchema_1_1ComplexType.html">ComplexType</a> * ct); <a name="l00364"></a>00364 <a name="l00365"></a>00365 std::string fname_; <a name="l00366"></a>00366 std::string tnsUri_; <a name="l00367"></a>00367 std::string tnsPrefix_; <a name="l00368"></a>00368 std::string version_; <a name="l00369"></a>00369 <a class="code" href="classXmlPullParser.html">XmlPullParser</a> * xParser_; <a name="l00370"></a>00370 <span class="keywordtype">bool</span> elementQualified_; <a name="l00371"></a>00371 <span class="keywordtype">bool</span> attributeQualified_; <a name="l00372"></a>00372 <span class="keywordtype">bool</span> deleteXmlParser_; <a name="l00373"></a>00373 <span class="keywordtype">bool</span> resolveFwdRefs_; <a name="l00374"></a>00374 <a class="code" href="classSchema_1_1TypesTable.html">TypesTable</a> typesTable_; <a name="l00375"></a>00375 std::ifstream xmlStream_; <a name="l00376"></a>00376 <a class="code" href="classSchema_1_1SchemaParser.html#aa0507b6296ea5ee7b6db52fc2f18fdfb">ElementList</a> lElems_; <a name="l00377"></a>00377 <a class="code" href="classSchema_1_1SchemaParser.html#ab9d30d5bb84c5ecfd85d74a1004f40af">AttributeList</a> lAttributes_; <a name="l00378"></a>00378 <a class="code" href="classSchema_1_1SchemaParser.html#a978682184fe54dc2259e4f2077d6277f">GroupList</a> lGroups_; <a name="l00379"></a>00379 <a class="code" href="classSchema_1_1SchemaParser.html#ac60d413c1563aa04ad89c47b9ff1ce4a">AttributeGroupList</a> lAttributeGroups_; <a name="l00380"></a>00380 <a class="code" href="classSchema_1_1SchemaParser.html#af3d52b77a5c66faf810852b3f18b373b">ConstraintList</a> constraints_; <a name="l00381"></a>00381 <a class="code" href="classSchema_1_1SchemaParser.html#af92a6d8f83dac20b51d119c616a0ca46">QNameList</a> lForwardElemRefs_; <a name="l00382"></a>00382 <a class="code" href="classSchema_1_1SchemaParser.html#af92a6d8f83dac20b51d119c616a0ca46">QNameList</a> lForwardAttributeRefs_; <a name="l00383"></a>00383 <a name="l00384"></a>00384 std::vector<ImportedSchema> importedSchemas_; <a name="l00385"></a>00385 <span class="keywordtype">void</span> error(std::string, <span class="keywordtype">int</span> level = 0); <a name="l00386"></a>00386 <span class="keywordtype">int</span> level_;<span class="comment">//warning level</span> <a name="l00387"></a>00387 std::ostream & logFile_; <a name="l00388"></a>00388 std::string confPath_; <a name="l00389"></a>00389 std::string uri_; <span class="comment">//The uri to use to resolve imports.1 level up the location of the schema file</span> <a name="l00390"></a>00390 }; <a name="l00391"></a>00391 <a name="l00392"></a>00392 <a name="l00393"></a>00393 <span class="keyword">inline</span> <a name="l00394"></a>00394 <span class="keywordtype">bool</span> & <a name="l00395"></a>00395 SchemaParser::shouldResolve() <a name="l00396"></a>00396 { <a name="l00397"></a>00397 <span class="keywordflow">return</span> resolveFwdRefs_; <a name="l00398"></a>00398 <a name="l00399"></a>00399 } <a name="l00400"></a>00400 <a name="l00401"></a>00401 <span class="keyword">inline</span> <a name="l00402"></a>00402 <span class="keyword">const</span> <a class="code" href="classSchema_1_1SchemaParser.html#aa0507b6296ea5ee7b6db52fc2f18fdfb">SchemaParser::ElementList</a>& <a name="l00403"></a><a class="code" href="classSchema_1_1SchemaParser.html#ad10c155ac19fb7bb0e0317514ab6ce39">00403</a> <a class="code" href="classSchema_1_1SchemaParser.html#ad10c155ac19fb7bb0e0317514ab6ce39">SchemaParser::getElements</a>()<span class="keyword"> const</span> <a name="l00404"></a>00404 <span class="keyword"></span>{ <a name="l00405"></a>00405 <span class="keywordflow">return</span> lElems_; <a name="l00406"></a>00406 } <a name="l00407"></a>00407 <a name="l00408"></a>00408 <span class="keyword">inline</span> <a name="l00409"></a>00409 <span class="keyword">const</span> <a class="code" href="classSchema_1_1SchemaParser.html#ab9d30d5bb84c5ecfd85d74a1004f40af">SchemaParser::AttributeList</a>& <a name="l00410"></a><a class="code" href="classSchema_1_1SchemaParser.html#a8baebb1b8c5eccea424e41f5a0e9c4b6">00410</a> <a class="code" href="classSchema_1_1SchemaParser.html#a8baebb1b8c5eccea424e41f5a0e9c4b6">SchemaParser::getAttributes</a>()<span class="keyword"> const</span> <a name="l00411"></a>00411 <span class="keyword"></span>{ <a name="l00412"></a>00412 <span class="keywordflow">return</span> lAttributes_; <a name="l00413"></a>00413 } <a name="l00414"></a>00414 <a name="l00415"></a>00415 <span class="keyword">inline</span> <a name="l00416"></a>00416 <span class="keywordtype">void</span> <a name="l00417"></a><a class="code" href="classSchema_1_1SchemaParser.html#a1531ba77bcf32659cd36e684d59b595e">00417</a> <a class="code" href="classSchema_1_1SchemaParser.html#a1531ba77bcf32659cd36e684d59b595e">SchemaParser::setWarningLevel</a>(<span class="keywordtype">int</span> l) <a name="l00418"></a>00418 { <a name="l00419"></a>00419 level_ = l; <a name="l00420"></a>00420 } <a name="l00421"></a>00421 <span class="keyword">inline</span> <a name="l00422"></a>00422 <span class="keywordtype">bool</span> <a name="l00423"></a><a class="code" href="classSchema_1_1SchemaParser.html#a17245eefe108e357a5ded372a5edcb07">00423</a> <a class="code" href="classSchema_1_1SchemaParser.html#a17245eefe108e357a5ded372a5edcb07">SchemaParser::isImported</a>(<span class="keyword">const</span> std::string & ns)<span class="keyword">const</span> <a name="l00424"></a>00424 <span class="keyword"></span>{ <a name="l00425"></a>00425 <span class="keywordflow">return</span> checkImport(ns) != -1; <a name="l00426"></a>00426 } <a name="l00427"></a>00427 <span class="keyword">inline</span> <a name="l00428"></a>00428 <span class="keyword">const</span> <a class="code" href="classSchema_1_1SchemaParser.html">SchemaParser</a>* <a name="l00429"></a><a class="code" href="classSchema_1_1SchemaParser.html#a07fe7c99618de89ad703a9a7872f68e6">00429</a> <a class="code" href="classSchema_1_1SchemaParser.html#a07fe7c99618de89ad703a9a7872f68e6">SchemaParser::getImportedSchemaParser</a>(<span class="keyword">const</span> std::string & ns)<span class="keyword">const</span> <a name="l00430"></a>00430 <span class="keyword"></span>{ <a name="l00431"></a>00431 <span class="keywordtype">int</span> i= checkImport(ns); <a name="l00432"></a>00432 <span class="keywordflow">if</span> (i == -1 ) <a name="l00433"></a>00433 <span class="keywordflow">return</span> 0; <a name="l00434"></a>00434 <a name="l00435"></a>00435 <span class="keywordflow">return</span> importedSchemas_[i].sParser; <a name="l00436"></a>00436 } <a name="l00437"></a>00437 <a name="l00438"></a>00438 <span class="keyword">inline</span> <a name="l00439"></a>00439 <span class="keywordtype">void</span> <a name="l00440"></a><a class="code" href="classSchema_1_1SchemaParser.html#a5d4c050e16d32aa7a8e87cdb9c27cec2">00440</a> <a class="code" href="classSchema_1_1SchemaParser.html#a5d4c050e16d32aa7a8e87cdb9c27cec2">SchemaParser::setSchemaPath</a>(<span class="keyword">const</span> std::string& s) <a name="l00441"></a>00441 { <a name="l00442"></a>00442 confPath_ = s; <a name="l00443"></a>00443 } <a name="l00444"></a>00444 <a name="l00445"></a>00445 <span class="keyword">inline</span> <a name="l00446"></a>00446 <span class="keywordtype">void</span> <a name="l00447"></a><a class="code" href="classSchema_1_1SchemaParser.html#a3b34d1a790d25778b56df0bf07a01a30">00447</a> <a class="code" href="classSchema_1_1SchemaParser.html#a3b34d1a790d25778b56df0bf07a01a30">SchemaParser::setUri</a>(<span class="keyword">const</span> std::string& s) <a name="l00448"></a>00448 { <a name="l00449"></a>00449 uri_ = s; <a name="l00450"></a>00450 } <a name="l00451"></a>00451 <a name="l00452"></a>00452 <span class="keyword">inline</span> <a name="l00453"></a>00453 <a class="code" href="classSchema_1_1TypesTable.html">TypesTable</a>* <a name="l00454"></a><a class="code" href="classSchema_1_1SchemaParser.html#a0f0b628df4b57ea70aca855667721728">00454</a> <a class="code" href="classSchema_1_1SchemaParser.html#a0f0b628df4b57ea70aca855667721728">SchemaParser::getTypesTable</a>() <a name="l00455"></a>00455 { <a name="l00456"></a>00456 <span class="keywordflow">return</span> &typesTable_; <a name="l00457"></a>00457 } <a name="l00458"></a>00458 <a name="l00459"></a>00459 <span class="keyword">inline</span> <a name="l00460"></a>00460 std::vector<SchemaParser::ImportedSchema>& <a name="l00461"></a><a class="code" href="classSchema_1_1SchemaParser.html#a81e5d138a603a6615d1d286d0250133a">00461</a> <a class="code" href="classSchema_1_1SchemaParser.html#a81e5d138a603a6615d1d286d0250133a">SchemaParser::getImportedSchemas</a>() <a name="l00462"></a>00462 { <a name="l00463"></a>00463 <span class="keywordflow">return</span> importedSchemas_; <a name="l00464"></a>00464 } <a name="l00465"></a>00465 <a name="l00466"></a>00466 <span class="keyword">inline</span> <a name="l00467"></a>00467 std::string <a name="l00468"></a><a class="code" href="classSchema_1_1SchemaParser.html#ab901517ca3153da17e9035f7a5cfc03f">00468</a> <a class="code" href="classSchema_1_1SchemaParser.html#ab901517ca3153da17e9035f7a5cfc03f">SchemaParser::getVersion</a>()<span class="keyword">const</span> <a name="l00469"></a>00469 <span class="keyword"></span>{ <a name="l00470"></a>00470 <span class="keywordflow">return</span> version_; <a name="l00471"></a>00471 } <a name="l00472"></a>00472 <a name="l00473"></a>00473 <span class="keyword">inline</span> <a name="l00474"></a>00474 <span class="keywordtype">bool</span> <a name="l00475"></a><a class="code" href="classSchema_1_1SchemaParser.html#accc806bd739b3ec9633987d4f745d894">00475</a> <a class="code" href="classSchema_1_1SchemaParser.html#accc806bd739b3ec9633987d4f745d894">SchemaParser::getElementQualified</a>()<span class="keyword"> const</span> <a name="l00476"></a>00476 <span class="keyword"></span>{ <a name="l00477"></a>00477 <span class="keywordflow">return</span> elementQualified_ ; <a name="l00478"></a>00478 } <a name="l00479"></a>00479 <a name="l00480"></a>00480 <span class="keyword">inline</span> <a name="l00481"></a>00481 <a name="l00482"></a>00482 std::string <a name="l00483"></a><a class="code" href="classSchema_1_1SchemaParser.html#a260a1b30b14d47228a6d809c83876390">00483</a> <a class="code" href="classSchema_1_1SchemaParser.html#a260a1b30b14d47228a6d809c83876390">SchemaParser::getTnsPrefix</a>( <span class="keywordtype">void</span>)<span class="keyword"> const</span> <a name="l00484"></a>00484 <span class="keyword"></span>{ <a name="l00485"></a>00485 <span class="keywordflow">return</span> tnsPrefix_; <a name="l00486"></a>00486 } <a name="l00487"></a>00487 <a name="l00488"></a>00488 } <a name="l00489"></a>00489 <span class="preprocessor">#endif </span><span class="comment">/* */</span> <a name="l00490"></a>00490 <a name="l00491"></a>00491 </pre></div></div> <!--- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Defines</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address> </body> </html>