This class handles the output to tty's
![]() | error (error_set id_num, char *text) The function handles errors |
![]() | message (char *text) The function handles messages |
![]() | sys_message (void) The constructor |
![]() | warning (char *text) The function handles warnings |
![]() | ~sys_message (void) The destructor |
This class handles the output to tty's. The benefit of this class is an centralized object where the whole I/O of tty's is handled. This class is used for error handling too. If there are any redirections of output, here is the right place. In this particular case all the stuff is logged in the syslog under upsd. In the version 1.1 all the signal handler messages where moved to this object, so all syslog activities can be found here.
void warning(char *text)
void error(error_set id_num, char *text)
Which id's are supported is defined in global.hpp.
There you will find the complete set of errors, used for this
and other methods.
text - is additional information of the caller (e.g. which class
and method found the error) sys_message(void)
~sys_message(void)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de