#include <Directory.hh>
typedef std::map< std::string, info_type > diskCache::Cache::Directory::ScanResults::directory_container_type |
typedef INT_4U diskCache::Cache::Directory::ScanResults::directory_count_type |
typedef std::map< std::string, count_type > diskCache::Cache::Directory::ScanResults::file_container_type |
typedef INT_4U diskCache::Cache::Directory::ScanResults::file_count_type |
typedef std::list< std::string > diskCache::Cache::Directory::ScanResults::filename_container_type |
Retrieve the collection of added directories.
- Parameters
-
[in] | DirectoryName | The parent directory |
void diskCache::Cache::Directory::ScanResults::Added |
( |
const std::string & |
DirectoryName, |
|
|
filename_container_type & |
Subdirectories |
|
) |
| |
|
inline |
Add the directories that were newly discovered.
- Parameters
-
[in] | DirectoryName | The parent directory |
[in,out] | Subdirectories | The collection of directories that have been newly added. |
void diskCache::Cache::Directory::ScanResults::Added |
( |
const std::string & |
DirectoryName, |
|
|
const std::string & |
SearchEngine, |
|
|
INT_4U |
FileCount |
|
) |
| |
|
inline |
Retrieve the number of directories scanned.
Return the number of directorys that have been scanned.
void diskCache::Cache::Directory::ScanResults::DirectoryCountInc |
( |
| ) |
|
|
inline |
Retrieve the number of directories scanned.
Increment the number of directorys that have been scanned.
Retrieve the number of Files scanned.
Return the number of files that have been scanned.
void diskCache::Cache::Directory::ScanResults::FileCountInc |
( |
file_count_type |
Value | ) |
|
|
inline |
Increment the number of Files scanned.
Increment the number of files that have been scanned.
- Parameters
-
[in] | Value | The amount by which to incriment the file count. |
void diskCache::Cache::Directory::ScanResults::Log |
( |
const std::string & |
Caller, |
|
|
const std::string & |
JobInfo |
|
) |
| const |
template<typename Op >
void diskCache::Cache::Directory::ScanResults::operator() |
( |
Op |
Operation | ) |
const |
|
inline |
Scan through the results.
Retrieve the collection of removed directories.
- Parameters
-
[in] | DirectoryName | The parent directory |
void diskCache::Cache::Directory::ScanResults::Removed |
( |
const std::string & |
DirectoryName, |
|
|
filename_container_type & |
Subdirectories |
|
) |
| |
Add the directories that were removed.
- Parameters
-
[in] | DirectoryName | The parent directory |
[in,out] | Subdirectories | The collection of directories that have been newly added. |
void diskCache::Cache::Directory::ScanResults::Removed |
( |
const std::string & |
DirectoryName, |
|
|
const std::string & |
SearchEngine, |
|
|
INT_4U |
FileCount |
|
) |
| |
|
inline |
void diskCache::Cache::Directory::ScanResults::State |
( |
const std::string & |
DirectoryName, |
|
|
directory_state |
State |
|
) |
| |
|
inline |
Record the directory state at the time of scanning.
- Parameters
-
[in] | DirectoryName | The name of the directory that was scanned. |
[in] | State | The state of the directory at the time of being scanned. |
The documentation for this class was generated from the following files: