FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
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

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

Variables

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 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 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 table.h.

Function Documentation

◆ table_add_header_col()

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

Definition at line 236 of file table.c.

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

◆ table_add_header_row()

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

Definition at line 258 of file table.c.

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

◆ table_format_cell()

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

Definition at line 181 of file table.c.

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

◆ table_format_title()

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

Definition at line 158 of file table.c.

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

◆ table_free()

void table_free ( table_t t)

Definition at line 221 of file table.c.

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

◆ table_set_cell_align()

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

Definition at line 198 of file table.c.

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

◆ table_set_cell_bg_color()

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

Definition at line 213 of file table.c.

+ Here is the call graph for this function:

◆ table_set_cell_fg_color()

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

Definition at line 205 of file table.c.

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

Variable Documentation

◆ format_table

format_function_t format_table

Definition at line 84 of file table.h.