XML.hh

Go to the documentation of this file.
00001 // XML.hh: this file is part of the Vaucanson project.
00002 //
00003 // Vaucanson, a generic library for finite state machines.
00004 //
00005 // Copyright (C) 2005, 2006 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 
00018 #ifndef VCSN_XML_XML_HH
00019 # define VCSN_XML_XML_HH
00020 
00021 # include <string>
00022 # include <iostream>
00023 
00034 namespace vcsn
00035 {
00036   namespace xml
00037   {
00038     class XML
00039     {
00040       public:
00041         XML(const std::string& name = "", bool use_label_node = false);
00042         XML(const XML& old);
00043         ~XML();
00044 
00045         void
00046         check(bool check);
00047 
00049         template <typename Saver, typename Conv>
00050         void operator()(std::ostream& out,
00051                         const Saver& s,
00052                         const Conv& conv) const;
00053 
00054 
00056         template <typename Loader>
00057         void operator()(std::istream& in, Loader& l);
00058 
00059         static int inst_;
00060       protected:
00061         const   std::string name_;
00062         bool    use_label_node_;
00063         bool    check_;
00064     };
00065   } // !xml
00066 } // !vcsn
00067 
00068 # if !defined VCSN_USE_INTERFACE_ONLY || defined VCSN_USE_LIB
00069 #  include <vaucanson/xml/XML.hxx>
00070 # endif // VCSN_USE_INTERFACE_ONLY
00071 
00072 #endif // ! VCSN_XML_XML_HH

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