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

rawstreamer.hpp

Go to the documentation of this file.
00001 #if !defined(_RAWSTREAMER_HPP)
00002 #define _RAWSTREAMER_HPP
00003 //============================================================================= 
00004 //
00005 // XDFLengine library
00006 //
00007 //----------------------------------------------------------------------------- 
00008 //  RAWSTREAMER.HPP
00009 //----------------------------------------------------------------------------- 
00015 //_____________________________________________________________________________
00016 //
00017 //  Copyright (C) 2003 Guillaume Baurand. All Rights Reserved.
00018 //
00019 //  This file is part of the XDFLengine project.
00020 //
00021 //  The XDFLengine is free software; you can redistribute it and/or modify
00022 //  it under the terms of the GNU General Public License as published by
00023 //  the Free Software Foundation; either version 2 of the License, or
00024 //  (at your option) any later version.
00025 //
00026 //  This program is distributed in the hope that it will be useful,
00027 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00028 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00029 //  GNU General Public License for more details.
00030 //
00031 //  You should have received a copy of the GNU General Public License
00032 //  along with this program; if not, write to the Free Software
00033 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
00034 //  USA.
00035 //
00036 //  For more information, 
00037 //      contact  : guillaume@baurand.net 
00038 //      or visit : http://xdflengine.sourceforge.net
00039 //
00040 //============================================================================= 
00041 #   include "config/commonincs.hpp"
00042 #   include "processor/xmlstreamerfactory.hpp"
00043 
00044 
00045 BEGIN_XDFLENGINE_NS
00046 
00047 
00048 //============================================================================= 
00049 //  CLASS RAWSTREAMERFACTORY
00050 //----------------------------------------------------------------------------- 
00052 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00053 class XDFLENGINE_EXPORT RawStreamerFactory:public XMLStreamerFactory
00054 {
00055 
00056     public: //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00057 
00058         //_____________________________________________________________________
00059         //  GETSTREAMER
00060         //---------------------------------------------------------------------
00061         XMLStreamer* getStreamer(StreamerParams* p_pParameters, XMLFlowContext* p_pStreamContext, XMLStreamConsumer* p_pStreamConsumer) const;
00062 };
00063 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00064 //=============================================================================
00065 
00066 
00067 
00068 //============================================================================= 
00069 //  CLASS SAXRAWHANDLER
00070 //----------------------------------------------------------------------------- 
00072 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00073 class XDFLENGINE_EXPORT SAXRawHandler : public ContentHandler
00074 {
00075 
00076     private: //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00077     
00078         XMLStreamConsumer*  m_pStreamConsumer;
00079         XMLFlowContext*     m_pContext; // Parsing context
00080 
00081     public: //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00082 
00083     // CONTRUCTOR & DESTRUCTOR
00084 
00085         //_____________________________________________________________________
00086         //  SAXRAWHANDLER
00087         //---------------------------------------------------------------------
00089         //_____________________________________________________________________ 
00090         SAXRawHandler(XMLFlowContext* p_pContext, XMLStreamConsumer*    p_pStreamConsumer);
00091 
00092         //_____________________________________________________________________
00093         //  ~SAXRAWHANDLER
00094         //---------------------------------------------------------------------
00096         //_____________________________________________________________________ 
00097         ~SAXRawHandler();
00098 
00099      
00100     // CONTENTHANDLER ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     
00101         
00102         //____________________________________________________________________
00103         //  CHARACTERS
00104         //--------------------------------------------------------------------
00110         //_____________________________________________________________________ 
00111         void characters(  const XMLCh* const chars,   const unsigned int length);
00112 
00113         // not implemented : 
00114         void startElement(  const XMLCh* const uri,  const XMLCh* const localname,   const XMLCh* const qname, const Attributes& attrs){};
00115         void endElement (  const XMLCh* const uri,   const XMLCh* const localname,   const XMLCh* const qname){};
00116         void startDocument (){};
00117         void endDocument    (){};
00118         void startPrefixMapping ( const XMLCh* const prefix,const XMLCh* const uri){};
00119         void endPrefixMapping ( const XMLCh* const prefix){};
00120         void processingInstruction ( const XMLCh* const target, const XMLCh* const data){};
00121         void ignorableWhitespace ( const XMLCh* const chars, const unsigned int length){};
00122         void setDocumentLocator ( const Locator* const locator) {};
00123         void skippedEntity ( const XMLCh* const name){};
00124 };
00125 
00126 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00127 //=============================================================================
00128 
00129 END_XDFLENGINE_NS
00130 
00131 #endif
00132 

Generated on Sat Oct 4 13:20:01 2003 for XDFLengine by doxygen1.3-rc2