Manages a collection of mount points.
More...
#include <DirectoryManagerSingleton.hh>
Inherits diskCache::Cache::DirectoryManager, diskCache::Cache::DirectoryManager, and diskCache::Cache::DirectoryManager.
|
static void | RemoveDirectoryRecursively (const std::string &Name) |
| Remove a directory from the collection.
|
|
static void | Scan (const std::string &Root, ScanResults &Results) |
| Recursively scan a managed directory.
|
|
template<typename StreamT > |
static StreamT & | Read (StreamT &Stream) |
| Initialize information from the stream. More...
|
|
template<typename OStreamT > |
static OStreamT & | Write (OStreamT &Stream) |
| Dump information to the stream. More...
|
|
static void | RemoveDirectoryRecursively (const std::string &Name) |
| Remove a directory from the collection.
|
|
static void | Scan (const std::string &Root, ScanResults &Results) |
| Recursively scan a managed directory.
|
|
template<typename StreamT > |
static StreamT & | Read (StreamT &Stream) |
| Initialize information from the stream. More...
|
|
template<typename OStreamT > |
static OStreamT & | Write (OStreamT &Stream) |
| Dump information to the stream. More...
|
|
static void | RemoveDirectoryRecursively (const std::string &Name) |
| Remove a directory from the collection.
|
|
static void | Scan (const std::string &Root, ScanResults &Results) |
| Recursively scan a managed directory.
|
|
template<typename StreamT > |
static StreamT & | Read (StreamT &Stream) |
| Initialize information from the stream. More...
|
|
template<typename OStreamT > |
static OStreamT & | Write (OStreamT &Stream) |
| Dump information to the stream. More...
|
|
|
void | Find (const std::string &Root, QueryAnswer &Answer) const |
| Locate files.
|
|
void | Scan (directory_ref_type Dir, ScanResults &Results) |
| Scan the directory for changes.
|
|
void | CreateDirectory (const std::string &Name, const std::string &Root) |
| Create a new directory to be added to the collection. More...
|
|
void | OnUpdate (directory_ref_type Dir, ScanResults &Results) |
| Update information concearning a single directory. More...
|
|
directory_ref_type | ReferenceDirectory (const std::string &Name) const |
| Locate a directory in the collection.
|
|
void | RemoveDirectory (const std::string &Name) |
| Remove a directory from the collection.
|
|
template<class Op > |
void | Walk (Op Operation, const std::string &Root, bool IncludeOffline=false) |
| Walk the tree performing the requested operation. More...
|
|
template<class Op > |
void | Walk (const Op Operation, const std::string &Root, bool IncludeOffline=false) const |
| Walk the tree performing the requested operation. More...
|
|
template<class Op > |
void | WalkDepthFirst (Op Operation, const std::string &Root) |
| Walk the tree depth first performing the requested operation. More...
|
|
Manages a collection of mount points.
A collection of mount points is managed by this singleton class. Each mount point represents a starting point for data searches. The collection of mount points is order sensative in that directories that appear higher in the list will be prioritised when searching for data.
◆ Read() [1/3]
template<typename StreamT >
StreamT & diskCache::DirectoryManagerSingleton::Read |
( |
StreamT & |
Stream | ) |
|
|
inlinestatic |
Initialize information from the stream.
- Parameters
-
[in] | Stream | Source of the information. |
◆ Read() [2/3]
template<typename StreamT >
static StreamT& diskCache::DirectoryManagerSingleton::Read |
( |
StreamT & |
Stream | ) |
|
|
static |
Initialize information from the stream.
- Parameters
-
[in] | Stream | Source of the information. |
◆ Read() [3/3]
template<typename StreamT >
static StreamT& diskCache::DirectoryManagerSingleton::Read |
( |
StreamT & |
Stream | ) |
|
|
static |
Initialize information from the stream.
- Parameters
-
[in] | Stream | Source of the information. |
◆ Write() [1/3]
template<typename OStreamT >
OStreamT & diskCache::DirectoryManagerSingleton::Write |
( |
OStreamT & |
Stream | ) |
|
|
inlinestatic |
Dump information to the stream.
- Parameters
-
[in] | Stream | Sink for the information. |
◆ Write() [2/3]
template<typename OStreamT >
static OStreamT& diskCache::DirectoryManagerSingleton::Write |
( |
OStreamT & |
Stream | ) |
|
|
static |
Dump information to the stream.
- Parameters
-
[in] | Stream | Sink for the information. |
◆ Write() [3/3]
template<typename OStreamT >
static OStreamT& diskCache::DirectoryManagerSingleton::Write |
( |
OStreamT & |
Stream | ) |
|
|
static |
Dump information to the stream.
- Parameters
-
[in] | Stream | Sink for the information. |
The documentation for this class was generated from the following file:
- /build/ldas-tools-diskcacheapi-2.7.2/debian/tmp/usr/include/diskcacheAPI/DirectoryManagerSingleton.hh