00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 00002 /* libe-book 00003 * Version: MPL 2.0 / LGPLv2.1+ 00004 * 00005 * This Source Code Form is subject to the terms of the Mozilla Public 00006 * License, v. 2.0. If a copy of the MPL was not distributed with this 00007 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 00008 * 00009 * Alternatively, the contents of this file may be used under the terms 00010 * of the GNU Lesser General Public License Version 2.1 or later 00011 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are 00012 * applicable instead of those above. 00013 * 00014 * For further information visit http://libebook.sourceforge.net 00015 */ 00016 00017 #ifndef FB2XMLPARSERCONTEXT_H_INCLUDED 00018 #define FB2XMLPARSERCONTEXT_H_INCLUDED 00019 00020 namespace libebook 00021 { 00022 00023 struct EBOOKToken; 00024 00025 class FB2XMLParserContext 00026 { 00027 public: 00028 virtual ~FB2XMLParserContext() = 0; 00029 00037 virtual FB2XMLParserContext *leaveContext() const = 0; 00038 00043 virtual FB2XMLParserContext *element(const EBOOKToken &name, const EBOOKToken &ns) = 0; 00044 00050 virtual void startOfElement() = 0; 00051 00054 virtual void endOfElement() = 0; 00055 00061 virtual void attribute(const EBOOKToken &name, const EBOOKToken *ns, const char *value) = 0; 00062 00065 virtual void endOfAttributes() = 0; 00066 00072 virtual void text(const char *value) = 0; 00073 }; 00074 00075 } 00076 00077 #endif // FB2XMLPARSERCONTEXT_H_INCLUDED 00078 00079 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */