Developer documentation

mmx::xml Namespace Reference

Namespace for parsing and printing in xml format. More...

Functions

template<class OSTREAM , typename X >
OSTREAM & print (OSTREAM &os, const X &x, const char *tag)
 
template<class ISTREAM >
bool skip (ISTREAM &is, const char *s)
 
template<class ISTREAM , typename C , typename R >
bool read (ISTREAM &is, polynomial< C, R > &p, variables &V)
 Read a polynomial, enclosed in polynomial tags. More...
 
template<class ISTREAM >
bool sread (ISTREAM &is, std::string &s)
 Read a polynomial as a string, enclosed in polynomial tags. More...
 
template<class ISTREAM >
std::string read_tag (ISTREAM &is, const char *tag)
 Read between tag and "<" and build p from this string;. More...
 
template<class ISTREAM , typename T >
bool read_pol (ISTREAM &is, T &p)
 Read a polynomial, enclosed in polynomial tags. More...
 
template<class ISTREAM , typename T , class VAR >
bool read_pol (ISTREAM &is, T &p, const VAR &V)
 Read a polynomial, enclosed in polynomial tags. More...
 
template<class ISTREAM , typename T >
bool read_upol (ISTREAM &is, T &p)
 Read a polynomial, enclosed in polynomial tags. More...
 
template<class ISTREAM , typename C , typename R >
bool read (ISTREAM &is, upoldse< C, R > &p)
 Read a univariate polynomial, enclosed in polynomial tags. More...
 
template<class OSTREAM , typename C , typename R >
OSTREAM & print (OSTREAM &os, const upoldse< C, R > &p)
 Print a univariate polynomial, with its polynomial tags. More...
 

Detailed Description

Namespace for parsing and printing in xml format.

Function Documentation

template<class OSTREAM , typename X >
OSTREAM & mmx::xml::print ( OSTREAM &  os,
const X x,
const char *  tag 
)
template<class OSTREAM , typename C , typename R >
OSTREAM& mmx::xml::print ( OSTREAM &  os,
const upoldse< C, R > &  p 
)

Print a univariate polynomial, with its polynomial tags.

template<class ISTREAM , typename C , typename R >
bool mmx::xml::read ( ISTREAM &  is,
polynomial< C, R > &  p,
variables V 
)

Read a polynomial, enclosed in polynomial tags.

template<class ISTREAM , typename C , typename R >
bool mmx::xml::read ( ISTREAM &  is,
upoldse< C, R > &  p 
)

Read a univariate polynomial, enclosed in polynomial tags.

template<class ISTREAM , typename T >
bool mmx::xml::read_pol ( ISTREAM &  is,
T &  p 
)

Read a polynomial, enclosed in polynomial tags.

template<class ISTREAM , typename T , class VAR >
bool mmx::xml::read_pol ( ISTREAM &  is,
T &  p,
const VAR &  V 
)

Read a polynomial, enclosed in polynomial tags.

template<class ISTREAM >
std::string mmx::xml::read_tag ( ISTREAM &  is,
const char *  tag 
)

Read between tag and "<" and build p from this string;.

template<class ISTREAM , typename T >
bool mmx::xml::read_upol ( ISTREAM &  is,
T &  p 
)

Read a polynomial, enclosed in polynomial tags.

template<class ISTREAM >
bool mmx::xml::skip ( ISTREAM &  is,
const char *  s 
)

Skip the input stream until s is found. It returns true if s is found.

template<class ISTREAM >
bool mmx::xml::sread ( ISTREAM &  is,
std::string &  s 
)

Read a polynomial as a string, enclosed in polynomial tags.

Home