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
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 #include <xercesc/util/XercesDefs.hpp>
00061
00062 XERCES_CPP_NAMESPACE_BEGIN
00063
00064 class DOMXPathNSResolver;
00065 class DOMXPathExpression;
00066 class DOMNode;
00067
00076 class DOMXPathResult
00077 {
00078
00079 protected:
00080
00081
00082
00085 DOMXPathResult() {};
00087
00088 private:
00089
00090
00091
00094 DOMXPathResult(const DOMXPathResult &);
00095 DOMXPathResult& operator = (const DOMXPathResult&);
00097
00098 public:
00099
00100
00101
00108 virtual ~DOMXPathResult() {};
00110
00111
00112
00113
00174 enum resultType {
00175 ANY_TYPE = 0,
00176 NUMBER_TYPE = 1,
00177 STRING_TYPE = 2,
00178 BOOLEAN_TYPE = 3,
00179 UNORDERED_NODE_ITERATOR_TYPE = 4,
00180 ORDERED_NODE_ITERATOR_TYPE = 5,
00181 UNORDERED_NODE_SNAPSHOT_TYPE = 6,
00182 ORDERED_NODE_SNAPSHOT_TYPE = 7,
00183 ANY_UNORDERED_NODE_TYPE = 8,
00184 FIRST_ORDERED_NODE_TYPE = 9
00185 };
00187
00188
00189
00190
00191
00194
00195
00203 virtual bool getBooleanValue() const = 0;
00204
00214 virtual bool getInvalidIteratorState() const = 0;
00215
00226 virtual double getNumberValue() const = 0;
00227
00235 virtual short getResultType() const = 0;
00236
00244 virtual DOMNode *getSingleNodeValue() const = 0;
00245
00255 virtual unsigned long getSnapshotLength() const = 0;
00256
00264 virtual const XMLCh* getStringValue() const = 0;
00265
00274 virtual DOMNode* iterateNext() const = 0;
00275
00286 virtual DOMNode* snapshotItem(unsigned long index) const = 0;
00287
00289 };
00290
00291 XERCES_CPP_NAMESPACE_END
00292
00293 #endif