FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
format_table.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  table_text_attr_t
 
struct  table_cell_t
 
struct  table_t
 

Enumerations

enum  table_text_attr_flags_t {
  TTAF_RESET = (1 << 0), TTAF_BOLD = (1 << 1), TTAF_DIM = (1 << 2), TTAF_UNDERLINE = (1 << 3),
  TTAF_FG_COLOR_SET = (1 << 4), TTAF_BG_COLOR_SET = (1 << 5), TTAF_FG_COLOR_BRIGHT = (1 << 6), TTAF_BG_COLOR_BRIGHT = (1 << 7)
}
 
enum  table_text_attr_color_t {
  TTAC_BLACK = 0, TTAC_RED = 1, TTAC_GREEN = 2, TTAC_YELLOW = 3,
  TTAC_BLUE = 4, TTAC_MAGENTA = 5, TTAC_CYAN = 6, TTAC_WHITE = 7
}
 
enum  table_text_attr_align_t { TTAA_DEFAULT = 0, TTAA_LEFT = 1, TTAA_RIGHT = 2, TTAA_CENTER = 3 }
 

Functions

__clib_export void table_format_title (table_t *t, char *fmt,...)
 
__clib_export void table_format_cell (table_t *t, int c, int r, char *fmt,...)
 
__clib_export void table_set_cell_align (table_t *t, int c, int r, table_text_attr_align_t a)
 
__clib_export void table_set_cell_fg_color (table_t *t, int c, int r, table_text_attr_color_t v)
 
__clib_export void table_set_cell_bg_color (table_t *t, int c, int r, table_text_attr_color_t v)
 
__clib_export void table_free (table_t *t)
 
__clib_export void table_add_header_col (table_t *t, int n_strings,...)
 
__clib_export void table_add_header_row (table_t *t, int n_strings,...)
 

Variables

__clib_export format_function_t format_table
 

Enumeration Type Documentation

◆ table_text_attr_align_t

Enumerator
TTAA_DEFAULT 
TTAA_LEFT 
TTAA_RIGHT 
TTAA_CENTER 

Definition at line 51 of file format_table.h.

◆ table_text_attr_color_t

Enumerator
TTAC_BLACK 
TTAC_RED 
TTAC_GREEN 
TTAC_YELLOW 
TTAC_BLUE 
TTAC_MAGENTA 
TTAC_CYAN 
TTAC_WHITE 

Definition at line 39 of file format_table.h.

◆ table_text_attr_flags_t

Enumerator
TTAF_RESET 
TTAF_BOLD 
TTAF_DIM 
TTAF_UNDERLINE 
TTAF_FG_COLOR_SET 
TTAF_BG_COLOR_SET 
TTAF_FG_COLOR_BRIGHT 
TTAF_BG_COLOR_BRIGHT 

Definition at line 27 of file format_table.h.

Function Documentation

◆ table_add_header_col()

__clib_export void table_add_header_col ( table_t t,
int  n_strings,
  ... 
)

Definition at line 247 of file format_table.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ table_add_header_row()

__clib_export void table_add_header_row ( table_t t,
int  n_strings,
  ... 
)

Definition at line 269 of file format_table.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ table_format_cell()

__clib_export void table_format_cell ( table_t t,
int  c,
int  r,
char *  fmt,
  ... 
)

Definition at line 192 of file format_table.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ table_format_title()

__clib_export void table_format_title ( table_t t,
char *  fmt,
  ... 
)

Definition at line 169 of file format_table.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ table_free()

__clib_export void table_free ( table_t t)

Definition at line 232 of file format_table.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ table_set_cell_align()

__clib_export void table_set_cell_align ( table_t t,
int  c,
int  r,
table_text_attr_align_t  a 
)

Definition at line 209 of file format_table.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ table_set_cell_bg_color()

__clib_export void table_set_cell_bg_color ( table_t t,
int  c,
int  r,
table_text_attr_color_t  v 
)

Definition at line 224 of file format_table.c.

+ Here is the call graph for this function:

◆ table_set_cell_fg_color()

__clib_export void table_set_cell_fg_color ( table_t t,
int  c,
int  r,
table_text_attr_color_t  v 
)

Definition at line 216 of file format_table.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ format_table

__clib_export format_function_t format_table

Definition at line 95 of file format_table.h.