#include <misc/formater.hh>
|
| formater () |
|
virtual | ~formater () |
|
bool | has (char c) const |
| Whether c occurred in the primed formats. More...
|
|
void | declare (char c, const printable *f) |
| Declare a callback function for c. More...
|
|
void | set_output (std::ostream &output) |
| Remember where to output any string. More...
|
|
std::ostream & | format (const char *fmt) |
| Expand the %-sequences in fmt, write the result on output_. More...
|
|
std::ostream & | format (std::ostream &output, const char *fmt) |
| Expand the %-sequences in fmt, write the result on output. More...
|
|
std::ostream & | format (const std::string &fmt) |
| Expand the %-sequences in fmt, write the result on output_. More...
|
|
std::ostream & | format (std::ostream &output, const std::string &fmt) |
| Expand the %-sequences in fmt, write the result on output. More...
|
|
|
void | scan (const char *fmt, std::vector< bool > &has) const |
| Scan the %-sequences occuring in fmt. More...
|
|
void | scan (const std::string &fmt, std::vector< bool > &has) const |
|
|
void | prime (const char *fmt) |
|
void | prime (const std::string &fmt) |
|
spot::formater::formater |
( |
) | |
|
|
inline |
virtual spot::formater::~formater |
( |
) | |
|
|
inlinevirtual |
void spot::formater::declare |
( |
char |
c, |
|
|
const printable * |
f |
|
) |
| |
|
inline |
Declare a callback function for c.
References call_.
std::ostream& spot::formater::format |
( |
const char * |
fmt) | |
|
Expand the %-sequences in fmt, write the result on output_.
Referenced by format().
std::ostream& spot::formater::format |
( |
std::ostream & |
output, |
|
|
const char * |
fmt |
|
) |
| |
|
inline |
std::ostream& spot::formater::format |
( |
const std::string & |
fmt) | |
|
|
inline |
Expand the %-sequences in fmt, write the result on output_.
References format().
std::ostream& spot::formater::format |
( |
std::ostream & |
output, |
|
|
const std::string & |
fmt |
|
) |
| |
|
inline |
Expand the %-sequences in fmt, write the result on output.
References format().
bool spot::formater::has |
( |
char |
c) | |
const |
|
inline |
Whether c occurred in the primed formats.
References has_.
Referenced by scan().
void spot::formater::prime |
( |
const char * |
fmt) | |
|
Collect the %-sequences occurring in fmt.
Referenced by prime().
void spot::formater::prime |
( |
const std::string & |
fmt) | |
|
|
inline |
void spot::formater::scan |
( |
const char * |
fmt, |
|
|
std::vector< bool > & |
has |
|
) |
| const |
Scan the %-sequences occuring in fmt.
Set has['c'] for each c in fmt. has must be 256 wide.
Referenced by scan().
void spot::formater::scan |
( |
const std::string & |
fmt, |
|
|
std::vector< bool > & |
has |
|
) |
| const |
|
inline |
void spot::formater::set_output |
( |
std::ostream & |
output) | |
|
|
inline |
Remember where to output any string.
References output_.
Referenced by format().
std::vector<const printable*> spot::formater::call_ |
|
private |
std::vector<bool> spot::formater::has_ |
|
private |
std::ostream* spot::formater::output_ |
|
protected |
The documentation for this class was generated from the following file: