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 POLYTOPE_XMLIO_H
00010 #define POLYTOPE_XMLIO_H
00011 
00012 #include <xml/XmlReader.hpp>
00013 #include <xml/XmlWriter.hpp>
00014 #include <polytope/Polygon.hpp>
00015 #include <polytope/SimplePolygon.hpp>
00016 
00017 namespace imaging
00018 {
00022   template<>
00023   class xml_handler<Polygon>
00024   {
00025   public:
00027     static const std::string element_name;
00028     
00029     void read_object(XmlReader & in, Polygon & object) const;
00030     
00031     void write_object(const Polygon & object, XmlWriter & out) const;
00033   }; 
00034   
00038   template<>
00039   class xml_handler<SimplePolygon>
00040   {
00041   public:
00043     static const std::string element_name;
00044     
00045     void read_object(XmlReader & in, SimplePolygon & object) const;
00046     
00047     void write_object(const SimplePolygon & object, XmlWriter & out) const;
00049   }; 
00050 }
00051 
00052 
00053 #endif

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