Defines | |
| #define | sinfo_msg_error() cpl_msg_error(cpl_func, __VA_ARGS__) |
| Print an error message. | |
| #define | sinfo_msg_progress(i, iter,) cpl_msg_progress(cpl_func, (i), (iter), __VA_ARGS__) |
| Print a progress message. | |
| #define | sinfo_msg_warning() sinfo_msg_warning_macro(cpl_func, __VA_ARGS__) |
| Print an warning message. | |
| #define | sinfo_msg_debug() cpl_msg_debug(cpl_func, __VA_ARGS__) |
| Print a debug message. | |
| #define | sinfo_msg_low() |
| Print a message on a lower message level. | |
| #define | sinfo_msg() sinfo_msg_macro(cpl_func, __VA_ARGS__) |
| #define | sinfo_msg_softer() sinfo_msg_softer_macro(cpl_func) |
| #define | sinfo_msg_louder() sinfo_msg_louder_macro(cpl_func) |
Functions | |
| void | sinfo_msg_init (int outlevel, const char *dom) |
| Initialize messaging. | |
| void | sinfo_msg_set_level (int olevel) |
| Set output level. | |
| const char * | sinfo_msg_get_domain (void) |
| Get current message domain. | |
| void | sinfo_msg_set_domain (const char *d) |
| Set message domain. | |
| void | sinfo_msg_macro (const char *fct, const char *format,...) |
| Print a message on 'info' or 'debug' level. | |
| void | sinfo_msg_warning_macro (const char *fct, const char *format,...) |
| Print a warning message. | |
| int | sinfo_msg_get_warnings (void) |
| Get number of warnings printed so far. | |
| void | sinfo_msg_add_warnings (int n) |
| Accumulate warnings. | |
| void | sinfo_msg_softer_macro (const char *fct) |
| Decrease message level. | |
| void | sinfo_msg_louder_macro (const char *fct) |
| Increase message level. | |
These functions never fail, but print warnings if called inconsistently.
|
|
Print a debug message.
cpl_msg_debug(), and saves the user from typing the calling function name.
Definition at line 103 of file sinfo_msg.h. Referenced by sinfo_auto_size_cube3(), sinfo_new_cubes_build(), sinfo_new_cubes_coadd(), and sinfo_print_cpl_frame(). |
|
|
|
Value: do { \ sinfo_msg_softer(); \ sinfo_msg(__VA_ARGS__); \ sinfo_msg_louder(); \ } while (FALSE)
Definition at line 111 of file sinfo_msg.h. |
|
|
Print a progress message.
cpl_msg_progress(), and saves the user from typing the calling function name.
Definition at line 82 of file sinfo_msg.h. |
|
|
Print an warning message.
cpl_msg_warning(), and saves the user from typing the calling function name.
Definition at line 93 of file sinfo_msg.h. Referenced by sinfo_auto_size_cube2(), sinfo_auto_size_cube3(), sinfo_dfs_set_groups(), sinfo_msg_louder_macro(), sinfo_new_cubes_coadd(), sinfo_new_dark(), sinfo_new_determine_conversion_factor(), sinfo_new_fit_2d_gaussian(), sinfo_new_fit_slits(), sinfo_new_fit_slits1(), sinfo_new_fit_slits2(), sinfo_new_fit_slits_boltz(), sinfo_new_fit_slits_boltz_single_line(), sinfo_new_fit_slits_boltz_with_estimate(), sinfo_new_objnod(), sinfo_new_prepare_stacked_frames(), sinfo_new_stdstar(), sinfo_svd_fitting(), sinfo_utl_cube2ima(), and sinfo_utl_cube2spectrum(). |
|
|
Accumulate warnings.
sinfo_msg_get_warnings()) is increased by n, but without actually printing any warnings.
Definition at line 266 of file sinfo_msg.c. |
|
|
Get current message domain.
Definition at line 309 of file sinfo_msg.c. |
|
|
Get number of warnings printed so far.
Definition at line 251 of file sinfo_msg.c. |
|
||||||||||||
|
Initialize messaging.
Therefore, set outlevel = 0 to print fewest messages. Increase outlevel to increase verbosity. To print all messages as 'info' set outlevel to the special value -1 (which has the effect of infinity). Definition at line 101 of file sinfo_msg.c. References sinfo_msg_set_domain(). |
|
|
Increase message level.
sinfo_msg_louder().
Definition at line 176 of file sinfo_msg.c. References sinfo_msg_warning. |
|
||||||||||||||||
|
Print a message on 'info' or 'debug' level.
sinfo_msg().If the current level (which might be equal to the current depth of the function call-tree) is less than the output level, the message printed on the 'info' level, otherwise it is printed on the 'debug' level. Definition at line 219 of file sinfo_msg.c. |
|
|
Set message domain.
Definition at line 320 of file sinfo_msg.c. Referenced by sinfo_msg_init(). |
|
|
Set output level.
sinfo_msg_init() .
Definition at line 139 of file sinfo_msg.c. |
|
|
Decrease message level.
sinfo_msg_softer().
Definition at line 153 of file sinfo_msg.c. |
|
||||||||||||||||
|
Print a warning message.
sinfo_msg_warning().
This function is used instead of
Additionally, record is kept on the total number of warnings printed (see Definition at line 287 of file sinfo_msg.c. |
1.4.4