rvm  1.11
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
rstat Class Reference

Map exit codes and signal numbers to verbose strings. More...

#include <archiver.h>

Collaboration diagram for rstat:
Collaboration graph

Public Member Functions

 rstat ()
 C'tor. More...
 
const std::string & exit (const int a_int) const
 Get a verbose string for an exit code. More...
 
const std::string & signal (const int a_int) const
 Get a verbose string for a signal number. More...
 

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
 

Detailed Description

Map exit codes and signal numbers to verbose strings.

Definition at line 17 of file archiver.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

const std::string & rstat::exit ( const int  a_int) const

Get a verbose string for an exit code.

Definition at line 97 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 106 of file archiver.cc.

References m_signal_str, and m_unknown_signal.

Referenced by job_archiver::mf_do_chores(), and jobs_report::write_report().

Member Data Documentation

std::map<int,std::string> rstat::m_exit_str
private

Definition at line 25 of file archiver.h.

Referenced by exit(), and rstat().

std::map<int,std::string> rstat::m_signal_str
private

Definition at line 26 of file archiver.h.

Referenced by rstat(), and signal().

std::string rstat::m_unknown_exit
private

Definition at line 27 of file archiver.h.

Referenced by exit(), and rstat().

std::string rstat::m_unknown_signal
private

Definition at line 28 of file archiver.h.

Referenced by rstat(), and signal().


The documentation for this class was generated from the following files: