Xerces-C++: DOMXPathResult.hpp Source File

| API Docs for SAX and DOM |
| Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages # DOMXPathResult.hpp Go to the documentation of this file.
    00001 #ifndef DOMXPathResult_HEADER_GUARD_
    00002 #define DOMXPathResult_HEADER_GUARD_
    00003
    00004 /*
    00005  * Copyright 2001-2004 The Apache Software Foundation.
    00006  *
    00007  * Licensed under the Apache License, Version 2.0 (the "License");
    00008  * you may not use this file except in compliance with the License.
    00009  * You may obtain a copy of the License at
    00010  *
    00011  *      http://www.apache.org/licenses/LICENSE-2.0
    00012  *
    00013  * Unless required by applicable law or agreed to in writing, software
    00014  * distributed under the License is distributed on an "AS IS" BASIS,
    00015  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00016  * See the License for the specific language governing permissions and
    00017  * limitations under the License.
    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     //  Hidden constructors
    00042     // -----------------------------------------------------------------------
    00045     DOMXPathResult() {};
    00047
    00048 private:
    00049     // -----------------------------------------------------------------------
    00050     // Unimplemented constructors and operators
    00051     // -----------------------------------------------------------------------
    00054     DOMXPathResult(const DOMXPathResult &);
    00055     DOMXPathResult& operator = (const  DOMXPathResult&);
    00057
    00058 public:
    00059     // -----------------------------------------------------------------------
    00060     //  All constructors are hidden, just the destructor is available
    00061     // -----------------------------------------------------------------------
    00068     virtual ~DOMXPathResult() {};
    00070
    00071     // -----------------------------------------------------------------------
    00072     //  Class Types
    00073     // -----------------------------------------------------------------------
    00135     enum resultType {
    00136                 ANY_TYPE = 0,
    00137                 NUMBER_TYPE = 1,
    00138                 STRING_TYPE = 2,
    00139                 BOOLEAN_TYPE = 3,
    00140                 UNORDERED_NODE_ITERATOR_TYPE = 4,
    00141                 ORDERED_NODE_ITERATOR_TYPE = 5,
    00142                 UNORDERED_NODE_SNAPSHOT_TYPE = 6,
    00143                 ORDERED_NODE_SNAPSHOT_TYPE = 7,
    00144                 ANY_UNORDERED_NODE_TYPE = 8,
    00145                 FIRST_ORDERED_NODE_TYPE = 9
    00146     };
    00148
    00149
    00150     // -----------------------------------------------------------------------
    00151     // Virtual DOMDocument interface
    00152     // -----------------------------------------------------------------------
    00155
    00156
    00164     virtual bool getBooleanValue() const = 0;
    00165
    00175     virtual bool getInvalidIteratorState() const = 0;
    00176
    00187     virtual double getNumberValue() const = 0;
    00188
    00196     virtual short getResultType() const = 0;
    00197
    00205     virtual DOMNode *getSingleNodeValue() const = 0;
    00206
    00216     virtual unsigned long getSnapshotLength() const = 0;
    00217
    00225     virtual const XMLCh* getStringValue() const = 0;
    00226
    00235     virtual DOMNode* iterateNext() const = 0;
    00236
    00247     virtual DOMNode* snapshotItem(unsigned long index) const = 0;
    00248
    00250 };
    00251
    00252 XERCES_CPP_NAMESPACE_END
    00253
    00254 #endif

Copyright © 1994-2004 The Apache Software Foundation. All Rights Reserved.