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

A single job report. More...

#include <reporter.h>

Collaboration diagram for single_job_report:
Collaboration graph

Public Member Functions

 single_job_report ()
 C'tor. More...
 
 ~single_job_report ()
 D'tor. More...
 
void clear (void)
 Clear all values. More...
 
void add_report (const job_path_report &a_class)
 Add a path report for this job. More...
 
const std::vector
< job_path_report > & 
reports (void) const
 Return a const vector of all path reports. More...
 
void id (const std::string &a_str)
 Set a descriptive ID for this job report. More...
 
const std::string & id (void) const
 Return the descriptive id for this job report. More...
 
const bool status (void) const
 If all path reports say that rsync was successful, then return true, else return false. More...
 

Private Attributes

std::vector< job_path_reportm_reports
 
std::string m_id
 

Detailed Description

A single job report.

Definition at line 164 of file reporter.h.

Constructor & Destructor Documentation

single_job_report::single_job_report ( )

C'tor.

Definition at line 672 of file reporter.cc.

References clear().

Here is the call graph for this function:

single_job_report::~single_job_report ( )

D'tor.

Definition at line 678 of file reporter.cc.

Member Function Documentation

void single_job_report::add_report ( const job_path_report a_class)

Add a path report for this job.

Definition at line 690 of file reporter.cc.

References m_reports, and TRY_nomem.

Referenced by job_archiver::mf_process_report().

void single_job_report::clear ( void  )

Clear all values.

Definition at line 683 of file reporter.cc.

References m_id, and m_reports.

Referenced by job_archiver::clear(), and single_job_report().

void single_job_report::id ( const std::string &  a_str)

Set a descriptive ID for this job report.

Definition at line 702 of file reporter.cc.

References m_id, and TRY_nomem.

Referenced by job_archiver::start().

const std::string & single_job_report::id ( void  ) const

Return the descriptive id for this job report.

Definition at line 708 of file reporter.cc.

References m_id.

const std::vector< job_path_report > & single_job_report::reports ( void  ) const

Return a const vector of all path reports.

Definition at line 696 of file reporter.cc.

References m_reports.

const bool single_job_report::status ( void  ) const

If all path reports say that rsync was successful, then return true, else return false.

Definition at line 715 of file reporter.cc.

References m_reports.

Member Data Documentation

std::string single_job_report::m_id
private

Definition at line 182 of file reporter.h.

Referenced by clear(), and id().

std::vector<job_path_report> single_job_report::m_reports
private

Definition at line 181 of file reporter.h.

Referenced by add_report(), clear(), reports(), and status().


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