catalog_manager Class Reference

Create and maintain a directory of links to all archives on all vaults. More...

#include <cataloger.h>

List of all members.

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


Detailed Description

Create and maintain a directory of links to all archives on all vaults.

Definition at line 11 of file cataloger.h.


Constructor & Destructor Documentation

catalog_manager::catalog_manager  ) 
 

C'tor.

Definition at line 21 of file cataloger.cc.

References cataloger, clear(), and INTERNAL_ERROR.

Here is the call graph for this function:


Member Function Documentation

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

Here is the call graph for this function:

void catalog_manager::clear void   ) 
 

Reset the catalog manager.

Definition at line 30 of file cataloger.cc.

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

Here is the call graph for this function:

void catalog_manager::init void   ) 
 

Initialize the catalog manager.

Definition at line 36 of file cataloger.cc.

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.

Referenced by catalog(), and erase().


Member Data Documentation

bool catalog_manager::m_initialized [private]
 

Definition at line 24 of file cataloger.h.


The documentation for this class was generated from the following files:
Generated on Mon Jul 12 12:09:19 2004 for rvm by doxygen 1.3.6