00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one or more 00003 * contributor license agreements. See the NOTICE file distributed with 00004 * this work for additional information regarding copyright ownership. 00005 * The ASF licenses this file to You under the Apache License, Version 2.0 00006 * (the "License"); you may not use this file except in compliance with 00007 * the License. You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 00018 /* 00019 * $Id: PSVIHandler.hpp 568078 2007-08-21 11:43:25Z amassari $ 00020 */ 00021 00022 00023 #if !defined(PSVIHANDLER_HPP) 00024 #define PSVIHANDLER_HPP 00025 00026 #include <xercesc/framework/psvi/PSVIElement.hpp> 00027 #include <xercesc/framework/psvi/PSVIAttributeList.hpp> 00028 00029 XERCES_CPP_NAMESPACE_BEGIN 00030 00031 00037 class XMLPARSER_EXPORT PSVIHandler 00038 { 00039 public: 00040 // ----------------------------------------------------------------------- 00041 // Constructors are hidden, just the virtual destructor is exposed 00042 // ----------------------------------------------------------------------- 00045 virtual ~PSVIHandler() 00046 { 00047 } 00049 00062 virtual void handleElementPSVI 00063 ( 00064 const XMLCh* const localName 00065 , const XMLCh* const uri 00066 , PSVIElement * elementInfo 00067 ) = 0; 00068 00091 virtual void handlePartialElementPSVI 00092 ( 00093 const XMLCh* const localName 00094 , const XMLCh* const uri 00095 , PSVIElement * elementInfo 00096 ); 00097 00109 virtual void handleAttributesPSVI 00110 ( 00111 const XMLCh* const localName 00112 , const XMLCh* const uri 00113 , PSVIAttributeList * psviAttributes 00114 ) = 0; 00115 00116 00118 00119 00120 00121 protected : 00122 // ----------------------------------------------------------------------- 00123 // Hidden Constructors 00124 // ----------------------------------------------------------------------- 00125 PSVIHandler() 00126 { 00127 } 00128 00129 00130 private: 00131 // ----------------------------------------------------------------------- 00132 // Unimplemented constructors and operators 00133 // ----------------------------------------------------------------------- 00134 PSVIHandler(const PSVIHandler&); 00135 PSVIHandler& operator=(const PSVIHandler&); 00136 }; 00137 00138 inline void PSVIHandler::handlePartialElementPSVI(const XMLCh* const /*localName*/ 00139 , const XMLCh* const /*uri*/ 00140 , PSVIElement * /*elementInfo*/ 00141 ) 00142 { 00143 } 00144 00145 XERCES_CPP_NAMESPACE_END 00146 00147 #endif
1.5.4