SourceForge.net Logo

DOMXPathResult.hpp

Go to the documentation of this file.
00001 #ifndef DOMXPathResult_HEADER_GUARD_
00002 #define DOMXPathResult_HEADER_GUARD_
00003 
00004 /*
00005  * Licensed to the Apache Software Foundation (ASF) under one or more
00006  * contributor license agreements.  See the NOTICE file distributed with
00007  * this work for additional information regarding copyright ownership.
00008  * The ASF licenses this file to You under the Apache License, Version 2.0
00009  * (the "License"); you may not use this file except in compliance with
00010  * the License.  You may obtain a copy of the License at
00011  * 
00012  *      http://www.apache.org/licenses/LICENSE-2.0
00013  * 
00014  * Unless required by applicable law or agreed to in writing, software
00015  * distributed under the License is distributed on an "AS IS" BASIS,
00016  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00017  * See the License for the specific language governing permissions and
00018  * limitations under the License.
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     //  Hidden constructors
00043     // -----------------------------------------------------------------------
00046     DOMXPathResult() {};
00048 
00049 private:
00050     // -----------------------------------------------------------------------
00051     // Unimplemented constructors and operators
00052     // -----------------------------------------------------------------------
00055     DOMXPathResult(const DOMXPathResult &);
00056     DOMXPathResult& operator = (const  DOMXPathResult&);
00058 
00059 public:
00060     // -----------------------------------------------------------------------
00061     //  All constructors are hidden, just the destructor is available
00062     // -----------------------------------------------------------------------
00069     virtual ~DOMXPathResult() {};
00071 
00072     // -----------------------------------------------------------------------
00073     //  Class Types
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     // Virtual DOMDocument interface
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

Generated on Mon Apr 28 16:41:16 2008 for XQilla DOM Level 3 API by  doxygen 1.5.1