Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

rs::output Namespace Reference

output functions to make stream output more convenient. More...


Functions

void outf (ostream &out, const char *format,...)
 printf-like output to a stream. More...

void printIndented (std::ostream &out, unsigned indent, unsigned border, unsigned width, const std::string &s)
 output with fixed width Print indented (low level). More...

void printIndented (std::ostream &out, unsigned width, const std::string &left, const std::string &right)
 Print indented. More...


Detailed Description

output functions to make stream output more convenient.

Function Documentation

void outf std::ostream &    out,
const char *    format,
...   
 

printf-like output to a stream.

Parameters:
out  output stream
format  printf-like format string
...  arguments according to format

Definition at line 81 of file Tools.cpp.

void printIndented std::ostream &    out,
unsigned    indent,
unsigned    border,
unsigned    width,
const std::string &    s
 

output with fixed width Print indented (low level).

Parameters:
out  output stream
indent  left indentation
border  border at left and right side
width  total width (including indent and border)
s  string to print

Definition at line 103 of file Tools.cpp.

Referenced by printIndented().

void printIndented std::ostream &    out,
unsigned    width,
const std::string &    left,
const std::string &    right
 

Print indented.

Prints left on the left side and right is indented on the right side according to the size of left.

Parameters:
out  output stream
width  total width.
left  string at left side (i.e. "Description:")
right  string at right side (normally something more long)

Definition at line 150 of file Tools.cpp.


Contact me in case of errors or questions.
This documentation is powered by Doxygen.
(C) 2000-2002 Doxygen