class Gambit::table_formatter
[No description available]
Public Functions
Name | |
---|---|
template <typename… T> | table_formatter(const T &… params) |
template <typename… T> void | new_titles(const T &… in) |
template <typename… T> void | default_widths(const T &… in) |
template <typename… T> void | min_widths(const T &… in) |
void | padding(int p) |
void | wrap_around(bool b) |
void | top_line(bool b) |
void | bottom_line(bool b) |
void | capitalize_title(int i) |
void | capitalize_title() |
int | rows() const |
int | cols() const |
int | row_pos() const |
int | col_pos() const |
table_formatter & | new_row(int n =1) |
template <typename T > table_formatter & | operator«(const T & in) |
table_formatter & | reset_pt_flag(const unsigned char flag, int i, int j) |
table_formatter & | reset_row_flag(const unsigned char flag, int i) |
table_formatter & | reset_col_flag(const unsigned char flag, int i) |
table_formatter & | set_pt_flag(const unsigned char flag, int i, int j) |
table_formatter & | set_row_flag(const unsigned char flag, int i) |
table_formatter & | set_col_flag(const unsigned char flag, int i) |
table_formatter & | reset(int i =-1, int j =-1) |
table_formatter & | red(int i =-1, int j =-1) |
table_formatter & | green(int i =-1, int j =-1) |
table_formatter & | yellow(int i =-1, int j =-1) |
table_formatter & | bold(int i =-1, int j =-1) |
table_formatter & | underline(int i =-1, int j =-1) |
table_formatter & | right_justify(int j =-1) |
table_formatter & | center_justify(int j =-1) |
table_formatter & | left_justify(int j =-1) |
table_formatter & | no_newline(int j =-1) |
table_formatter & | newline(int j =-1) |
std::vector< std::string > & | operator[](int i) |
std::string | str() |
Public Attributes
Name | |
---|---|
const unsigned char | RESET |
const unsigned char | RED |
const unsigned char | GREEN |
const unsigned char | YELLOW |
const unsigned char | COLOR |
const unsigned char | BOLD |
const unsigned char | JUST_RIGHT |
const unsigned char | JUST_CENTER |
const unsigned char | JUST |
const unsigned char | UNDERLINE |
const unsigned char | WRAP |
Public Functions Documentation
function table_formatter
template <typename... T>
inline table_formatter(
const T &... params
)
function new_titles
template <typename... T>
inline void new_titles(
const T &... in
)
function default_widths
template <typename... T>
inline void default_widths(
const T &... in
)
function min_widths
template <typename... T>
inline void min_widths(
const T &... in
)
function padding
inline void padding(
int p
)
function wrap_around
inline void wrap_around(
bool b
)
function top_line
inline void top_line(
bool b
)
function bottom_line
inline void bottom_line(
bool b
)
function capitalize_title
inline void capitalize_title(
int i
)
function capitalize_title
inline void capitalize_title()
function rows
inline int rows() const
function cols
inline int cols() const
function row_pos
inline int row_pos() const
function col_pos
inline int col_pos() const
function new_row
inline table_formatter & new_row(
int n =1
)
function operator«
template <typename T >
inline table_formatter & operator<<(
const T & in
)
function reset_pt_flag
inline table_formatter & reset_pt_flag(
const unsigned char flag,
int i,
int j
)
function reset_row_flag
inline table_formatter & reset_row_flag(
const unsigned char flag,
int i
)
function reset_col_flag
inline table_formatter & reset_col_flag(
const unsigned char flag,
int i
)
function set_pt_flag
inline table_formatter & set_pt_flag(
const unsigned char flag,
int i,
int j
)
function set_row_flag
inline table_formatter & set_row_flag(
const unsigned char flag,
int i
)
function set_col_flag
inline table_formatter & set_col_flag(
const unsigned char flag,
int i
)
function reset
inline table_formatter & reset(
int i =-1,
int j =-1
)
function red
inline table_formatter & red(
int i =-1,
int j =-1
)
function green
inline table_formatter & green(
int i =-1,
int j =-1
)
function yellow
inline table_formatter & yellow(
int i =-1,
int j =-1
)
function bold
inline table_formatter & bold(
int i =-1,
int j =-1
)
function underline
inline table_formatter & underline(
int i =-1,
int j =-1
)
function right_justify
inline table_formatter & right_justify(
int j =-1
)
function center_justify
inline table_formatter & center_justify(
int j =-1
)
function left_justify
inline table_formatter & left_justify(
int j =-1
)
function no_newline
inline table_formatter & no_newline(
int j =-1
)
function newline
inline table_formatter & newline(
int j =-1
)
function operator[]
inline std::vector< std::string > & operator[](
int i
)
function str
std::string str()
Public Attributes Documentation
variable RESET
static const unsigned char RESET = 0x00;
variable RED
static const unsigned char RED = 0x01;
variable GREEN
static const unsigned char GREEN = 0x02;
variable YELLOW
static const unsigned char YELLOW = 0x04;
variable COLOR
static const unsigned char COLOR = 0x07;
variable BOLD
static const unsigned char BOLD = 0x80;
variable JUST_RIGHT
static const unsigned char JUST_RIGHT = 0x10;
variable JUST_CENTER
static const unsigned char JUST_CENTER = 0x20;
variable JUST
static const unsigned char JUST = 0x30;
variable UNDERLINE
static const unsigned char UNDERLINE = 0x40;
variable WRAP
static const unsigned char WRAP = 0x80;
Updated on 2024-07-18 at 13:53:30 +0000