![]() |
|


Public Types | |
| typedef std::map< drain::TextStyle::Colour, int > | color_codemap_t |
| typedef std::map< drain::TextStyle::Style, int > | style_codemap_t |
| typedef std::map< drain::TextStyle::Line, int > | line_codemap_t |
Public Types inherited from TextStyle | |
| enum | Colour { DEFAULT_COLOR =0 , BLACK , GRAY , RED , GREEN , YELLOW , BLUE , PURPLE , CYAN , WHITE } |
| enum | Style { NO_STYLE =0 , ITALIC =1 , BOLD =2 , DIM =4 , REVERSE =8 } |
| enum | Line { NO_LINE =0 , UNDERLINE =1 , DOUBLE_UNDERLINE =2 , OVERLINE =4 } |
Public Member Functions | |
| template<typename ... T> | |
| TextStyleVT100 (const T &... args) | |
| template<typename ... TT> | |
| void | write (std::ostream &ostr, const TT &... args) const |
| virtual void | startWrite (std::ostream &ostr) const |
| virtual void | endWrite (std::ostream &ostr) const |
| template<typename ... TT> | |
| void | append (std::ostream &ostr, const TT &... args) const |
| template<> | |
| const std::map< TextStyle::Colour, int > & | getCodeMap () |
| template<> | |
| const std::map< TextStyle::Style, int > & | getCodeMap () |
| template<> | |
| const std::map< TextStyle::Line, int > & | getCodeMap () |
| template<> | |
| const std::map< TextStyle::Colour, int > & | getCodeMap () |
| template<> | |
| const std::map< TextStyle::Line, int > & | getCodeMap () |
| template<> | |
| const std::map< TextStyle::Style, int > & | getCodeMap () |
Public Member Functions inherited from TextStyle | |
| template<typename ... T> | |
| void | set (const T &... args) |
| template<typename T , typename ... TT> | |
| void | add (const T &arg, const TT &... args) |
Static Public Attributes | |
| static const color_codemap_t | color_codemap |
| static const style_codemap_t | style_codemap |
| static const line_codemap_t | line_codemap |
Protected Member Functions | |
| template<typename T , typename ... TT> | |
| void | _append (std::ostream &ostr, bool init, const T &arg, const TT &... args) const |
| template<typename ... TT> | |
| void | _append (std::ostream &ostr, bool start, const Colour &colour, const TT &... args) const |
| template<typename ... TT> | |
| void | _append (std::ostream &ostr, bool start, const Line &line, const TT &... args) const |
| template<typename ... TT> | |
| void | _append (std::ostream &ostr, bool start, const Style &style, const TT &... args) const |
| void | _append (std::ostream &ostr, bool init) const |
| virtual void | _appendControlPrefix (std::ostream &ostr, bool start) const |
| virtual void | _appendControlSuffix (std::ostream &ostr) const |
Protected Member Functions inherited from TextStyle | |
| void | reset () |
| void | set () |
| void | add () |
| void | _add (const Colour &c) |
| void | _add (const Line &l) |
| void | _add (const Style &s) |
Additional Inherited Members | |
Public Attributes inherited from TextStyle | |
| Colour | colour |
| std::set< Style > | style |
| Line | line |
|
inlineprotected |
Default implemenation for normal input elements. For control elements, see following specializations.
1.9.8