#include <SubTree.h>
Collaboration diagram for Anaphe::AIDA_Tree_native::SubTree:
Public Methods | |
SubTree (const std::string &name, AIDA::Dev::IDevTree *) | |
Constructor. More... | |
~SubTree () | |
Destructor. More... | |
bool | add (AIDA::IManagedObject *object, std::list< std::string > &path, bool overWrite, std::map< const AIDA::IManagedObject *, std::string > &objectMap, bool copy, bool writeInStore=true) |
Add method. More... | |
AIDA::IManagedObject * | find (std::list< std::string > &path, std::map< const AIDA::IManagedObject *, std::string > &objectMap) |
find method. More... | |
AIDA::IManagedObject * | findAndErase (std::list< std::string > &path) |
AIDA::Dev::IStore * | store (std::list< std::string > &path) |
finds the store for a given directory or object. More... | |
bool | existsDirectory (std::list< std::string > &path) |
Checks the existence of a directory. More... | |
bool | mkdir (std::list< std::string > &path) |
makes a new directory. More... | |
bool | mkdirs (std::list< std::string > &path) |
bool | rmdir (std::list< std::string > &path) |
removes a directory. More... | |
bool | rm (std::list< std::string > &path, std::map< const AIDA::IManagedObject *, std::string > &objectMap) |
removes an object. More... | |
bool | symlink (const std::string &path, std::list< std::string > &alias) |
creates a symbolic link. More... | |
bool | mount (const std::string &path, AIDA::Dev::IDevTree *tree, std::list< std::string > &treePath, std::map< AIDA::Dev::IDevTree *, Anaphe::AIDA_Tree_native::MountInfo * > &mountPoints) |
mounts a tree. More... | |
bool | unmount (std::list< std::string > &path, std::map< AIDA::Dev::IDevTree *, Anaphe::AIDA_Tree_native::MountInfo * > &mountPoints) |
unmounts a tree. More... | |
std::vector< std::string > | listObjectNames (std::list< std::string > &path, bool recursive) const |
lists the object names under this node. More... | |
std::vector< std::string > | listObjectTypes (std::list< std::string > &path, bool recursive) const |
lists the type names of the objects under this node. More... | |
Private Methods | |
SubTree (const SubTree &) | |
SubTree & | operator= (const SubTree &) |
Private Attributes | |
std::string | m_name |
Full path of the node. More... | |
AIDA::Dev::IDevTree * | m_masterTree |
Pointer to the master tree. More... | |
Anaphe::AIDA_Tree_native::MountInfo * | m_mountInfo |
Pointer to the mount summary information (if the node is a mount point). More... | |
std::map< std::string, SubTree * > | m_subTrees |
Dependent nodes (subdirectories). More... | |
std::map< std::string, AIDA::IManagedObject * > | m_objects |
Dependend objects. More... | |
std::map< std::string, std::string > | m_links |
Dependent links. More... |
|
Definition at line 8 of file SubTree.cpp. |
|
Definition at line 19 of file SubTree.cpp. References m_mountInfo, m_objects, and m_subTrees. |
|
|
|
Definition at line 34 of file SubTree.cpp. References m_links, m_masterTree, m_mountInfo, m_name, m_objects, m_subTrees, Anaphe::AIDA_Tree_native::MountInfo::targetPath, and Anaphe::AIDA_Tree_native::MountInfo::targetTree. Referenced by Anaphe::AIDA_Tree_native::AIDA_Tree::add, Anaphe::AIDA_Tree_native::AIDA_Tree::AIDA_Tree, Anaphe::AIDA_Tree_native::AIDA_Tree::copyAndAdd, and Anaphe::AIDA_Tree_native::AIDA_Tree::mv. |
|
Definition at line 163 of file SubTree.cpp. References m_mountInfo, m_subTrees, Anaphe::AIDA_Tree_native::MountInfo::targetPath, and Anaphe::AIDA_Tree_native::MountInfo::targetTree. Referenced by Anaphe::AIDA_Tree_native::AIDA_Tree::existsDirectory. |
|
Definition at line 395 of file SubTree.cpp. References m_links, m_masterTree, m_mountInfo, m_name, m_objects, m_subTrees, Anaphe::AIDA_Tree_native::MountInfo::targetPath, and Anaphe::AIDA_Tree_native::MountInfo::targetTree. Referenced by Anaphe::AIDA_Tree_native::AIDA_Tree::find. |
|
Definition at line 435 of file SubTree.cpp. References m_links, m_objects, and m_subTrees. Referenced by Anaphe::AIDA_Tree_native::AIDA_Tree::mv. |
|
Definition at line 465 of file SubTree.cpp. References m_links, m_masterTree, m_mountInfo, m_name, m_subTrees, Anaphe::AIDA_Tree_native::MountInfo::targetPath, and Anaphe::AIDA_Tree_native::MountInfo::targetTree. Referenced by Anaphe::AIDA_Tree_native::AIDA_Tree::listObjectNames. |
|
Definition at line 514 of file SubTree.cpp. References m_links, m_masterTree, m_mountInfo, m_name, m_subTrees, Anaphe::AIDA_Tree_native::MountInfo::targetPath, and Anaphe::AIDA_Tree_native::MountInfo::targetTree. Referenced by Anaphe::AIDA_Tree_native::AIDA_Tree::listObjectTypes. |
|
Definition at line 185 of file SubTree.cpp. References m_links, m_masterTree, m_mountInfo, m_name, m_objects, m_subTrees, Anaphe::AIDA_Tree_native::MountInfo::targetPath, and Anaphe::AIDA_Tree_native::MountInfo::targetTree. Referenced by Anaphe::AIDA_Tree_native::AIDA_Tree::mkdir, and mkdirs. |
|
Definition at line 212 of file SubTree.cpp. References m_links, m_masterTree, m_mountInfo, m_name, m_objects, m_subTrees, mkdir, Anaphe::AIDA_Tree_native::MountInfo::targetPath, and Anaphe::AIDA_Tree_native::MountInfo::targetTree. Referenced by Anaphe::AIDA_Tree_native::AIDA_Tree::AIDA_Tree, and Anaphe::AIDA_Tree_native::AIDA_Tree::mkdirs. |
|
Definition at line 298 of file SubTree.cpp. References m_masterTree, m_mountInfo, m_name, and m_subTrees. Referenced by Anaphe::AIDA_Tree_native::AIDA_Tree::mount. |
|
|
|
Definition at line 358 of file SubTree.cpp. References m_links, m_masterTree, m_mountInfo, m_name, m_objects, m_subTrees, Anaphe::AIDA_Tree_native::MountInfo::targetPath, and Anaphe::AIDA_Tree_native::MountInfo::targetTree. Referenced by Anaphe::AIDA_Tree_native::AIDA_Tree::rm. |
|
Definition at line 239 of file SubTree.cpp. References m_mountInfo, m_objects, m_subTrees, Anaphe::AIDA_Tree_native::MountInfo::targetPath, and Anaphe::AIDA_Tree_native::MountInfo::targetTree. Referenced by Anaphe::AIDA_Tree_native::AIDA_Tree::rmdir. |
|
Definition at line 132 of file SubTree.cpp. References m_links, m_masterTree, m_mountInfo, m_objects, m_subTrees, Anaphe::AIDA_Tree_native::MountInfo::targetPath, and Anaphe::AIDA_Tree_native::MountInfo::targetTree. Referenced by Anaphe::AIDA_Tree_native::AIDA_Tree::store. |
|
Definition at line 270 of file SubTree.cpp. References m_links, m_mountInfo, m_objects, m_subTrees, Anaphe::AIDA_Tree_native::MountInfo::targetPath, and Anaphe::AIDA_Tree_native::MountInfo::targetTree. Referenced by Anaphe::AIDA_Tree_native::AIDA_Tree::symlink. |
|
Definition at line 327 of file SubTree.cpp. References m_mountInfo, m_subTrees, and Anaphe::AIDA_Tree_native::MountInfo::targetTree. Referenced by Anaphe::AIDA_Tree_native::AIDA_Tree::unmount, and Anaphe::AIDA_Tree_native::AIDA_Tree::unmountTree. |
|
Definition at line 90 of file SubTree.h. Referenced by add, find, findAndErase, listObjectNames, listObjectTypes, mkdir, mkdirs, rm, store, and symlink. |
|
Definition at line 82 of file SubTree.h. Referenced by add, find, listObjectNames, listObjectTypes, mkdir, mkdirs, mount, rm, and store. |
|
Definition at line 84 of file SubTree.h. Referenced by add, existsDirectory, find, listObjectNames, listObjectTypes, mkdir, mkdirs, mount, rm, rmdir, store, symlink, unmount, and ~SubTree. |
|
Definition at line 80 of file SubTree.h. Referenced by add, find, listObjectNames, listObjectTypes, mkdir, mkdirs, mount, and rm. |
|
Definition at line 88 of file SubTree.h. Referenced by add, find, findAndErase, mkdir, mkdirs, rm, rmdir, store, symlink, and ~SubTree. |
|
Definition at line 86 of file SubTree.h. Referenced by add, existsDirectory, find, findAndErase, listObjectNames, listObjectTypes, mkdir, mkdirs, mount, rm, rmdir, store, symlink, unmount, and ~SubTree. |