Create and maintain a directory of links to all archives on all vaults. More...
#include <cataloger.h>
Public Member Functions | |
catalog_manager () | |
C'tor. | |
void | clear (void) |
Reset the catalog manager. | |
void | init (void) |
Initialize the catalog manager. | |
const bool | initialized (void) const |
Return the initialized status. | |
void | erase (void) |
Erase the contents of the catalog. | |
void | catalog (void) |
Create or update the catalog. | |
Private Attributes | |
bool | m_initialized |
Create and maintain a directory of links to all archives on all vaults.
Definition at line 11 of file cataloger.h.
catalog_manager::catalog_manager | ( | ) |
C'tor.
Definition at line 21 of file cataloger.cc.
References cataloger, clear(), and INTERNAL_ERROR.
void catalog_manager::catalog | ( | void | ) |
Create or update the catalog.
Definition at line 77 of file cataloger.cc.
References config, erase(), initialized(), INTERNAL_ERROR, is_timestamp(), configuration_manager::link_catalog_dir(), logger, mk_relative_symlink(), subdirectory::path(), reform_path(), TRY_log, configuration_manager::vaults(), and log_manager::write().
Referenced by main(), and test_rvm().
void catalog_manager::clear | ( | void | ) |
Reset the catalog manager.
Definition at line 30 of file cataloger.cc.
References m_initialized.
Referenced by catalog_manager(), and test_rvm().
void catalog_manager::erase | ( | void | ) |
Erase the contents of the catalog.
Definition at line 48 of file cataloger.cc.
References config, initialized(), INTERNAL_ERROR, configuration_manager::link_catalog_dir(), logger, subdirectory::path(), reform_path(), rm_recursive(), TRY_nomem, and log_manager::write().
Referenced by catalog().
void catalog_manager::init | ( | void | ) |
Initialize the catalog manager.
Definition at line 36 of file cataloger.cc.
References m_initialized.
Referenced by main(), and test_rvm().
const bool catalog_manager::initialized | ( | void | ) | const |
Return the initialized status.
Definition at line 42 of file cataloger.cc.
References m_initialized.
bool catalog_manager::m_initialized [private] |
Definition at line 24 of file cataloger.h.
Referenced by clear(), init(), and initialized().