Main Page   Namespace List   Alphabetical List   Compound List   File List   Compound Members   File Members  

Anaphe::AIDA_Tree_native::SubTree Class Reference

Class which describes a node in a tree.

#include <SubTree.h>

Collaboration diagram for Anaphe::AIDA_Tree_native::SubTree:

Collaboration graph
[legend]
List of all members.

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::MountInfom_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...


Constructor & Destructor Documentation

Anaphe::AIDA_Tree_native::SubTree::SubTree const std::string &    name,
AIDA::Dev::IDevTree *   
 

Definition at line 8 of file SubTree.cpp.

Anaphe::AIDA_Tree_native::SubTree::~SubTree  
 

Definition at line 19 of file SubTree.cpp.

References m_mountInfo, m_objects, and m_subTrees.

Anaphe::AIDA_Tree_native::SubTree::SubTree const SubTree &    [private]
 


Member Function Documentation

bool Anaphe::AIDA_Tree_native::SubTree::add AIDA::IManagedObject *    object,
std::list< std::string > &    path,
bool    overWrite,
std::map< const AIDA::IManagedObject *, std::string > &    objectMap,
bool    copy,
bool    writeInStore = true
 

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.

bool Anaphe::AIDA_Tree_native::SubTree::existsDirectory std::list< std::string > &    path
 

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.

AIDA::IManagedObject * Anaphe::AIDA_Tree_native::SubTree::find std::list< std::string > &    path,
std::map< const AIDA::IManagedObject *, std::string > &    objectMap
 

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.

AIDA::IManagedObject * Anaphe::AIDA_Tree_native::SubTree::findAndErase std::list< std::string > &    path
 

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.

std::vector< std::string > Anaphe::AIDA_Tree_native::SubTree::listObjectNames std::list< std::string > &    path,
bool    recursive
const
 

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.

std::vector< std::string > Anaphe::AIDA_Tree_native::SubTree::listObjectTypes std::list< std::string > &    path,
bool    recursive
const
 

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.

bool Anaphe::AIDA_Tree_native::SubTree::mkdir std::list< std::string > &    path
 

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.

bool Anaphe::AIDA_Tree_native::SubTree::mkdirs std::list< std::string > &    path
 

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.

bool Anaphe::AIDA_Tree_native::SubTree::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
 

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.

SubTree& Anaphe::AIDA_Tree_native::SubTree::operator= const SubTree &    [private]
 

bool Anaphe::AIDA_Tree_native::SubTree::rm std::list< std::string > &    path,
std::map< const AIDA::IManagedObject *, std::string > &    objectMap
 

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.

bool Anaphe::AIDA_Tree_native::SubTree::rmdir std::list< std::string > &    path
 

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.

AIDA::Dev::IStore * Anaphe::AIDA_Tree_native::SubTree::store std::list< std::string > &    path
 

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.

bool Anaphe::AIDA_Tree_native::SubTree::symlink const std::string &    path,
std::list< std::string > &    alias
 

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.

bool Anaphe::AIDA_Tree_native::SubTree::unmount std::list< std::string > &    path,
std::map< AIDA::Dev::IDevTree *, Anaphe::AIDA_Tree_native::MountInfo * > &    mountPoints
 

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.


Member Data Documentation

std::map< std::string, std::string > Anaphe::AIDA_Tree_native::SubTree::m_links [private]
 

Definition at line 90 of file SubTree.h.

Referenced by add, find, findAndErase, listObjectNames, listObjectTypes, mkdir, mkdirs, rm, store, and symlink.

AIDA::Dev::IDevTree* Anaphe::AIDA_Tree_native::SubTree::m_masterTree [private]
 

Definition at line 82 of file SubTree.h.

Referenced by add, find, listObjectNames, listObjectTypes, mkdir, mkdirs, mount, rm, and store.

Anaphe::AIDA_Tree_native::MountInfo* Anaphe::AIDA_Tree_native::SubTree::m_mountInfo [private]
 

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.

std::string Anaphe::AIDA_Tree_native::SubTree::m_name [private]
 

Definition at line 80 of file SubTree.h.

Referenced by add, find, listObjectNames, listObjectTypes, mkdir, mkdirs, mount, and rm.

std::map< std::string, AIDA::IManagedObject* > Anaphe::AIDA_Tree_native::SubTree::m_objects [private]
 

Definition at line 88 of file SubTree.h.

Referenced by add, find, findAndErase, mkdir, mkdirs, rm, rmdir, store, symlink, and ~SubTree.

std::map< std::string, SubTree* > Anaphe::AIDA_Tree_native::SubTree::m_subTrees [private]
 

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.


The documentation for this class was generated from the following files:
Generated on Tue May 20 14:49:46 2003 for AIDA_Tree_native by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002