xmlio.hpp

00001 // This file is part of the imaging2 class library.
00002 //
00003 // University of Innsbruck, Infmath Imaging, 2009.
00004 // http://infmath.uibk.ac.at
00005 //
00006 // All rights reserved.
00007 
00008 
00009 #ifndef CORE_XMLIO_H
00010 #define CORE_XMLIO_H
00011 
00012 #include <xml/XmlReader.hpp>
00013 #include <xml/XmlWriter.hpp>
00014 
00015 namespace imaging
00016 { 
00020   template<>
00021   class xml_handler< ublas::matrix<float_t> >
00022   {
00023   public:
00024     static const std::string element_name;
00025     
00026     void read_object(XmlReader & in, ublas::matrix<float_t> & object) const;
00027     
00028     void write_object(const ublas::matrix<float_t> & object, XmlWriter & out) const;
00029   }; 
00030   
00034   template<>
00035   class xml_handler<ublas::vector<float_t> >
00036   {
00037   public:
00038     static const std::string element_name;
00039     
00040     void read_object(XmlReader & in, ublas::vector<float_t> & object) const;
00041     
00042     void write_object(const ublas::vector<float_t> & object, XmlWriter & out) const;
00043   }; 
00044 }
00045 
00046 
00047 #endif

Generated on Tue Feb 10 10:01:29 2009 for imaging2 by  doxygen 1.5.5