ldas-tools-diskcacheAPI
2.7.2
|
#include <Directory.hh>
Classes | |
struct | count_type |
struct | directory_type |
struct | info_type |
Public Types | |
typedef std::list< std::string > | filename_container_type |
typedef INT_4U | directory_count_type |
typedef INT_4U | file_count_type |
typedef Directory::directory_state | directory_state |
typedef std::map< std::string, count_type > | file_container_type |
typedef std::map< std::string, info_type > | directory_container_type |
typedef std::list< std::string > | filename_container_type |
typedef INT_4U | directory_count_type |
typedef INT_4U | file_count_type |
typedef Directory::directory_state | directory_state |
typedef std::map< std::string, count_type > | file_container_type |
typedef std::map< std::string, info_type > | directory_container_type |
typedef std::list< std::string > | filename_container_type |
typedef INT_4U | directory_count_type |
typedef INT_4U | file_count_type |
typedef Directory::directory_state | directory_state |
typedef std::map< std::string, count_type > | file_container_type |
typedef std::map< std::string, info_type > | directory_container_type |
Public Member Functions | |
ScanResults () | |
const filename_container_type & | Added (const std::string &DirectoryName) const |
Retrieve the collection of added directories. More... | |
void | Added (const std::string &DirectoryName, filename_container_type &Subdirectories) |
Add the directories that were newly discovered. More... | |
void | Added (const std::string &DirectoryName, const std::string &SearchEngine, INT_4U FileCount) |
directory_count_type | DirectoryCount () const |
Retrieve the number of directories scanned. More... | |
void | DirectoryCountInc () |
Retrieve the number of directories scanned. More... | |
file_count_type | FileCount () const |
Retrieve the number of Files scanned. More... | |
void | FileCountInc (file_count_type Value) |
Increment the number of Files scanned. More... | |
void | Log (const std::string &Caller, const std::string &JobInfo) const |
Create a log message. More... | |
void | State (const std::string &DirectoryName, directory_state State) |
Record the directory state at the time of scanning. More... | |
const filename_container_type & | Removed (const std::string &DirectoryName) const |
Retrieve the collection of removed directories. More... | |
void | Removed (const std::string &DirectoryName, filename_container_type &Subdirectories) |
Add the directories that were removed. More... | |
void | Removed (const std::string &DirectoryName, const std::string &SearchEngine, INT_4U FileCount) |
const directory_container_type & | Results () const |
template<typename Op > | |
void | operator() (Op Operation) const |
Scan through the results. More... | |
ScanResults () | |
const filename_container_type & | Added (const std::string &DirectoryName) const |
Retrieve the collection of added directories. More... | |
void | Added (const std::string &DirectoryName, filename_container_type &Subdirectories) |
Add the directories that were newly discovered. More... | |
void | Added (const std::string &DirectoryName, const std::string &SearchEngine, INT_4U FileCount) |
directory_count_type | DirectoryCount () const |
Retrieve the number of directories scanned. More... | |
void | DirectoryCountInc () |
Retrieve the number of directories scanned. More... | |
file_count_type | FileCount () const |
Retrieve the number of Files scanned. More... | |
void | FileCountInc (file_count_type Value) |
Increment the number of Files scanned. More... | |
void | Log (const std::string &Caller, const std::string &JobInfo) const |
Create a log message. More... | |
void | State (const std::string &DirectoryName, directory_state State) |
Record the directory state at the time of scanning. More... | |
const filename_container_type & | Removed (const std::string &DirectoryName) const |
Retrieve the collection of removed directories. More... | |
void | Removed (const std::string &DirectoryName, filename_container_type &Subdirectories) |
Add the directories that were removed. More... | |
void | Removed (const std::string &DirectoryName, const std::string &SearchEngine, INT_4U FileCount) |
const directory_container_type & | Results () const |
template<typename Op > | |
void | operator() (Op Operation) const |
Scan through the results. More... | |
ScanResults () | |
const filename_container_type & | Added (const std::string &DirectoryName) const |
Retrieve the collection of added directories. More... | |
void | Added (const std::string &DirectoryName, filename_container_type &Subdirectories) |
Add the directories that were newly discovered. More... | |
void | Added (const std::string &DirectoryName, const std::string &SearchEngine, INT_4U FileCount) |
directory_count_type | DirectoryCount () const |
Retrieve the number of directories scanned. More... | |
void | DirectoryCountInc () |
Retrieve the number of directories scanned. More... | |
file_count_type | FileCount () const |
Retrieve the number of Files scanned. More... | |
void | FileCountInc (file_count_type Value) |
Increment the number of Files scanned. More... | |
void | Log (const std::string &Caller, const std::string &JobInfo) const |
Create a log message. More... | |
void | State (const std::string &DirectoryName, directory_state State) |
Record the directory state at the time of scanning. More... | |
const filename_container_type & | Removed (const std::string &DirectoryName) const |
Retrieve the collection of removed directories. More... | |
void | Removed (const std::string &DirectoryName, filename_container_type &Subdirectories) |
Add the directories that were removed. More... | |
void | Removed (const std::string &DirectoryName, const std::string &SearchEngine, INT_4U FileCount) |
const directory_container_type & | Results () const |
template<typename Op > | |
void | operator() (Op Operation) const |
Scan through the results. More... | |
Private Attributes | |
directory_count_type | m_scanned_directories |
file_count_type | m_scanned_files |
directory_container_type | m_results |
typedef std::map< std::string, info_type > diskCache::Cache::Directory::ScanResults::directory_container_type |
typedef std::map< std::string, info_type > diskCache::Cache::Directory::ScanResults::directory_container_type |
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 INT_4U diskCache::Cache::Directory::ScanResults::directory_count_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 std::map< std::string, count_type > diskCache::Cache::Directory::ScanResults::file_container_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 INT_4U diskCache::Cache::Directory::ScanResults::file_count_type |
typedef INT_4U diskCache::Cache::Directory::ScanResults::file_count_type |
typedef std::list< std::string > diskCache::Cache::Directory::ScanResults::filename_container_type |
typedef std::list< std::string > diskCache::Cache::Directory::ScanResults::filename_container_type |
typedef std::list< std::string > diskCache::Cache::Directory::ScanResults::filename_container_type |
|
inline |
Retrieve the collection of added directories.
[in] | DirectoryName | The parent directory |
const filename_container_type& diskCache::Cache::Directory::ScanResults::Added | ( | const std::string & | DirectoryName | ) | const |
Retrieve the collection of added directories.
[in] | DirectoryName | The parent directory |
const filename_container_type& diskCache::Cache::Directory::ScanResults::Added | ( | const std::string & | DirectoryName | ) | const |
Retrieve the collection of added directories.
[in] | DirectoryName | The parent directory |
|
inline |
Add the directories that were newly discovered.
[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, |
filename_container_type & | Subdirectories | ||
) |
Add the directories that were newly discovered.
[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, |
filename_container_type & | Subdirectories | ||
) |
Add the directories that were newly discovered.
[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 |
void diskCache::Cache::Directory::ScanResults::Added | ( | const std::string & | DirectoryName, |
const std::string & | SearchEngine, | ||
INT_4U | FileCount | ||
) |
directory_count_type diskCache::Cache::Directory::ScanResults::DirectoryCount | ( | ) | const |
Retrieve the number of directories scanned.
|
inline |
Retrieve the number of directories scanned.
Return the number of directorys that have been scanned.
directory_count_type diskCache::Cache::Directory::ScanResults::DirectoryCount | ( | ) | const |
Retrieve the number of directories scanned.
void diskCache::Cache::Directory::ScanResults::DirectoryCountInc | ( | ) |
Retrieve the number of directories scanned.
void diskCache::Cache::Directory::ScanResults::DirectoryCountInc | ( | ) |
Retrieve the number of directories scanned.
|
inline |
Retrieve the number of directories scanned.
Increment the number of directorys that have been scanned.
file_count_type diskCache::Cache::Directory::ScanResults::FileCount | ( | ) | const |
Retrieve the number of Files scanned.
file_count_type diskCache::Cache::Directory::ScanResults::FileCount | ( | ) | const |
Retrieve the number of Files scanned.
|
inline |
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 | ) |
Increment the number of Files scanned.
[in] | Value | The amount by which to incriment the file count. |
void diskCache::Cache::Directory::ScanResults::FileCountInc | ( | file_count_type | Value | ) |
Increment the number of Files scanned.
[in] | Value | The amount by which to incriment the file count. |
|
inline |
Increment the number of Files scanned.
Increment the number of files that have been scanned.
[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 |
Create a log message.
void diskCache::Cache::Directory::ScanResults::Log | ( | const std::string & | Caller, |
const std::string & | JobInfo | ||
) | const |
Create a log message.
void diskCache::Cache::Directory::ScanResults::Log | ( | const std::string & | Caller, |
const std::string & | JobInfo | ||
) | const |
Create a log message.
|
inline |
Scan through the results.
|
inline |
Scan through the results.
|
inline |
Scan through the results.
const filename_container_type& diskCache::Cache::Directory::ScanResults::Removed | ( | const std::string & | DirectoryName | ) | const |
Retrieve the collection of removed directories.
[in] | DirectoryName | The parent directory |
|
inline |
Retrieve the collection of removed directories.
[in] | DirectoryName | The parent directory |
const filename_container_type& diskCache::Cache::Directory::ScanResults::Removed | ( | const std::string & | DirectoryName | ) | const |
Retrieve the collection of removed directories.
[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.
[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, |
filename_container_type & | Subdirectories | ||
) |
Add the directories that were removed.
[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, |
filename_container_type & | Subdirectories | ||
) |
Add the directories that were removed.
[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 | ||
) |
void diskCache::Cache::Directory::ScanResults::Removed | ( | const std::string & | DirectoryName, |
const std::string & | SearchEngine, | ||
INT_4U | FileCount | ||
) |
|
inline |
const directory_container_type& diskCache::Cache::Directory::ScanResults::Results | ( | ) | const |
const directory_container_type& diskCache::Cache::Directory::ScanResults::Results | ( | ) | const |
|
inline |
void diskCache::Cache::Directory::ScanResults::State | ( | const std::string & | DirectoryName, |
directory_state | State | ||
) |
Record the directory state at the time of scanning.
[in] | DirectoryName | The name of the directory that was scanned. |
[in] | State | The state of the directory at the time of being scanned. |
void diskCache::Cache::Directory::ScanResults::State | ( | const std::string & | DirectoryName, |
directory_state | State | ||
) |
Record the directory state at the time of scanning.
[in] | DirectoryName | The name of the directory that was scanned. |
[in] | State | The state of the directory at the time of being scanned. |
|
inline |
Record the directory state at the time of scanning.
[in] | DirectoryName | The name of the directory that was scanned. |
[in] | State | The state of the directory at the time of being scanned. |
|
private |
|
private |
|
private |