subdirectory Class Reference

Retrieve a list of files in a subdirectory that match a given wildcard filename. More...

#include <fs.h>

List of all members.

Public Types

typedef std::vector< std::string > type

Public Member Functions

 subdirectory ()
 C'tor.
 subdirectory (const subdirectory &a_class)
 C'tor.
 subdirectory (const std::string a_path, const std::string a_filter="*")
 C'or.
 ~subdirectory ()
 D'tor.
void assign (const subdirectory &a_class)
 Assign the contents of a given subdirectory to this subdirectory.
const typepath (const std::string a_path, const std::string a_filter="*")
 Return a vector of strings of a list of files in a subdirectory.
subdirectoryoperator= (const subdirectory &a_class)

Detailed Description

Retrieve a list of files in a subdirectory that match a given wildcard filename.

Pathnames to the files are not included.

Definition at line 273 of file fs.h.


Member Typedef Documentation

typedef std::vector<std::string> subdirectory::type

Definition at line 276 of file fs.h.


Constructor & Destructor Documentation

subdirectory::subdirectory (  ) 

C'tor.

Definition at line 1321 of file fs.cc.

subdirectory::subdirectory ( const subdirectory a_class  ) 

C'tor.

Definition at line 1326 of file fs.cc.

References assign().

Here is the call graph for this function:

subdirectory::subdirectory ( const std::string  a_path,
const std::string  a_filter = "*" 
)

C'or.

Definition at line 1332 of file fs.cc.

References path().

Here is the call graph for this function:

subdirectory::~subdirectory (  ) 

D'tor.

Definition at line 1339 of file fs.cc.


Member Function Documentation

void subdirectory::assign ( const subdirectory a_class  ) 

Assign the contents of a given subdirectory to this subdirectory.

Definition at line 1344 of file fs.cc.

Referenced by operator=(), and subdirectory().

subdirectory & subdirectory::operator= ( const subdirectory a_class  ) 

Definition at line 1398 of file fs.cc.

References assign().

Here is the call graph for this function:

const subdirectory::type & subdirectory::path ( const std::string  a_path,
const std::string  a_filter = "*" 
)

Return a vector of strings of a list of files in a subdirectory.

Files in the list do not contain the pathname to the file. Only filenames that match the given wildcard filter will be listed.

Definition at line 1355 of file fs.cc.

References ERROR, filestatus::path(), TRY, and TRY_nomem.

Referenced by catalog_manager::catalog(), configuration_manager::check(), vault_manager::delete_oldest_archive(), catalog_manager::erase(), vault_manager::get_archive_list(), job_archiver::mf_do_chores(), global_parser::parse_link_catalog_dir(), global_parser::parse_log_dir(), directory::path(), rm_recursive(), vault_manager::select(), subdirectory(), test_rvm(), test_subdirectory(), test_subdirectory_sub(), and test_vaulter().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Thu Sep 30 14:09:51 2010 for rvm by  doxygen 1.6.1