StatusPrint Class Reference
A tool for printing running status on command line. More...
#include <statusprint.hpp>
Public Member Functions | |
| StatusPrint () | |
| Constructor for printing status to stream os. More... | |
| ~StatusPrint () | |
| Destructor. More... | |
| void | print (const std::string &str, bool force=false) |
| Print str to output. More... | |
Detailed Description
A tool for printing running status on command line.
Constructor & Destructor Documentation
| StatusPrint::StatusPrint | ( | ) |
Constructor for printing status to stream os.
| StatusPrint::~StatusPrint | ( | ) |
Destructor.
Member Function Documentation
| void StatusPrint::print | ( | const std::string & | str, |
| bool | force = false |
||
| ) |
Print str to output.
Printing is only done is time returned by system time() has changed. This enforces a maximum update frequency of 1 update per second. If force is true the printing is done regardless of time.
The documentation for this class was generated from the following files: