|
last update 20 Sep 2009 |
|
#include <cvrStreamProgressInfo.h>


Public Member Functions | |
| streamProgressInfo (const std::string &title="", const int maximumSteps=100) | |
| streamProgressInfo (std::ostream &outStream, const std::string &title="", const int maximumSteps=100) | |
| streamProgressInfo (const streamProgressInfo &other) | |
| virtual | ~streamProgressInfo () |
| virtual void | useStream (std::ostream &stream) |
| void | setEndline (const std::string &endline) |
| virtual void | step (const std::string &progressInfo) |
| virtual void | substep (const int detail, const std::string &info) |
| streamProgressInfo & | copy (const streamProgressInfo &other) |
| streamProgressInfo & | operator= (const streamProgressInfo &other) |
| const std::string & | name () const |
| virtual streamProgressInfo * | clone () const |
| virtual streamProgressInfo * | newInstance () const |
Protected Attributes | |
| std::ostream * | out_ |
| std::string | endline_ |
It dumps the progress information to a std::ostream, or std::cout if you do not give one.
| cvr::streamProgressInfo::streamProgressInfo | ( | const std::string & | title = "", |
|
| const int | maximumSteps = 100 | |||
| ) |
Default constructor.
| title | the name of the progressInfo object | |
| maximumSteps | the maximum number of steps of the process |
| cvr::streamProgressInfo::streamProgressInfo | ( | std::ostream & | outStream, | |
| const std::string & | title = "", |
|||
| const int | maximumSteps = 100 | |||
| ) |
Default constructor.
| outStream | output stream, where the progress information will be written. | |
| title | the name of the progressInfo object | |
| maximumSteps | the maximum number of steps of the process |
| cvr::streamProgressInfo::streamProgressInfo | ( | const streamProgressInfo & | other | ) |
Copy constructor.
| virtual cvr::streamProgressInfo::~streamProgressInfo | ( | ) | [virtual] |
Destructor.
| virtual streamProgressInfo* cvr::streamProgressInfo::clone | ( | ) | const [virtual] |
| streamProgressInfo& cvr::streamProgressInfo::copy | ( | const streamProgressInfo & | other | ) |
The copy member.
| const std::string& cvr::streamProgressInfo::name | ( | ) | const [virtual] |
| virtual streamProgressInfo* cvr::streamProgressInfo::newInstance | ( | ) | const [virtual] |
| streamProgressInfo& cvr::streamProgressInfo::operator= | ( | const streamProgressInfo & | other | ) |
alias for copy
| void cvr::streamProgressInfo::setEndline | ( | const std::string & | endline | ) |
Set the endline string used.
The default is "\n".
| virtual void cvr::streamProgressInfo::step | ( | const std::string & | progressInfo | ) | [virtual] |
Report one step done.
| progressInfo | string with some text information for the step |
Implements cvr::progressInfo.
| virtual void cvr::streamProgressInfo::substep | ( | const int | detail, | |
| const std::string & | info | |||
| ) | [virtual] |
Report additional information for a step, with the given detail level.
The given information will be displayed only if the current detail level is higher or equal than the detail specified in this method.
Implements cvr::progressInfo.
| virtual void cvr::streamProgressInfo::useStream | ( | std::ostream & | stream | ) | [virtual] |
Set a new stream.
The streamProgressInfo keeps a pointer to the stream.
std::string cvr::streamProgressInfo::endline_ [protected] |
The sequence that is used for end-of-line when emitting steps.
std::ostream* cvr::streamProgressInfo::out_ [protected] |
Stream being used.