00001 #ifndef DOMTreeWalker_HEADER_GUARD_
00002 #define DOMTreeWalker_HEADER_GUARD_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064 #include "DOMNode.hpp"
00065 #include "DOMNodeFilter.hpp"
00066
00067 XERCES_CPP_NAMESPACE_BEGIN
00068
00069
00089 class DOMTreeWalker {
00090 protected:
00091
00092
00093
00096 DOMTreeWalker() {};
00098
00099 private:
00100
00101
00102
00105 DOMTreeWalker(const DOMTreeWalker &);
00106 DOMTreeWalker & operator = (const DOMTreeWalker &);
00108
00109 public:
00110
00111
00112
00119 virtual ~DOMTreeWalker() {};
00121
00122
00123
00124
00127
00128
00129
00130
00137 virtual DOMNode* getRoot() = 0;
00148 virtual unsigned long getWhatToShow()= 0;
00149
00155 virtual DOMNodeFilter* getFilter()= 0;
00156
00174 virtual bool getExpandEntityReferences()= 0;
00175
00181 virtual DOMNode* getCurrentNode()= 0;
00182
00183
00184
00185
00197 virtual DOMNode* parentNode()= 0;
00198
00209 virtual DOMNode* firstChild()= 0;
00210
00221 virtual DOMNode* lastChild()= 0;
00222
00233 virtual DOMNode* previousSibling()= 0;
00234
00244 virtual DOMNode* nextSibling()= 0;
00245
00258 virtual DOMNode* previousNode()= 0;
00259
00271 virtual DOMNode* nextNode()= 0;
00272
00273
00274
00275
00293 virtual void setCurrentNode(DOMNode* currentNode)= 0;
00295
00296
00297
00298
00307 virtual void release() = 0;
00309 };
00310
00311 XERCES_CPP_NAMESPACE_END
00312
00313 #endif