http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Home

Readme
Release Info

Installation
Download
Build

FAQs
Samples
API Docs

DOM C++ Binding
Programming
Migration Guide

Feedback
Bug-Reporting
PDF Document

CVS Repository
Mail Archive

API Docs for SAX and DOM
 

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

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     // -----------------------------------------------------------------------
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     // Virtual DOMDocument interface
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


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