xml_xerces_stream.hh

Go to the documentation of this file.
00001 // xml_xerces_stream.hh: this file is part of the Vaucanson project.
00002 //
00003 // Vaucanson, a generic library for finite state machines.
00004 //
00005 // Copyright (C) 2007 The Vaucanson Group.
00006 //
00007 // This program is free software; you can redistribute it and/or
00008 // modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 2
00010 // of the License, or (at your option) any later version.
00011 //
00012 // The complete GNU General Public Licence Notice can be found as the
00013 // `COPYING' file in the root directory.
00014 //
00015 // The Vaucanson Group consists of people listed in the `AUTHORS' file.
00016 //
00017 #ifndef VCSN_XML_XERCES_STREAM_HH
00018 # define VCSN_XML_XERCES_STREAM_HH
00019 
00029 # include <ostream>
00030 # include <xercesc/framework/XMLFormatter.hpp>
00031 
00032 XERCES_CPP_NAMESPACE_BEGIN
00033 
00034 template<class Ostream>
00035 class XMLPARSER_EXPORT XMLXercesStream : public XMLFormatTarget
00036 {
00037   public:
00038 
00041     XMLXercesStream(std::ostream& os) : os_(os) {};
00042     ~XMLXercesStream() {};
00044 
00048     virtual void writeChars (const XMLByte* const toWrite,
00049                              const unsigned int,
00050                              XMLFormatter* const);
00051 
00052     virtual void flush() {};
00053 
00054   private:
00058     XMLXercesStream(const XMLXercesStream&);
00059     XMLXercesStream& operator=(const XMLXercesStream&);
00060 
00061     Ostream&    os_;
00062 };
00063 
00064 XERCES_CPP_NAMESPACE_END
00065 
00066 # if !defined VCSN_USE_INTERFACE_ONLY || defined VCSN_USE_LIB
00067 #  include <vaucanson/xml/xml_xerces_stream.hxx>
00068 # endif // !VCSN_USE_INTERFACE_ONLY || VCSN_USE_LIB
00069 
00070 #endif // ! VCSN_XML_XERCES_STREAM_HH

Generated on Sun Jul 29 19:35:31 2007 for Vaucanson by  doxygen 1.5.2