nemea-common 1.6.3
|
Macros for printing a given character (dot by default) every N records – header file. More...
Go to the source code of this file.
Macros | |
#define | NMCM_CNT_VALUE 1 |
#define | NMCM_PROGRESS_DECL |
Declares progress structure prototype. Prototype contains counter, limit and printed character. | |
#define | NMCM_PROGRESS_DEF |
Declares structure trap_progress, pointer to this structure. Uses pointer for better accessibility from functions other than main. Initializes its limit value to 0. | |
#define | NMCM_PROGRESS_INIT(a, err_cmd) |
Initializes progress variables. Initializes limit value. If not inserted, prints error message and carries out optional error command (e.g. returns nonzero value). Initializes counter and progress character to default value. | |
#define | NMCM_PROGRESS_PRINT |
Print a character ('.' by default) on every N-th invocation. | |
#define | NMCM_PROGRESS_NEWLINE |
Print newline if progress printing is enabled. Typically used before something else should be printed out or before module termination. | |
Macros for printing a given character (dot by default) every N records – header file.
Definition in file progress_printer.h.
#define NMCM_CNT_VALUE 1 |
Initial value of record counter.
Definition at line 15 of file progress_printer.h.
#define NMCM_PROGRESS_DECL |
Declares progress structure prototype. Prototype contains counter, limit and printed character.
Definition at line 22 of file progress_printer.h.
#define NMCM_PROGRESS_DEF |
Declares structure trap_progress, pointer to this structure. Uses pointer for better accessibility from functions other than main. Initializes its limit value to 0.
Definition at line 33 of file progress_printer.h.
#define NMCM_PROGRESS_INIT | ( | a, | |
err_cmd ) |
Initializes progress variables. Initializes limit value. If not inserted, prints error message and carries out optional error command (e.g. returns nonzero value). Initializes counter and progress character to default value.
[in] | a | Parsed progress limit. |
[in] | err_cmd | Which error command is to be executed. |
Definition at line 47 of file progress_printer.h.
#define NMCM_PROGRESS_NEWLINE |
Print newline if progress printing is enabled. Typically used before something else should be printed out or before module termination.
Definition at line 78 of file progress_printer.h.
#define NMCM_PROGRESS_PRINT |
Print a character ('.' by default) on every N-th invocation.
Definition at line 62 of file progress_printer.h.