Robotran C Documentation
mbs_message.h
Go to the documentation of this file.
1 
12 #include <stdarg.h>
13 
26 void mbs_msg(const char *msg, ...);
27 
28 
41 void mbs_warning_msg(const char *msg, ...);
42 
61 void mbs_error_msg_v(int v_opt, int err, const char* msg, ...);
62 
78 void mbs_error_msg(int err, const char *msg, ...);
79 
93 void mbs_msg_v(int v_opt, int v_lvl, const char* msg, ...);
94 
106 char* mbs_concatenate_to_char(const char* msg, va_list arg);
107 
111 typedef void (*mbs_msg_fct_ptr)(const char* msg);
112 
116 typedef void (*mbs_err_fct_ptr)(int err, const char* msg);
117 
124 
125 
132 
133 
140 
150 void mbs_error_msg_continue(int err, const char* msg);
151 
168 void mbs_error_msg_default(int err, const char *msg);
mbs_msg
void mbs_msg(const char *msg,...)
Send a message.
Definition: mbs_message.c:87
mbs_concatenate_to_char
char * mbs_concatenate_to_char(const char *msg, va_list arg)
Generate a string containing the message and the optionnal formatted value.
Definition: mbs_message.c:69
mbs_msg_v
void mbs_msg_v(int v_opt, int v_lvl, const char *msg,...)
Send a message only of the message level is lower than the verbosity option.
Definition: mbs_message.c:143
mbs_error_msg_default
void mbs_error_msg_default(int err, const char *msg)
Low-level error function terminating the process if an error is raised.
Definition: mbs_message.c:27
mbs_error_msg
void mbs_error_msg(int err, const char *msg,...)
Send an error message.
Definition: mbs_message.c:131
mbs_define.h
mbs_warning_msg
void mbs_warning_msg(const char *msg,...)
Send a warning message.
Definition: mbs_message.c:100
mbs_concatenate_to_char
char * mbs_concatenate_to_char(const char *msg, va_list arg)
Generate a string containing the message and the optionnal formatted value.
Definition: mbs_message.c:69
mbs_error_msg_ptr
mbs_err_fct_ptr mbs_error_msg_ptr
Definition: mbs_message.c:50
mbs_warning_msg
void mbs_warning_msg(const char *msg,...)
Send a warning message.
Definition: mbs_message.c:100
mbs_set_msg_fct_ptr
void mbs_set_msg_fct_ptr(mbs_msg_fct_ptr msg_fct)
Set the function that send messages.
Definition: mbs_message.c:55
mbs_error_msg_continue
void mbs_error_msg_continue(int err, const char *msg)
Low-level error function allowing process to continue if an error is raised.
Definition: mbs_message.c:43
mbs_msg_v
void mbs_msg_v(int v_opt, int v_lvl, const char *msg,...)
Send a message only of the message level is lower than the verbosity option.
Definition: mbs_message.c:143
mbs_set_msg_fct_ptr
void mbs_set_msg_fct_ptr(mbs_msg_fct_ptr msg_fct)
Set the function that send messages.
Definition: mbs_message.c:55
MBS_VERBOSE_ERROR
#define MBS_VERBOSE_ERROR
Definition: mbs_define.h:44
mbs_err_fct_ptr
void(* mbs_err_fct_ptr)(int err, const char *msg)
Type defining a function pointer to send messages and pass an error code.
Definition: mbs_message.h:116
mbs_error_msg
void mbs_error_msg(int err, const char *msg,...)
Send an error message.
Definition: mbs_message.c:131
mbs_warning_msg_ptr
mbs_msg_fct_ptr mbs_warning_msg_ptr
Definition: mbs_message.c:49
mbs_msg_ptr
mbs_msg_fct_ptr mbs_msg_ptr
Definition: mbs_message.c:48
mbs_msg
void mbs_msg(const char *msg,...)
Send a message.
Definition: mbs_message.c:87
mbs_set_warning_msg_fct_ptr
void mbs_set_warning_msg_fct_ptr(mbs_msg_fct_ptr msg_fct)
Set the function that send warning messages.
Definition: mbs_message.c:59
mbs_message.h
mbs_error_msg_default
void mbs_error_msg_default(int err, const char *msg)
Low-level error function terminating the process if an error is raised.
Definition: mbs_message.c:27
mbs_error_msg_v
void mbs_error_msg_v(int v_opt, int err, const char *msg,...)
Send an error message except if error message are disabled.
Definition: mbs_message.c:113
mbs_set_warning_msg_fct_ptr
void mbs_set_warning_msg_fct_ptr(mbs_msg_fct_ptr msg_fct)
Set the function that send warning messages.
Definition: mbs_message.c:59
mbs_set_error_msg_fct_ptr
void mbs_set_error_msg_fct_ptr(mbs_err_fct_ptr msg_fct)
Set the function that send error messages.
Definition: mbs_message.c:63
mbs_error_msg_v
void mbs_error_msg_v(int v_opt, int err, const char *msg,...)
Send an error message except if error message are disabled.
Definition: mbs_message.c:113
mbs_msg_fct_ptr
void(* mbs_msg_fct_ptr)(const char *msg)
Type defining a function pointer to send messages.
Definition: mbs_message.h:111
mbs_error_msg_continue
void mbs_error_msg_continue(int err, const char *msg)
Low-level error function allowing process to continue if an error is raised.
Definition: mbs_message.c:43
mbs_warning_msg_default
void mbs_warning_msg_default(const char *msg)
Definition: mbs_message.c:23
mbs_set_error_msg_fct_ptr
void mbs_set_error_msg_fct_ptr(mbs_err_fct_ptr msg_fct)
Set the function that send error messages.
Definition: mbs_message.c:63
mbs_msg_default
void mbs_msg_default(const char *msg)
Definition: mbs_message.c:19