synaps/mpol/xml.h

00001 /*********************************************************************
00002 *    This file is part of the source code of SYNAPS library.         *
00003 *    Author(s): B. Mourrain, GALAAD, INRIA                           *
00004 **********************************************************************
00005 History: $Id: xml.h,v 1.1 2005/07/11 09:32:55 mourrain Exp $
00006 **********************************************************************/
00007 #ifndef synaps_mpol_xml_H_
00008 #define synaps_mpol_xml_H_
00009 //--------------------------------------------------------------------
00010 #include <synaps/base/xml.h>
00011 //--------------------------------------------------------------------
00012 __BEGIN_NAMESPACE_SYNAPS
00013 //--------------------------------------------------------------------
00014 template<typename C,typename O,typename R> struct MPol;
00015 namespace xml {
00016 
00018   template<class ISTREAM, typename C, typename O, typename R>
00019   bool read(ISTREAM& is, MPol<C,O,R>& p)
00020   {
00021     return read_pol(is,p);
00022   }
00023 
00024 
00026   template<class ISTREAM, typename C, typename O, typename R, typename VAR>
00027   bool read(ISTREAM& is, MPol<C,O,R>& p, const VAR& V)
00028   {
00029     return read_pol(is,p,V);
00030   }
00031 
00033   template<class OSTREAM, typename C,typename O,typename R>
00034   OSTREAM& print(OSTREAM& os, const MPol<C,O,R>& p)
00035   {
00036     xml::print(os,p,"polynomial");
00037     return os;
00038   }
00039 
00040 }
00041 //----------------------------------------------------------------------
00042 __END_NAMESPACE_SYNAPS
00043 //----------------------------------------------------------------------
00044 #endif //synaps_mpol_xml_H_

SYNAPS DOCUMENTATION
logo