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

Vault stats report. More...

#include <reporter.h>

Collaboration diagram for vault_stats_report:
Collaboration graph

Public Member Functions

 vault_stats_report ()
 C'tor. More...
 
 vault_stats_report (const vault_stats_report &a_class)
 C'tor. More...
 
 vault_stats_report (const std::string &a_message, const filesystem &a_class)
 C'tor. More...
 
 ~vault_stats_report ()
 D'tor. More...
 
void clear (void)
 Clear all values. More...
 
void assign (const vault_stats_report &a_class)
 Assignment. More...
 
void assign (const std::string &a_message, const filesystem &a_class)
 Assignment. More...
 
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. More...
 
const std::string & time (void) const
 Return a string timestamp. More...
 
const std::string & message (void) const
 Return the message. More...
 
const uint64 total_blocks (void) const
 Return the total number of blocks in the vault. More...
 
const uint64 free_blocks (void) const
 Return the number of free blocks in the vault. More...
 
const uint64 total_inodes (void) const
 Return the total number of inodes in the vault. More...
 
const uint64 free_inodes (void) const
 Return the number of free inodes in the vault. More...
 
vault_stats_reportoperator= (const vault_stats_report &a_class)
 Assignment operator. More...
 

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
 

Detailed Description

Vault stats report.

Definition at line 13 of file reporter.h.

Constructor & Destructor Documentation

vault_stats_report::vault_stats_report ( )

C'tor.

Definition at line 26 of file reporter.cc.

References clear().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

vault_stats_report::~vault_stats_report ( )

D'tor.

Definition at line 49 of file reporter.cc.

Member Function Documentation

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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 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::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().

Here is the call graph for this function:

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().

Member Data Documentation

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.

Referenced by assign(), and message().

std::string vault_stats_report::m_time
private

Definition at line 59 of file reporter.h.

Referenced by assign(), and time().

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().


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