File: XMLNodeSet_8hpp-source.html

package info (click to toggle)
sp-gxmlcpp 1.0.20040603-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,596 kB
  • ctags: 266
  • sloc: sh: 7,483; cpp: 1,629; makefile: 119
file content (86 lines) | stat: -rw-r--r-- 4,847 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>XMLNodeSet.hpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.15 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="examples.html">Examples</a> &nbsp; </center>
<hr><h1>XMLNodeSet.hpp</h1><a href="XMLNodeSet_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*</font>
00002 <font class="comment"> * (C) Copyright 2002, Schlund+Partner AG</font>
00003 <font class="comment"> *</font>
00004 <font class="comment"> * This library is free software; you can redistribute it and/or</font>
00005 <font class="comment"> * modify it under the terms of the GNU Lesser General Public</font>
00006 <font class="comment"> * License as published by the Free Software Foundation; either</font>
00007 <font class="comment"> * version 2.1 of the License, or (at your option) any later version.</font>
00008 <font class="comment"> *</font>
00009 <font class="comment"> * This library is distributed in the hope that it will be useful,</font>
00010 <font class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</font>
00011 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</font>
00012 <font class="comment"> * Lesser General Public License for more details.</font>
00013 <font class="comment"> *</font>
00014 <font class="comment"> * You should have received a copy of the GNU Lesser General Public</font>
00015 <font class="comment"> * License along with this library; if not, write to the Free Software</font>
00016 <font class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</font>
00017 <font class="comment">*/</font>
00018 
00031 <font class="preprocessor">#ifndef SP_GXML_XMLNODESET_HPP</font>
00032 <font class="preprocessor"></font><font class="preprocessor">#define SP_GXML_XMLNODESET_HPP</font>
00033 <font class="preprocessor"></font>
00034 <font class="comment">// C libraries</font>
00035 <font class="preprocessor">#include &lt;libxslt/xsltInternals.h&gt;</font>
00036 <font class="preprocessor">#include &lt;libxml/xpath.h&gt;</font>
00037 <font class="preprocessor">#include &lt;libxml/tree.h&gt;</font>
00038 
00039 <font class="comment">// Local</font>
00040 <font class="preprocessor">#include &lt;<a class="code" href="XMLNode_8hpp.html">sp-gxmlcpp/XMLNode.hpp</a>&gt;</font>
00041 <font class="preprocessor">#include &lt;<a class="code" href="XMLException_8hpp.html">sp-gxmlcpp/XMLException.hpp</a>&gt;</font>
00042 
00043 <font class="keyword">namespace </font>SP
00044 {
00045 <font class="keyword">namespace </font>GXML
00046 {
00047 
00048 <font class="comment">// forward declarations</font>
00049 <font class="keyword">class </font>XMLTree;
00050 
00051 <font class="keyword">class </font>XMLNodeSet
00052 {
00053 <font class="keyword">public</font>:
00054         XMLNodeSet( <font class="keyword">const</font> std::string&amp; xpath, <font class="keyword">const</font> XMLTree* tree );
00055         ~XMLNodeSet();
00056 
00057         <font class="keyword">class </font>Iterator
00058         {
00059         <font class="keyword">public</font>:
00060                 Iterator();
00061                 Iterator( <font class="keyword">const</font> xmlNodeSetPtr set );
00062                 ~Iterator();
00063                 Iterator operator ++();
00064                 <font class="keywordtype">bool</font> operator !=( <font class="keyword">const</font> Iterator&amp; iter);
00065                 XMLNode operator *();
00066                 <font class="keywordtype">int</font> getPosition();
00067 
00068         <font class="keyword">private</font>:
00069                 <font class="keywordtype">int</font> pos_;
00070                 xmlNodeSetPtr set_;
00071         };
00072 
00073         <font class="keywordtype">int</font> size();
00074         Iterator begin();
00075         Iterator end();
00076         <font class="comment">//Iterator rbegin();</font>
00077         <font class="comment">//Iterator rend();</font>
00078 
00079 <font class="keyword">private</font>:
00080         xmlXPathObjectPtr xPathObj_;
00081 };
00082 
00083 }}
00084 <font class="preprocessor">#endif</font>
</pre></div><hr><address align="right"><small>Generated on Thu Jun 3 19:20:12 2004 for sp-gxmlcpp by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.15 </small></address>
</body>
</html>