Xerces-C++: DOMUserDataHandler.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 # DOMUserDataHandler.hpp Go to the documentation of this file.
    00001 #ifndef DOMUserDataHandler_HEADER_GUARD_
    00002 #define DOMUserDataHandler_HEADER_GUARD_
    00003
    00004 /*
    00005  * Copyright 2002,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 /*
    00021  * $Id: DOMUserDataHandler.hpp 176026 2004-09-08 13:57:07Z peiyongz $
    00022  */
    00023
    00024 #include <xercesc/util/XercesDefs.hpp>
    00025 #include <xercesc/dom/DOMNode.hpp>
    00026
    00027 XERCES_CPP_NAMESPACE_BEGIN
    00028
    00041 class  DOMUserDataHandler {
    00042 protected:
    00043     // -----------------------------------------------------------------------
    00044     //  Hidden constructors
    00045     // -----------------------------------------------------------------------
    00048     DOMUserDataHandler() {};
    00050
    00051 private:
    00052     // -----------------------------------------------------------------------
    00053     // Unimplemented constructors and operators
    00054     // -----------------------------------------------------------------------
    00057     DOMUserDataHandler(const DOMUserDataHandler &);
    00058     DOMUserDataHandler & operator = (const DOMUserDataHandler &);
    00060
    00061 public:
    00062     // -----------------------------------------------------------------------
    00063     //  All constructors are hidden, just the destructor is available
    00064     // -----------------------------------------------------------------------
    00071     virtual ~DOMUserDataHandler() {};
    00073
    00074     // -----------------------------------------------------------------------
    00075     //  Class Types
    00076     // -----------------------------------------------------------------------
    00098     enum DOMOperationType {
    00099         NODE_CLONED               = 1,
    00100         NODE_IMPORTED             = 2,
    00101         NODE_DELETED              = 3,
    00102         NODE_RENAMED              = 4
    00103     };
    00105
    00106
    00107     // -----------------------------------------------------------------------
    00108     //  Virtual DOMUserDataHandler interface
    00109     // -----------------------------------------------------------------------
    00126     virtual void handle(DOMOperationType operation,
    00127                         const XMLCh* const key,
    00128                         void* data,
    00129                         const DOMNode* src,
    00130                         const DOMNode* dst) = 0;
    00131
    00133
    00134 };
    00135
    00136 XERCES_CPP_NAMESPACE_END
    00137
    00138 #endif
    00139

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