spot 2.14.5
Loading...
Searching...
No Matches
spot::formater Class Reference
Inheritance diagram for spot::formater:
Collaboration diagram for spot::formater:

Public Member Functions

bool has (char c) const
 Whether c occurred in the primed formats.
void declare (char c, const printable *f)
 Declare a callback function for c.
void set_output (std::ostream &output)
 Remember where to output any string.
std::ostream & format (const char *fmt)
 Expand the %-sequences in fmt, write the result on output_.
std::ostream & format (std::ostream &output, const char *fmt)
 Expand the %-sequences in fmt, write the result on output.
std::ostream & format (const std::string &fmt)
 Expand the %-sequences in fmt, write the result on output_.
std::ostream & format (std::ostream &output, const std::string &fmt)
 Expand the %-sequences in fmt, write the result on output.
void scan (const char *fmt, std::vector< bool > &has) const
 Scan the %-sequences occurring in fmt.
void scan (const std::string &fmt, std::vector< bool > &has) const
 Scan the %-sequences occurring in fmt.
void prime (const char *fmt)
void prime (const std::string &fmt)

Protected Attributes

std::ostream * output_

Member Function Documentation

◆ declare()

void spot::formater::declare ( char c,
const printable * f )
inline

Declare a callback function for c.

◆ format() [1/4]

std::ostream & spot::formater::format ( const char * fmt)

Expand the %-sequences in fmt, write the result on output_.

Referenced by format(), format(), and format().

◆ format() [2/4]

std::ostream & spot::formater::format ( const std::string & fmt)
inline

Expand the %-sequences in fmt, write the result on output_.

References format().

◆ format() [3/4]

std::ostream & spot::formater::format ( std::ostream & output,
const char * fmt )
inline

Expand the %-sequences in fmt, write the result on output.

References format(), and set_output().

◆ format() [4/4]

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().

◆ has()

bool spot::formater::has ( char c) const
inline

Whether c occurred in the primed formats.

Referenced by scan(), and scan().

◆ prime() [1/2]

void spot::formater::prime ( const char * fmt)

Collect the %-sequences occurring in fmt.

Referenced by prime().

◆ prime() [2/2]

void spot::formater::prime ( const std::string & fmt)
inline

Collect the %-sequences occurring in fmt.

References prime().

◆ scan() [1/2]

void spot::formater::scan ( const char * fmt,
std::vector< bool > & has ) const

Scan the %-sequences occurring in fmt.

Set has['c'] for each c in fmt. has must be 256 wide.

References has().

Referenced by scan().

◆ scan() [2/2]

void spot::formater::scan ( const std::string & fmt,
std::vector< bool > & has ) const
inline

Scan the %-sequences occurring in fmt.

Set has['c'] for each c in fmt. has must be 256 wide.

References has(), and scan().

◆ set_output()

void spot::formater::set_output ( std::ostream & output)
inline

Remember where to output any string.

Referenced by format().


The documentation for this class was generated from the following file:

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on for spot by doxygen 1.15.0