report_manager Class Reference

The report manager. More...

#include <reporter.h>

Collaboration diagram for report_manager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 report_manager ()
 C'tor.
 ~report_manager ()
 D'tor.
void init (void)
 Initialize.
const bool initialized (void) const
 Return whether or not this object has been inintialized.
void clear (void)
 Clear all values.
void set_total_time (const timer &a_class)
 Report the overall RVM time.
vault_reportvault (void)
 Return the vault reporter object.
jobs_reportjobs (void)
 Return the jobs reporter object.
void print_report (void)
 Print report to standard output.
void file_report (void)
 Save report to a file.
void write_report (std::ostream &a_out)
 Write report to the given stream.
void format_synopsis (table &a_table)
 Generate a synopsis report.

Private Member Functions

void mf_write_header (std::ostream &a_out)
void mf_write_synopsis (std::ostream &a_out)

Private Attributes

bool m_initialized
timer m_total_time
vault_report m_vault
jobs_report m_jobs

Detailed Description

The report manager.

Process reports coming in both from the parent and from children, then format and print a finalized report.

Definition at line 205 of file reporter.h.


Constructor & Destructor Documentation

report_manager::report_manager  ) 
 

C'tor.

Definition at line 885 of file reporter.cc.

References m_initialized.

report_manager::~report_manager  ) 
 

D'tor.

Definition at line 891 of file reporter.cc.


Member Function Documentation

void report_manager::clear void   ) 
 

Clear all values.

Definition at line 911 of file reporter.cc.

References jobs_report::clear(), vault_report::clear(), timer::clear(), m_jobs, m_total_time, and m_vault.

Referenced by test_rvm().

Here is the call graph for this function:

void report_manager::file_report void   ) 
 

Save report to a file.

Definition at line 957 of file reporter.cc.

References config, ERROR, exists(), initialized(), INTERNAL_ERROR, configuration_manager::log_dir(), logger, configuration_manager::timestamp(), TRY_nomem, log_manager::write(), and write_report().

Referenced by main(), and test_rvm().

Here is the call graph for this function:

void report_manager::format_synopsis table a_table  ) 
 

Generate a synopsis report.

Definition at line 1025 of file reporter.cc.

References estring::align(), timer::duration(), m_total_time, estring::right, timer::started_at(), timer::stopped_at(), and table_endl().

Referenced by mf_write_synopsis().

Here is the call graph for this function:

void report_manager::init void   ) 
 

Initialize.

Definition at line 896 of file reporter.cc.

References config, configuration_manager::initialized(), INTERNAL_ERROR, and m_initialized.

Referenced by main(), and test_rvm().

Here is the call graph for this function:

const bool report_manager::initialized void   )  const
 

Return whether or not this object has been inintialized.

Definition at line 905 of file reporter.cc.

References m_initialized.

Referenced by file_report(), print_report(), and set_total_time().

jobs_report & report_manager::jobs void   ) 
 

Return the jobs reporter object.

Definition at line 934 of file reporter.cc.

References m_jobs.

Referenced by archive_manager::archive(), and mf_write_synopsis().

void report_manager::mf_write_header std::ostream &  a_out  )  [private]
 

Definition at line 1051 of file reporter.cc.

References estring::fillchar(), table_endl(), and VERSION.

Referenced by write_report().

Here is the call graph for this function:

void report_manager::mf_write_synopsis std::ostream &  a_out  )  [private]
 

Definition at line 1068 of file reporter.cc.

References format_synopsis(), jobs(), and vault().

Referenced by write_report().

Here is the call graph for this function:

void report_manager::print_report void   ) 
 

Print report to standard output.

Definition at line 940 of file reporter.cc.

References initialized(), INTERNAL_ERROR, logger, log_manager::write(), and write_report().

Referenced by main().

Here is the call graph for this function:

void report_manager::set_total_time const timer a_class  ) 
 

Report the overall RVM time.

Definition at line 919 of file reporter.cc.

References initialized(), INTERNAL_ERROR, and m_total_time.

Referenced by main(), and test_rvm().

Here is the call graph for this function:

vault_report & report_manager::vault void   ) 
 

Return the vault reporter object.

Definition at line 928 of file reporter.cc.

References m_vault.

Referenced by archive_manager::archive(), vault_manager::delete_oldest_archive(), archive_manager::init(), mf_write_synopsis(), and vault_manager::overflow().

void report_manager::write_report std::ostream &  a_out  ) 
 

Write report to the given stream.

Definition at line 1002 of file reporter.cc.

References m_jobs, m_vault, mf_write_header(), mf_write_synopsis(), vault_report::write_report(), and jobs_report::write_report().

Referenced by file_report(), and print_report().

Here is the call graph for this function:


Member Data Documentation

bool report_manager::m_initialized [private]
 

Definition at line 227 of file reporter.h.

Referenced by init(), initialized(), and report_manager().

jobs_report report_manager::m_jobs [private]
 

Definition at line 230 of file reporter.h.

Referenced by clear(), jobs(), and write_report().

timer report_manager::m_total_time [private]
 

Definition at line 228 of file reporter.h.

Referenced by clear(), format_synopsis(), and set_total_time().

vault_report report_manager::m_vault [private]
 

Definition at line 229 of file reporter.h.

Referenced by clear(), vault(), and write_report().


The documentation for this class was generated from the following files:
Generated on Wed Jun 21 11:15:34 2006 for rvm by  doxygen 1.4.2