rvm 1.08
|
Map exit codes and signal numbers to verbose strings. More...
#include <archiver.h>
Public Member Functions | |
rstat () | |
C'tor. | |
const std::string & | exit (const int a_int) const |
Get a verbose string for an exit code. | |
const std::string & | signal (const int a_int) const |
Get a verbose string for a signal number. | |
Private Attributes | |
std::map< int, std::string > | m_exit_str |
std::map< int, std::string > | m_signal_str |
std::string | m_unknown_exit |
std::string | m_unknown_signal |
Map exit codes and signal numbers to verbose strings.
Definition at line 17 of file archiver.h.
rstat::rstat | ( | ) |
C'tor.
Definition at line 26 of file archiver.cc.
References m_exit_str, m_signal_str, m_unknown_exit, m_unknown_signal, and TRY_nomem.
const std::string & rstat::exit | ( | const int | a_int | ) | const |
Get a verbose string for an exit code.
Definition at line 96 of file archiver.cc.
References m_exit_str, and m_unknown_exit.
Referenced by job_archiver::mf_do_chores(), and jobs_report::write_report().
const std::string & rstat::signal | ( | const int | a_int | ) | const |
Get a verbose string for a signal number.
Definition at line 105 of file archiver.cc.
References m_signal_str, and m_unknown_signal.
Referenced by job_archiver::mf_do_chores(), and jobs_report::write_report().
std::map<int,std::string> rstat::m_exit_str [private] |
Definition at line 25 of file archiver.h.
std::map<int,std::string> rstat::m_signal_str [private] |
Definition at line 26 of file archiver.h.
std::string rstat::m_unknown_exit [private] |
Definition at line 27 of file archiver.h.
std::string rstat::m_unknown_signal [private] |
Definition at line 28 of file archiver.h.