libqi-api  2.8.7.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
qi::detail::PrettyPrintStream::Column Struct Reference

Contains the data and options needed to fill and format one column of a line. More...

#include <print.hpp>

Public Types

enum  Alignment { Alignment::Left = 0, Alignment::Right = 1, Alignment::Internal = 2 }
 
enum  Option { Option::DelimitWithSpace = 1 << 0 }
 
using ValueType = boost::variant< int, std::string >
 
using Options = qi::Flags< Option >
 

Public Member Functions

 Column (ValueType value, StreamColor color=StreamColor_None, Alignment alignment=Alignment::Left, Options opts=Options{Option::DelimitWithSpace}, int width=0, char fillChar= ' ')
 
 Column ()
 

Public Attributes

ValueType value
 
StreamColor color
 
Alignment alignment
 
Options opts
 
int width
 
char fillChar
 

Detailed Description

Contains the data and options needed to fill and format one column of a line.

Definition at line 100 of file print.hpp.

Member Typedef Documentation

Definition at line 113 of file print.hpp.

using qi::detail::PrettyPrintStream::Column::ValueType = boost::variant<int, std::string>

Definition at line 102 of file print.hpp.

Member Enumeration Documentation

Enumerator
Left 
Right 
Internal 

Definition at line 103 of file print.hpp.

Enumerator
DelimitWithSpace 

Definition at line 109 of file print.hpp.

Constructor & Destructor Documentation

qi::detail::PrettyPrintStream::Column::Column ( ValueType  value,
StreamColor  color = StreamColor_None,
Alignment  alignment = Alignment::Left,
Options  opts = Options{Option::DelimitWithSpace},
int  width = 0,
char  fillChar = ' ' 
)
explicit
qi::detail::PrettyPrintStream::Column::Column ( )
inline

Definition at line 123 of file print.hpp.

Member Data Documentation

Alignment qi::detail::PrettyPrintStream::Column::alignment

Definition at line 135 of file print.hpp.

StreamColor qi::detail::PrettyPrintStream::Column::color

Definition at line 134 of file print.hpp.

char qi::detail::PrettyPrintStream::Column::fillChar

Definition at line 138 of file print.hpp.

Options qi::detail::PrettyPrintStream::Column::opts

Definition at line 136 of file print.hpp.

ValueType qi::detail::PrettyPrintStream::Column::value

Definition at line 133 of file print.hpp.

int qi::detail::PrettyPrintStream::Column::width

Definition at line 137 of file print.hpp.


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