Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 7dbb97048ebf07a07f14d36d61024b23 > files > 30

wsdlpull-doc-1.23-3.fc13.noarch.rpm

<!-- 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/Element.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&nbsp;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&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_02f058d422e7266632662d1436e7c90d.html">src</a>&nbsp;&raquo;&nbsp;<a class="el" href="dir_aa09c601595277e3f572f9f53a7da262.html">schemaparser</a>
  </div>
</div>
<div class="contents">
<h1>Element.h</h1><a href="Element_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 _ELEMENTH</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define _ELEMENTH</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;<a class="code" href="wsdlpull__export_8h.html">xmlpull/wsdlpull_export.h</a>&quot;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &quot;<a class="code" href="Constraint_8h.html">schemaparser/Constraint.h</a>&quot;</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="keyword">namespace </span>Schema {
<a name="l00029"></a><a class="code" href="Element_8h.html#af17df4d5d5bad0ea1d48fa796a91d4ce">00029</a> <span class="preprocessor">#define UNBOUNDED INT_MAX</span>
<a name="l00030"></a><a class="code" href="classSchema_1_1Element.html">00030</a> <span class="preprocessor"></span><span class="keyword">class </span><a class="code" href="wsdlpull__export_8h.html#ad360158cff99879c80a7072c29529f50">WSDLPULL_EXPORT</a> <a class="code" href="classSchema_1_1Element.html">Element</a>
<a name="l00031"></a>00031 {
<a name="l00032"></a>00032  <span class="keyword">public</span>:
<a name="l00033"></a>00033   <a class="code" href="classSchema_1_1Element.html">Element</a>(<span class="keyword">const</span> std::string &amp; name, 
<a name="l00034"></a>00034           <span class="keyword">const</span> std::string &amp; elemNs,
<a name="l00035"></a>00035           <span class="keyword">const</span> std::string &amp; typeNs,
<a name="l00036"></a>00036           <span class="keywordtype">int</span> type_id, 
<a name="l00037"></a>00037           <span class="keywordtype">int</span> minimum = 1,
<a name="l00038"></a>00038           <span class="keywordtype">int</span> maximum = 1,
<a name="l00039"></a>00039           <span class="keywordtype">bool</span> qualified = <span class="keyword">false</span>, 
<a name="l00040"></a>00040           std::string def = <span class="stringliteral">&quot;&quot;</span>, 
<a name="l00041"></a>00041           std::string fixed =<span class="stringliteral">&quot;&quot;</span>);
<a name="l00042"></a>00042   
<a name="l00043"></a>00043   <a class="code" href="classSchema_1_1Element.html">Element</a>(<span class="keywordtype">void</span>);
<a name="l00044"></a>00044   <span class="keywordtype">void</span> setType(<span class="keywordtype">int</span> <span class="keywordtype">id</span>);
<a name="l00045"></a>00045   std::string getName() <span class="keyword">const</span>;
<a name="l00046"></a>00046   <span class="keywordtype">void</span> setTypeNamespace(<span class="keyword">const</span> std::string &amp; ns);
<a name="l00047"></a>00047   std::string getTypeNamespace() <span class="keyword">const</span>;
<a name="l00048"></a>00048   <span class="keywordtype">void</span> setNamespace(<span class="keyword">const</span> std::string &amp;ns);
<a name="l00049"></a>00049   std::string getNamespace()<span class="keyword">const</span>;
<a name="l00050"></a>00050   <span class="keywordtype">int</span> getType() <span class="keyword">const</span>;
<a name="l00051"></a>00051   <span class="keywordtype">int</span> getMax() <span class="keyword">const</span> ;
<a name="l00052"></a>00052   <span class="keywordtype">int</span> getMin() <span class="keyword">const</span>;
<a name="l00053"></a>00053   std::string &amp; defaultVal();
<a name="l00054"></a>00054   std::string &amp; fixedVal();
<a name="l00055"></a>00055   <span class="keywordtype">bool</span> isQualified() <span class="keyword">const</span>;
<a name="l00056"></a>00056   <a class="code" href="classSchema_1_1Element.html">Element</a>&amp; operator = (<span class="keyword">const</span> <a class="code" href="classSchema_1_1Element.html">Element</a> &amp; e);
<a name="l00057"></a>00057   <span class="keywordtype">void</span> setMin(<span class="keywordtype">int</span> m);
<a name="l00058"></a>00058   <span class="keywordtype">void</span> setMax(<span class="keywordtype">int</span> m);
<a name="l00059"></a>00059   <span class="comment">//add a key/keyref/unique constraint</span>
<a name="l00060"></a>00060   <span class="keywordtype">void</span> addConstraint(<a class="code" href="classSchema_1_1Constraint.html">Constraint</a>* c);
<a name="l00061"></a>00061   <a class="code" href="classSchema_1_1Constraint.html">Constraint</a>* constraint();
<a name="l00062"></a>00062   <span class="keyword">const</span> std::list&lt;std::string&gt; &amp; getConstraints(); <span class="comment">// Proposed modification: return a list of constraints, every constraint identified by its name.</span>
<a name="l00063"></a><a class="code" href="classSchema_1_1Element.html#ad81cf2d1946fbc578bb0e5545758b5dc">00063</a>   <span class="keywordtype">int</span> nOccurrences;
<a name="l00064"></a>00064 
<a name="l00065"></a>00065  <span class="keyword">private</span>:
<a name="l00066"></a>00066   std::string elemName;
<a name="l00067"></a>00067   std::string dval, fval;
<a name="l00068"></a>00068   <span class="keywordtype">int</span> elemType;
<a name="l00069"></a>00069   <span class="keywordtype">bool</span> bQualified;
<a name="l00070"></a>00070   <span class="keywordtype">int</span> minOccurs, maxOccurs;
<a name="l00071"></a>00071   std::string elemNamespace;<span class="comment">//namespace where the element is defined </span>
<a name="l00072"></a>00072   std::string typeNamespace;<span class="comment">//namespace where the type of this element is defined</span>
<a name="l00073"></a>00073  
<a name="l00074"></a>00074   <a class="code" href="classSchema_1_1Constraint.html">Constraint</a>* cstr;
<a name="l00075"></a>00075 };
<a name="l00076"></a>00076 
<a name="l00077"></a>00077 <span class="preprocessor">#ifdef LOGGING</span>
<a name="l00078"></a>00078 <span class="preprocessor"></span>std::ostream &amp; <a class="code" href="namespaceSchema.html#ae2f8459e876b7551739101741a34a5d8">operator &lt;&lt; </a>(std::ostream &amp; stream, <a class="code" href="classSchema_1_1Element.html">Element</a> &amp; e);
<a name="l00079"></a>00079 <span class="preprocessor">#endif</span>
<a name="l00080"></a>00080 <span class="preprocessor"></span>
<a name="l00081"></a>00081 <span class="keyword">inline</span>
<a name="l00082"></a><a class="code" href="classSchema_1_1Element.html#a595d0544470dbb6750778ea559d08676">00082</a> <a class="code" href="classSchema_1_1Element.html#a8eaf5b8cb38f0bdffe88b149c95d5409">Element::Element</a>(<span class="keyword">const</span> std::string &amp; name, 
<a name="l00083"></a>00083                  <span class="keyword">const</span> std::string &amp; elemNs,
<a name="l00084"></a>00084                  <span class="keyword">const</span> std::string &amp; typeNs, 
<a name="l00085"></a>00085                  <span class="keywordtype">int</span> type_id, 
<a name="l00086"></a>00086                  <span class="keywordtype">int</span> minimum,
<a name="l00087"></a>00087                  <span class="keywordtype">int</span> maximum,
<a name="l00088"></a>00088                  <span class="keywordtype">bool</span> qualified, 
<a name="l00089"></a>00089                  std::string def , 
<a name="l00090"></a>00090                  std::string fixed)
<a name="l00091"></a>00091   : nOccurrences(0),
<a name="l00092"></a>00092   elemName(name),
<a name="l00093"></a>00093   dval(def),
<a name="l00094"></a>00094   fval(fixed),
<a name="l00095"></a>00095   elemType(type_id),
<a name="l00096"></a>00096   bQualified(qualified),
<a name="l00097"></a>00097   minOccurs(minimum),
<a name="l00098"></a>00098   maxOccurs(maximum),
<a name="l00099"></a>00099   elemNamespace(elemNs),
<a name="l00100"></a>00100   typeNamespace(typeNs),
<a name="l00101"></a>00101   cstr(0)
<a name="l00102"></a>00102  {
<a name="l00103"></a>00103  }
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 <span class="keyword">inline</span>
<a name="l00106"></a><a class="code" href="classSchema_1_1Element.html#a8eaf5b8cb38f0bdffe88b149c95d5409">00106</a> <a class="code" href="classSchema_1_1Element.html#a8eaf5b8cb38f0bdffe88b149c95d5409">Element::Element</a>(<span class="keywordtype">void</span>)
<a name="l00107"></a>00107    :nOccurrences(0),
<a name="l00108"></a>00108     elemType(0),
<a name="l00109"></a>00109     bQualified (false),
<a name="l00110"></a>00110     minOccurs (1),
<a name="l00111"></a>00111     maxOccurs (1),
<a name="l00112"></a>00112      cstr(0)
<a name="l00113"></a>00113 {
<a name="l00114"></a>00114 }
<a name="l00115"></a>00115 
<a name="l00116"></a>00116 <span class="keyword">inline</span>
<a name="l00117"></a>00117 <span class="keywordtype">void</span>
<a name="l00118"></a><a class="code" href="classSchema_1_1Element.html#ae25b172b42e22dfd704c12e8594cf791">00118</a> <a class="code" href="classSchema_1_1Element.html#ae25b172b42e22dfd704c12e8594cf791">Element::setType</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>)
<a name="l00119"></a>00119 {
<a name="l00120"></a>00120   elemType = id;
<a name="l00121"></a>00121 }
<a name="l00122"></a>00122 
<a name="l00123"></a>00123 <span class="keyword">inline</span>
<a name="l00124"></a>00124 std::string
<a name="l00125"></a><a class="code" href="classSchema_1_1Element.html#a7d60f62e4e0b17c1fb5d6729f813b0f7">00125</a> <a class="code" href="classSchema_1_1Element.html#a7d60f62e4e0b17c1fb5d6729f813b0f7">Element::getName</a>()<span class="keyword"> const</span>
<a name="l00126"></a>00126 <span class="keyword"></span>{
<a name="l00127"></a>00127   <span class="keywordflow">return</span> elemName;
<a name="l00128"></a>00128 }
<a name="l00129"></a>00129 
<a name="l00130"></a>00130 <span class="keyword">inline</span>
<a name="l00131"></a>00131 <span class="keywordtype">void</span>
<a name="l00132"></a><a class="code" href="classSchema_1_1Element.html#ae28a10a4d243fce1bef3bd980036404c">00132</a> <a class="code" href="classSchema_1_1Element.html#ae28a10a4d243fce1bef3bd980036404c">Element::setTypeNamespace</a>(<span class="keyword">const</span> std::string&amp; ns)
<a name="l00133"></a>00133 {
<a name="l00134"></a>00134   typeNamespace = ns;
<a name="l00135"></a>00135 }
<a name="l00136"></a>00136 
<a name="l00137"></a>00137 <span class="keyword">inline</span>
<a name="l00138"></a>00138 std::string 
<a name="l00139"></a><a class="code" href="classSchema_1_1Element.html#a288344a50646a4a714b3a7d1453bc3e3">00139</a> <a class="code" href="classSchema_1_1Element.html#a288344a50646a4a714b3a7d1453bc3e3">Element::getTypeNamespace</a>()<span class="keyword"> const</span>
<a name="l00140"></a>00140 <span class="keyword"></span>{
<a name="l00141"></a>00141   <span class="keywordflow">return</span> typeNamespace;
<a name="l00142"></a>00142 }
<a name="l00143"></a>00143 
<a name="l00144"></a>00144 
<a name="l00145"></a>00145 <span class="keyword">inline</span>
<a name="l00146"></a>00146 <span class="keywordtype">int</span>
<a name="l00147"></a><a class="code" href="classSchema_1_1Element.html#a5a3acbc55a5739e80b1f2855b62e94f9">00147</a> <a class="code" href="classSchema_1_1Element.html#a5a3acbc55a5739e80b1f2855b62e94f9">Element::getType</a>()<span class="keyword"> const</span>
<a name="l00148"></a>00148 <span class="keyword"></span>{
<a name="l00149"></a>00149   <span class="keywordflow">return</span> elemType;
<a name="l00150"></a>00150 }
<a name="l00151"></a>00151 
<a name="l00152"></a>00152 <span class="keyword">inline</span>
<a name="l00153"></a>00153 <span class="keywordtype">int</span>
<a name="l00154"></a><a class="code" href="classSchema_1_1Element.html#a6978b751ea6352ec5210d57ed566a02e">00154</a> <a class="code" href="classSchema_1_1Element.html#a6978b751ea6352ec5210d57ed566a02e">Element::getMax</a>()<span class="keyword"> const</span>
<a name="l00155"></a>00155 <span class="keyword"></span>{
<a name="l00156"></a>00156   <span class="keywordflow">return</span> maxOccurs;
<a name="l00157"></a>00157 }
<a name="l00158"></a>00158 <span class="keyword">inline</span>
<a name="l00159"></a>00159 <span class="keywordtype">int</span>
<a name="l00160"></a><a class="code" href="classSchema_1_1Element.html#a4b469347ae6829197e3f94ebd6b6737a">00160</a> <a class="code" href="classSchema_1_1Element.html#a4b469347ae6829197e3f94ebd6b6737a">Element::getMin</a>()<span class="keyword"> const</span>
<a name="l00161"></a>00161 <span class="keyword"></span>{
<a name="l00162"></a>00162   <span class="keywordflow">return</span> minOccurs;
<a name="l00163"></a>00163 }
<a name="l00164"></a>00164 
<a name="l00165"></a>00165 <span class="keyword">inline</span>
<a name="l00166"></a>00166 std::string &amp;
<a name="l00167"></a><a class="code" href="classSchema_1_1Element.html#a3c1cba3fc5d74f73758d401482669c58">00167</a> <a class="code" href="classSchema_1_1Element.html#a3c1cba3fc5d74f73758d401482669c58">Element::defaultVal</a>()
<a name="l00168"></a>00168 {
<a name="l00169"></a>00169   <span class="keywordflow">return</span> dval;
<a name="l00170"></a>00170 }
<a name="l00171"></a>00171 
<a name="l00172"></a>00172 <span class="keyword">inline</span>
<a name="l00173"></a>00173 std::string &amp;
<a name="l00174"></a><a class="code" href="classSchema_1_1Element.html#aa467984c2a935fdeb1f02901ce880b4b">00174</a> <a class="code" href="classSchema_1_1Element.html#aa467984c2a935fdeb1f02901ce880b4b">Element::fixedVal</a>()
<a name="l00175"></a>00175 {
<a name="l00176"></a>00176   <span class="keywordflow">return</span> fval;
<a name="l00177"></a>00177 }
<a name="l00178"></a>00178 
<a name="l00179"></a>00179 <span class="keyword">inline</span>
<a name="l00180"></a>00180 <span class="keywordtype">bool</span>
<a name="l00181"></a><a class="code" href="classSchema_1_1Element.html#a839c296f41526bed478c4fddc2a298b0">00181</a> <a class="code" href="classSchema_1_1Element.html#a839c296f41526bed478c4fddc2a298b0">Element::isQualified</a>()<span class="keyword"> const</span>
<a name="l00182"></a>00182 <span class="keyword"></span>{
<a name="l00183"></a>00183   <span class="keywordflow">return</span> bQualified;
<a name="l00184"></a>00184 }
<a name="l00185"></a>00185 
<a name="l00186"></a>00186 <span class="keyword">inline</span>
<a name="l00187"></a>00187 <a class="code" href="classSchema_1_1Element.html">Element</a>&amp; 
<a name="l00188"></a><a class="code" href="classSchema_1_1Element.html#abe53b31ce929db515f7c0c36a2364bc7">00188</a> <a class="code" href="classSchema_1_1Element.html#abe53b31ce929db515f7c0c36a2364bc7">Element::operator = </a>(<span class="keyword">const</span> <a class="code" href="classSchema_1_1Element.html">Element</a> &amp; e)
<a name="l00189"></a>00189 {
<a name="l00190"></a>00190   elemName = e.elemName;
<a name="l00191"></a>00191   elemType = e.elemType;
<a name="l00192"></a>00192   bQualified = e.<a class="code" href="classSchema_1_1Element.html#a839c296f41526bed478c4fddc2a298b0">isQualified</a>();
<a name="l00193"></a>00193   dval = e.dval;
<a name="l00194"></a>00194   fval = e.fval;
<a name="l00195"></a>00195   typeNamespace = e.typeNamespace;
<a name="l00196"></a>00196   cstr = e.cstr;
<a name="l00197"></a>00197   <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00198"></a>00198   <span class="comment">//minimum and maximum are not copied because they are specific to the</span>
<a name="l00199"></a>00199   <span class="comment">//occurrence</span>
<a name="l00200"></a>00200 }
<a name="l00201"></a>00201 <span class="keyword">inline</span>
<a name="l00202"></a>00202 <span class="keywordtype">void</span>
<a name="l00203"></a><a class="code" href="classSchema_1_1Element.html#a9b3a82b7659530c0b74e68e1bcc64093">00203</a> <a class="code" href="classSchema_1_1Element.html#a9b3a82b7659530c0b74e68e1bcc64093">Element::setMin</a>(<span class="keywordtype">int</span> m)
<a name="l00204"></a>00204 {
<a name="l00205"></a>00205   minOccurs=m;
<a name="l00206"></a>00206 }
<a name="l00207"></a>00207 
<a name="l00208"></a>00208 <span class="keyword">inline</span>
<a name="l00209"></a>00209 <span class="keywordtype">void</span> 
<a name="l00210"></a><a class="code" href="classSchema_1_1Element.html#a59aa0b7fb2f0b1db15bd4860e4175c47">00210</a> <a class="code" href="classSchema_1_1Element.html#a59aa0b7fb2f0b1db15bd4860e4175c47">Element::setMax</a>(<span class="keywordtype">int</span> m)
<a name="l00211"></a>00211 {
<a name="l00212"></a>00212   maxOccurs=m;
<a name="l00213"></a>00213 }
<a name="l00214"></a>00214 
<a name="l00215"></a>00215 <span class="keyword">inline</span>
<a name="l00216"></a>00216 <span class="keywordtype">void</span>
<a name="l00217"></a><a class="code" href="classSchema_1_1Element.html#a6609d5a2e4b98c118720401f09ad6f53">00217</a> <a class="code" href="classSchema_1_1Element.html#a6609d5a2e4b98c118720401f09ad6f53">Element::addConstraint</a>(<a class="code" href="classSchema_1_1Constraint.html">Constraint</a>* c)
<a name="l00218"></a>00218 {
<a name="l00219"></a>00219   cstr=c;
<a name="l00220"></a>00220 }
<a name="l00221"></a>00221 
<a name="l00222"></a>00222 <span class="keyword">inline</span>
<a name="l00223"></a>00223 <a class="code" href="classSchema_1_1Constraint.html">Constraint</a>*
<a name="l00224"></a><a class="code" href="classSchema_1_1Element.html#ae2489310f09434bed540705ee267d451">00224</a> <a class="code" href="classSchema_1_1Element.html#ae2489310f09434bed540705ee267d451">Element::constraint</a>()
<a name="l00225"></a>00225 {
<a name="l00226"></a>00226   <span class="keywordflow">return</span> cstr;
<a name="l00227"></a>00227 }
<a name="l00228"></a>00228 
<a name="l00229"></a>00229 
<a name="l00230"></a>00230 <span class="keyword">inline</span>
<a name="l00231"></a>00231 <span class="keywordtype">void</span>
<a name="l00232"></a><a class="code" href="classSchema_1_1Element.html#a0e0a121f1d9de974815bb1b9471c43f3">00232</a> <a class="code" href="classSchema_1_1Element.html#a0e0a121f1d9de974815bb1b9471c43f3">Element::setNamespace</a>(<span class="keyword">const</span> std::string&amp; ns)
<a name="l00233"></a>00233 {
<a name="l00234"></a>00234   elemNamespace = ns;
<a name="l00235"></a>00235 }
<a name="l00236"></a>00236 
<a name="l00237"></a>00237 <span class="keyword">inline</span>
<a name="l00238"></a>00238 std::string 
<a name="l00239"></a><a class="code" href="classSchema_1_1Element.html#a15a74fa43e2760165106b0416d1c0f92">00239</a> <a class="code" href="classSchema_1_1Element.html#a15a74fa43e2760165106b0416d1c0f92">Element::getNamespace</a>()<span class="keyword"> const</span>
<a name="l00240"></a>00240 <span class="keyword"></span>{
<a name="l00241"></a>00241   <span class="keywordflow">return</span> elemNamespace;
<a name="l00242"></a>00242 }
<a name="l00243"></a>00243 
<a name="l00244"></a>00244 
<a name="l00245"></a>00245 
<a name="l00246"></a>00246 }
<a name="l00247"></a>00247 <span class="preprocessor">#endif                                            </span><span class="comment">/*  */</span>
</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">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&nbsp;</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&nbsp;
<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>