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 #include <xercesc/util/XercesDefs.hpp>
00021
00022 XERCES_CPP_NAMESPACE_BEGIN
00023
00024 class DOMXPathNSResolver;
00025 class DOMXPathExpression;
00026 class DOMNode;
00027
00036 class DOMXPathResult
00037 {
00038
00039 protected:
00040
00041
00042
00045 DOMXPathResult() {};
00047
00048 private:
00049
00050
00051
00054 DOMXPathResult(const DOMXPathResult &);
00055 DOMXPathResult& operator = (const DOMXPathResult&);
00057
00058 public:
00059
00060
00061
00068 virtual ~DOMXPathResult() {};
00070
00071
00072
00073
00134 enum resultType {
00135 ANY_TYPE = 0,
00136 NUMBER_TYPE = 1,
00137 STRING_TYPE = 2,
00138 BOOLEAN_TYPE = 3,
00139 UNORDERED_NODE_ITERATOR_TYPE = 4,
00140 ORDERED_NODE_ITERATOR_TYPE = 5,
00141 UNORDERED_NODE_SNAPSHOT_TYPE = 6,
00142 ORDERED_NODE_SNAPSHOT_TYPE = 7,
00143 ANY_UNORDERED_NODE_TYPE = 8,
00144 FIRST_ORDERED_NODE_TYPE = 9
00145 };
00147
00148
00149
00150
00151
00154
00155
00163 virtual bool getBooleanValue() const = 0;
00164
00174 virtual bool getInvalidIteratorState() const = 0;
00175
00186 virtual double getNumberValue() const = 0;
00187
00195 virtual short getResultType() const = 0;
00196
00204 virtual DOMNode *getSingleNodeValue() const = 0;
00205
00215 virtual unsigned long getSnapshotLength() const = 0;
00216
00224 virtual const XMLCh* getStringValue() const = 0;
00225
00234 virtual DOMNode* iterateNext() const = 0;
00235
00246 virtual DOMNode* snapshotItem(unsigned long index) const = 0;
00247
00249 };
00250
00251 XERCES_CPP_NAMESPACE_END
00252
00253 #endif