GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
|
GIS Library - Subroutines to manage verbosity level. More...
Go to the source code of this file.
Macros | |
#define | MAXLEVEL 3 |
Maximum verbosity level. More... | |
#define | STDLEVEL 2 |
Standard verbosity level. More... | |
#define | MINLEVEL 0 |
Minimum verbosity level (quiet) More... | |
Functions | |
int | G_verbose (void) |
Get current verbosity level. More... | |
int | G_verbose_max (void) |
Get max verbosity level. More... | |
int | G_verbose_std (void) |
Get standard verbosity level. More... | |
int | G_verbose_min (void) |
Get min verbosity level. More... | |
int | G_set_verbose (int level) |
Set verbosity level. More... | |
GIS Library - Subroutines to manage verbosity level.
Note that verbosity can be controlled by GRASS_VERBOSE environment variable.
See relevant subroutines:
(C) 2001-2008, 2012-2013 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file verbose.c.
#define MAXLEVEL 3 |
Maximum verbosity level.
Definition at line 30 of file verbose.c.
Referenced by G_set_verbose(), G_verbose_max(), RTreeCreateTree(), RTreeDestroyTree(), RTreeInsertRectF(), and RTreeInsertRectM().
#define MINLEVEL 0 |
Minimum verbosity level (quiet)
Definition at line 34 of file verbose.c.
Referenced by G_set_verbose(), and G_verbose_min().
#define STDLEVEL 2 |
Standard verbosity level.
Definition at line 32 of file verbose.c.
Referenced by G_verbose(), and G_verbose_std().
int G_set_verbose | ( | int | level | ) |
Set verbosity level.
–q
or –quiet
flag.–v
or –verbose
flag.level | new verbosity level (-1,0,1,2,3) |
Definition at line 116 of file verbose.c.
References G_initialize_done(), G_is_initialized(), MAXLEVEL, and MINLEVEL.
int G_verbose | ( | void | ) |
Get current verbosity level.
Currently, there are 5 levels of verbosity (see return codes)
–q
or –quiet
flag.. –v
or –verbose
flag. Definition at line 55 of file verbose.c.
References G_initialize_done(), G_is_initialized(), getenv(), and STDLEVEL.
Referenced by G_fatal_error(), G_important_message(), G_init_all(), G_message(), and G_verbose_message().
int G_verbose_max | ( | void | ) |
int G_verbose_min | ( | void | ) |
Get min verbosity level.
Definition at line 96 of file verbose.c.
References MINLEVEL.
Referenced by G_important_message().
int G_verbose_std | ( | void | ) |
Get standard verbosity level.
Definition at line 86 of file verbose.c.
References STDLEVEL.
Referenced by G_message(), G_parser(), and G_verbose_message().