|
typedef drain::EnumFlagger< drain::SingleFlagger< TextStyle::Colour > > | ColourFlag |
|
typedef drain::EnumFlagger< drain::MultiFlagger< TextStyle::Style > > | StyleFlags |
|
typedef drain::EnumFlagger< drain::SingleFlagger< TextStyle::Line > > | LineFlag |
|
| TextDecorator (const TextDecorator &deco) |
|
std::ostream & | begin (std::ostream &ostr) const |
|
std::ostream & | begin (std::ostream &ostr, const std::string &conf) |
|
std::ostream & | end (std::ostream &ostr) const |
|
void | setSeparator (const std::string &separator) |
|
void | reset () |
|
template<typename T , typename ... TT> |
void | set (T arg, const TT &... args) |
|
template<typename ... TT> |
void | add (const std::string &keys, const TT &... args) |
| Sets given keys. More...
|
|
template<typename ... TT> |
void | add (const char *keys, const TT &... args) |
| Second case of strings...
|
|
template<typename ... TT> |
void | add (char *keys, const TT &... args) |
| Third case of strings...
|
|
template<typename T , typename ... TT> |
void | add (T arg, const TT &... args) |
| Adds several keys.
|
|
void | add (TextStyle::Colour c) |
| Change the current color setting.
|
|
void | add (TextStyle::Line l) |
| Change the current line setting.
|
|
void | add (TextStyle::Style s) |
| Change the current current style setting.
|
|
void | debug (std::ostream &ostr) const |
|
ColourFlag | color |
| Read input stream until any char in endChars is encountered. The end char will not be included, but passed in input stream.
|
|
StyleFlags | style |
|
LineFlag | line |
|
std::string | separator |
|
std::ostream & _begin |
( |
std::ostream & |
ostr | ) |
const |
|
protectedvirtual |
Export style to VT100 numeric codes.
First, extract style enums from the current flags (integer).
- Template Parameters
-
Not: TextStyle::Style, TextStyle::Line
Reimplemented from TextDecorator.