Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Message::Warning_stream Class Reference

Class defining an ouput for warnings and errors. More...

#include <msg_stream.h>

List of all members.

Public Methods

 Warning_stream (const char *head, const bool fatal=false, std::ostream *const output=&std::cerr)
 Classical constructor.

template<typename T> Warning_stream & operator<< (const T &to_print)
 Classical operator.

Warning_stream & operator<< (Warning_stream &(*f)(Warning_stream &))
 Specialized version for the function pointers.

Warning_stream & operator<< (std::ostream &(*f)(std::ostream &))
virtual ~Warning_stream ()
 Classical destructor.


Warning_stream & done (Warning_stream &w)
 Fonction to notify the end of a message.

Detailed Description

Class defining an ouput for warnings and errors.

Constructor & Destructor Documentation

Message::Warning_stream::Warning_stream const char *    head,
const bool    fatal = false,
std::ostream *const    output = &std::cerr

Classical constructor.

Message::Warning_stream::~Warning_stream   [inline, virtual]

Classical destructor.

Member Function Documentation

Warning_stream & Message::Warning_stream::operator<< std::ostream &(*    f)(std::ostream &) [inline]

Warning_stream & Message::Warning_stream::operator<< Warning_stream &(*    f)(Warning_stream &) [inline]

Specialized version for the function pointers.

template<typename T>
Warning_stream & Message::Warning_stream::operator<< const T &    to_print [inline]

Classical operator.

Friends And Related Function Documentation

Warning_stream& done Warning_stream &    w [friend]

Fonction to notify the end of a message.

A message looks like:

  wout<<"Mon message"<<done;

The documentation for this class was generated from the following file:
Generated on Tue Mar 2 18:12:46 2004 for Graph-cut code by doxygen1.2.18