00001 #ifndef DOMXPathResult_HEADER_GUARD_
00002 #define DOMXPathResult_HEADER_GUARD_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <xercesc/util/XercesDefs.hpp>
00022
00023 XERCES_CPP_NAMESPACE_BEGIN
00024
00025 class DOMXPathNSResolver;
00026 class DOMXPathExpression;
00027 class DOMNode;
00028
00037 class CDOM_EXPORT DOMXPathResult
00038 {
00039
00040 protected:
00041
00042
00043
00046 DOMXPathResult() {};
00048
00049 private:
00050
00051
00052
00055 DOMXPathResult(const DOMXPathResult &);
00056 DOMXPathResult& operator = (const DOMXPathResult&);
00058
00059 public:
00060
00061
00062
00069 virtual ~DOMXPathResult() {};
00071
00072
00073
00074
00136 enum resultType {
00137 ANY_TYPE = 0,
00138 NUMBER_TYPE = 1,
00139 STRING_TYPE = 2,
00140 BOOLEAN_TYPE = 3,
00141 UNORDERED_NODE_ITERATOR_TYPE = 4,
00142 ORDERED_NODE_ITERATOR_TYPE = 5,
00143 UNORDERED_NODE_SNAPSHOT_TYPE = 6,
00144 ORDERED_NODE_SNAPSHOT_TYPE = 7,
00145 ANY_UNORDERED_NODE_TYPE = 8,
00146 FIRST_ORDERED_NODE_TYPE = 9
00147 };
00149
00150
00151
00152
00153
00156
00157
00165 virtual bool getBooleanValue() const = 0;
00166
00176 virtual bool getInvalidIteratorState() const = 0;
00177
00188 virtual double getNumberValue() const = 0;
00189
00197 virtual short getResultType() const = 0;
00198
00206 virtual DOMNode *getSingleNodeValue() const = 0;
00207
00217 virtual unsigned long getSnapshotLength() const = 0;
00218
00226 virtual const XMLCh* getStringValue() const = 0;
00227
00236 virtual DOMNode* iterateNext() const = 0;
00237
00248 virtual DOMNode* snapshotItem(unsigned long index) const = 0;
00249
00251 };
00252
00253 XERCES_CPP_NAMESPACE_END
00254
00255 #endif