#include <reporter.h>
| Public Types | |
| enum | source_type { rsync, report } | 
| Public Member Functions | |
| void | write_rsync_out (const std::string &a_str) | 
| Write a report line for output from rsync to parent on child's std::cout. | |
| void | write_rsync_err (const std::string &a_str) | 
| Write a report line for output from rsync to parent on child's std::cerr. | |
| void | write_report (const std::string a_source, const timer &a_timer, const int a_exit_code, const int a_signal_num, const std::string &a_error_msg) | 
| Generate and submit a report to the parent process on child's std::cout. | |
| job_path_report | parse (const std::string &a_str) | 
| Parse a received report from a child process and return a job_path_report. | |
| bool | is_report (const std::string &a_str) | 
| Return true if the given string looks like a valid report. | |
| Static Public Attributes | |
| static const char * | tags [] | 
| Report type tags. | |
Definition at line 134 of file reporter.h.
| void reportio::write_rsync_out | ( | const std::string & | a_str | ) | 
Write a report line for output from rsync to parent on child's std::cout.
Definition at line 488 of file reporter.cc.
| void reportio::write_rsync_err | ( | const std::string & | a_str | ) | 
Write a report line for output from rsync to parent on child's std::cerr.
Definition at line 497 of file reporter.cc.
| void reportio::write_report | ( | const std::string | a_source, | |
| const timer & | a_timer, | |||
| const int | a_exit_code, | |||
| const int | a_signal_num, | |||
| const std::string & | a_error_msg | |||
| ) | 
Generate and submit a report to the parent process on child's std::cout.
Definition at line 506 of file reporter.cc.
References report, timer::start_value(), timer::stop_value(), and tags.
Here is the call graph for this function:

| job_path_report reportio::parse | ( | const std::string & | a_str | ) | 
Parse a received report from a child process and return a job_path_report.
Definition at line 540 of file reporter.cc.
References job_path_report::assign(), INTERNAL_ERROR, report, tags, and TRY_nomem.
Here is the call graph for this function:

| bool reportio::is_report | ( | const std::string & | a_str | ) | 
Return true if the given string looks like a valid report.
Definition at line 617 of file reporter.cc.
| const char * reportio::tags  [static] | 
Report type tags.
Definition at line 141 of file reporter.h.
Referenced by is_report(), parse(), write_report(), write_rsync_err(), and write_rsync_out().
 1.5.1
 1.5.1