Vault stats report. More...
#include <reporter.h>
Public Member Functions | |
vault_stats_report () | |
C'tor. | |
vault_stats_report (const vault_stats_report &a_class) | |
C'tor. | |
vault_stats_report (const std::string &a_message, const filesystem &a_class) | |
C'tor. | |
~vault_stats_report () | |
D'tor. | |
void | clear (void) |
Clear all values. | |
void | assign (const vault_stats_report &a_class) |
Assignment. | |
void | assign (const std::string &a_message, const filesystem &a_class) |
Assignment. | |
void | assign (const std::string &a_message, const uint64 a_total_blocks, const uint64 a_free_blocks, const uint64 a_total_inodes, const uint64 a_free_inodes) |
void | assign (const std::string &a_message, const std::string &a_time, const uint64 a_total_blocks, const uint64 a_free_blocks, const uint64 a_total_inodes, const uint64 a_free_inodes) |
Assignment. | |
const std::string & | time (void) const |
Return a string timestamp. | |
const std::string & | message (void) const |
Return the message. | |
const uint64 | total_blocks (void) const |
Return the total number of blocks in the vault. | |
const uint64 | free_blocks (void) const |
Return the number of free blocks in the vault. | |
const uint64 | total_inodes (void) const |
Return the total number of inodes in the vault. | |
const uint64 | free_inodes (void) const |
Return the number of free inodes in the vault. | |
vault_stats_report & | operator= (const vault_stats_report &a_class) |
Assignment operator. | |
Private Attributes | |
std::string | m_time |
std::string | m_message |
uint64 | m_total_blocks |
uint64 | m_free_blocks |
uint64 | m_total_inodes |
uint64 | m_free_inodes |
Vault stats report.
Definition at line 13 of file reporter.h.
vault_stats_report::vault_stats_report | ( | ) |
C'tor.
Definition at line 26 of file reporter.cc.
References clear().
vault_stats_report::vault_stats_report | ( | const vault_stats_report & | a_class | ) |
C'tor.
Definition at line 32 of file reporter.cc.
References assign(), and clear().
vault_stats_report::vault_stats_report | ( | const std::string & | a_message, | |
const filesystem & | a_class | |||
) |
C'tor.
Definition at line 39 of file reporter.cc.
References assign(), and clear().
vault_stats_report::~vault_stats_report | ( | ) |
D'tor.
Definition at line 49 of file reporter.cc.
void vault_stats_report::assign | ( | const std::string & | a_message, | |
const std::string & | a_time, | |||
const uint64 | a_total_blocks, | |||
const uint64 | a_free_blocks, | |||
const uint64 | a_total_inodes, | |||
const uint64 | a_free_inodes | |||
) |
Assignment.
Definition at line 94 of file reporter.cc.
References m_free_blocks, m_free_inodes, m_message, m_time, m_total_blocks, m_total_inodes, and TRY_nomem.
void vault_stats_report::assign | ( | const std::string & | a_message, | |
const uint64 | a_total_blocks, | |||
const uint64 | a_free_blocks, | |||
const uint64 | a_total_inodes, | |||
const uint64 | a_free_inodes | |||
) |
void vault_stats_report::assign | ( | const std::string & | a_message, | |
const filesystem & | a_class | |||
) |
Assignment.
Definition at line 78 of file reporter.cc.
References assign(), current_time(), filesystem::free_blocks(), filesystem::free_inodes(), filesystem::total_blocks(), and filesystem::total_inodes().
void vault_stats_report::assign | ( | const vault_stats_report & | a_class | ) |
Assignment.
Definition at line 63 of file reporter.cc.
References free_blocks(), free_inodes(), message(), time(), total_blocks(), and total_inodes().
Referenced by assign(), operator=(), and vault_stats_report().
void vault_stats_report::clear | ( | void | ) |
Clear all values.
Definition at line 54 of file reporter.cc.
References m_free_blocks, m_free_inodes, m_total_blocks, and m_total_inodes.
Referenced by vault_stats_report().
const uint64 vault_stats_report::free_blocks | ( | void | ) | const |
Return the number of free blocks in the vault.
Definition at line 131 of file reporter.cc.
References m_free_blocks.
Referenced by assign().
const uint64 vault_stats_report::free_inodes | ( | void | ) | const |
Return the number of free inodes in the vault.
Definition at line 143 of file reporter.cc.
References m_free_inodes.
Referenced by assign().
const std::string & vault_stats_report::message | ( | void | ) | const |
Return the message.
Definition at line 119 of file reporter.cc.
References m_message.
Referenced by assign().
vault_stats_report & vault_stats_report::operator= | ( | const vault_stats_report & | a_class | ) |
Assignment operator.
Definition at line 150 of file reporter.cc.
References assign().
const std::string & vault_stats_report::time | ( | void | ) | const |
Return a string timestamp.
Definition at line 113 of file reporter.cc.
References m_time.
Referenced by assign().
const uint64 vault_stats_report::total_blocks | ( | void | ) | const |
Return the total number of blocks in the vault.
Definition at line 125 of file reporter.cc.
References m_total_blocks.
Referenced by assign().
const uint64 vault_stats_report::total_inodes | ( | void | ) | const |
Return the total number of inodes in the vault.
Definition at line 137 of file reporter.cc.
References m_total_inodes.
Referenced by assign().
uint64 vault_stats_report::m_free_blocks [private] |
Definition at line 62 of file reporter.h.
Referenced by assign(), clear(), and free_blocks().
uint64 vault_stats_report::m_free_inodes [private] |
Definition at line 64 of file reporter.h.
Referenced by assign(), clear(), and free_inodes().
std::string vault_stats_report::m_message [private] |
Definition at line 60 of file reporter.h.
std::string vault_stats_report::m_time [private] |
Definition at line 59 of file reporter.h.
uint64 vault_stats_report::m_total_blocks [private] |
Definition at line 61 of file reporter.h.
Referenced by assign(), clear(), and total_blocks().
uint64 vault_stats_report::m_total_inodes [private] |
Definition at line 63 of file reporter.h.
Referenced by assign(), clear(), and total_inodes().