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

Anaphe::AIDA_Tree_native::AIDA_Tree Class Reference

#include <AIDA_Tree.h>

Collaboration diagram for Anaphe::AIDA_Tree_native::AIDA_Tree:

Collaboration graph
[legend]
List of all members.

Public Methods

 AIDA_Tree (AIDA::Dev::IStore *store)
 Constructor.

 ~AIDA_Tree ()
 Destructor.

bool add (AIDA::IManagedObject *object, const std::string &directory=".")
 Methods inherited from the IDevTree class.

bool copyAndAdd (AIDA::IManagedObject *object, const std::string &newPath)
AIDA::Dev::IStore * store (const std::string &path=".")
AIDA::Dev::IStore * nativeStore ()
std::string pathInStore (const AIDA::IManagedObject &object) const
bool existsDirectory (const std::string &directory) const
bool isMounted () const
bool setParentTree (AIDA::Dev::IDevTree *parentTree)
bool unmountTree (AIDA::Dev::IDevTree *daughterTree)
const std::string & storeName () const
 Methods inherited from the ITree class.

AIDA::IManagedObject * find (const std::string &path)
bool cd (const std::string &path)
const std::string & pwd () const
bool ls (const std::string &path=".", bool recursive=false, std::ostream &os=std::cout) const
std::vector< std::string > listObjectNames (const std::string &path=".", bool recursive=false) const
std::vector< std::string > listObjectTypes (const std::string &path=".", bool recursive=false) const
bool mkdir (const std::string &path)
bool mkdirs (const std::string &path)
bool rmdir (const std::string &path)
bool rm (const std::string &path)
std::string findPath (const AIDA::IManagedObject &object) const
bool mv (const std::string &oldPath, const std::string &newPath)
bool commit ()
void setOverwrite (bool overwrite=true)
bool cp (const std::string &oldPath, const std::string &newPath, bool recursive=false)
bool symlink (const std::string &path, const std::string &alias)
bool mount (const std::string &path, AIDA::ITree &tree, const std::string &treePath)
bool unmount (const std::string &path)
bool close ()

Private Methods

std::string absolutePath (const std::string &path) const

Private Attributes

AIDA::Dev::IStore * m_store
AIDA::Dev::IDevTree * m_parentTree
bool m_overWrite
std::string m_cwd
std::map< AIDA::Dev::IDevTree *,
Anaphe::AIDA_Tree_native::MountInfo * > 
m_mountPoints
std::map< const AIDA::IManagedObject *,
std::string > 
m_objectPaths
Anaphe::AIDA_Tree_native::SubTreem_rootDir

Constructor & Destructor Documentation

Anaphe::AIDA_Tree_native::AIDA_Tree::AIDA_Tree AIDA::Dev::IStore *    store
 

Definition at line 10 of file AIDA_Tree.cpp.

References Anaphe::AIDA_Tree_native::SubTree::add(), m_objectPaths, m_rootDir, m_store, and Anaphe::AIDA_Tree_native::SubTree::mkdirs().

Anaphe::AIDA_Tree_native::AIDA_Tree::~AIDA_Tree  
 

Definition at line 44 of file AIDA_Tree.cpp.

References m_mountPoints, m_parentTree, m_rootDir, and m_store.


Member Function Documentation

std::string Anaphe::AIDA_Tree_native::AIDA_Tree::absolutePath const std::string &    path const [private]
 

Definition at line 492 of file AIDA_Tree.cpp.

References emptyString, and m_cwd.

Referenced by add(), cd(), copyAndAdd(), cp(), existsDirectory(), find(), listObjectNames(), listObjectTypes(), mkdir(), mkdirs(), mount(), mv(), rm(), rmdir(), store(), symlink(), and unmount().

bool Anaphe::AIDA_Tree_native::AIDA_Tree::add AIDA::IManagedObject *    object,
const std::string &    directory = "."
 

Definition at line 67 of file AIDA_Tree.cpp.

References absolutePath(), Anaphe::AIDA_Tree_native::SubTree::add(), m_objectPaths, m_overWrite, and m_rootDir.

bool Anaphe::AIDA_Tree_native::AIDA_Tree::cd const std::string &    path
 

Definition at line 160 of file AIDA_Tree.cpp.

References absolutePath(), and m_cwd.

bool Anaphe::AIDA_Tree_native::AIDA_Tree::close  
 

Definition at line 451 of file AIDA_Tree.cpp.

References m_store.

bool Anaphe::AIDA_Tree_native::AIDA_Tree::commit  
 

Definition at line 339 of file AIDA_Tree.cpp.

References m_mountPoints, and m_store.

bool Anaphe::AIDA_Tree_native::AIDA_Tree::copyAndAdd AIDA::IManagedObject *    object,
const std::string &    newPath
 

Definition at line 84 of file AIDA_Tree.cpp.

References absolutePath(), Anaphe::AIDA_Tree_native::SubTree::add(), existsDirectory(), m_objectPaths, m_overWrite, m_rootDir, and m_store.

Referenced by cp().

bool Anaphe::AIDA_Tree_native::AIDA_Tree::cp const std::string &    oldPath,
const std::string &    newPath,
bool    recursive = false
 

Definition at line 367 of file AIDA_Tree.cpp.

References absolutePath(), copyAndAdd(), find(), listObjectNames(), listObjectTypes(), and mkdirs().

Referenced by mv().

bool Anaphe::AIDA_Tree_native::AIDA_Tree::existsDirectory const std::string &    directory const
 

Definition at line 180 of file AIDA_Tree.cpp.

References absolutePath(), Anaphe::AIDA_Tree_native::SubTree::existsDirectory(), and m_rootDir.

Referenced by copyAndAdd(), ls(), and mv().

AIDA::IManagedObject * Anaphe::AIDA_Tree_native::AIDA_Tree::find const std::string &    path
 

Definition at line 152 of file AIDA_Tree.cpp.

References absolutePath(), Anaphe::AIDA_Tree_native::SubTree::find(), m_objectPaths, and m_rootDir.

Referenced by cp().

std::string Anaphe::AIDA_Tree_native::AIDA_Tree::findPath const AIDA::IManagedObject &    object const
 

Definition at line 213 of file AIDA_Tree.cpp.

References emptyString, m_mountPoints, and m_objectPaths.

bool Anaphe::AIDA_Tree_native::AIDA_Tree::isMounted   const
 

Definition at line 120 of file AIDA_Tree.cpp.

References m_parentTree.

std::vector< std::string > Anaphe::AIDA_Tree_native::AIDA_Tree::listObjectNames const std::string &    path = ".",
bool    recursive = false
const
 

Definition at line 458 of file AIDA_Tree.cpp.

References absolutePath(), Anaphe::AIDA_Tree_native::SubTree::listObjectNames(), and m_rootDir.

Referenced by cp(), and ls().

std::vector< std::string > Anaphe::AIDA_Tree_native::AIDA_Tree::listObjectTypes const std::string &    path = ".",
bool    recursive = false
const
 

Definition at line 467 of file AIDA_Tree.cpp.

References absolutePath(), Anaphe::AIDA_Tree_native::SubTree::listObjectTypes(), and m_rootDir.

Referenced by cp(), and ls().

bool Anaphe::AIDA_Tree_native::AIDA_Tree::ls const std::string &    path = ".",
bool    recursive = false,
std::ostream &    os = std::cout
const
 

Definition at line 476 of file AIDA_Tree.cpp.

References existsDirectory(), listObjectNames(), and listObjectTypes().

bool Anaphe::AIDA_Tree_native::AIDA_Tree::mkdir const std::string &    path
 

Definition at line 189 of file AIDA_Tree.cpp.

References absolutePath(), m_rootDir, and Anaphe::AIDA_Tree_native::SubTree::mkdir().

bool Anaphe::AIDA_Tree_native::AIDA_Tree::mkdirs const std::string &    path
 

Definition at line 197 of file AIDA_Tree.cpp.

References absolutePath(), m_rootDir, and Anaphe::AIDA_Tree_native::SubTree::mkdirs().

Referenced by cp().

bool Anaphe::AIDA_Tree_native::AIDA_Tree::mount const std::string &    path,
AIDA::ITree &    tree,
const std::string &    treePath
 

Definition at line 422 of file AIDA_Tree.cpp.

References absolutePath(), m_mountPoints, m_rootDir, and Anaphe::AIDA_Tree_native::SubTree::mount().

bool Anaphe::AIDA_Tree_native::AIDA_Tree::mv const std::string &    oldPath,
const std::string &    newPath
 

Definition at line 261 of file AIDA_Tree.cpp.

References absolutePath(), Anaphe::AIDA_Tree_native::SubTree::add(), cp(), existsDirectory(), Anaphe::AIDA_Tree_native::SubTree::findAndErase(), m_mountPoints, m_objectPaths, m_overWrite, m_rootDir, m_store, rm(), and store().

AIDA::Dev::IStore * Anaphe::AIDA_Tree_native::AIDA_Tree::nativeStore  
 

Definition at line 104 of file AIDA_Tree.cpp.

References m_store.

std::string Anaphe::AIDA_Tree_native::AIDA_Tree::pathInStore const AIDA::IManagedObject &    object const
 

Definition at line 243 of file AIDA_Tree.cpp.

References emptyString, m_mountPoints, and m_objectPaths.

const std::string & Anaphe::AIDA_Tree_native::AIDA_Tree::pwd   const
 

Definition at line 173 of file AIDA_Tree.cpp.

References m_cwd.

bool Anaphe::AIDA_Tree_native::AIDA_Tree::rm const std::string &    path
 

Definition at line 359 of file AIDA_Tree.cpp.

References absolutePath(), m_objectPaths, m_rootDir, and Anaphe::AIDA_Tree_native::SubTree::rm().

Referenced by mv().

bool Anaphe::AIDA_Tree_native::AIDA_Tree::rmdir const std::string &    path
 

Definition at line 205 of file AIDA_Tree.cpp.

References absolutePath(), m_rootDir, and Anaphe::AIDA_Tree_native::SubTree::rmdir().

void Anaphe::AIDA_Tree_native::AIDA_Tree::setOverwrite bool    overwrite = true
 

Definition at line 352 of file AIDA_Tree.cpp.

References m_overWrite.

bool Anaphe::AIDA_Tree_native::AIDA_Tree::setParentTree AIDA::Dev::IDevTree *    parentTree
 

Definition at line 127 of file AIDA_Tree.cpp.

References m_parentTree.

AIDA::Dev::IStore * Anaphe::AIDA_Tree_native::AIDA_Tree::store const std::string &    path = "."
 

Definition at line 111 of file AIDA_Tree.cpp.

References absolutePath(), m_rootDir, m_store, and Anaphe::AIDA_Tree_native::SubTree::store().

Referenced by mv().

const std::string & Anaphe::AIDA_Tree_native::AIDA_Tree::storeName   const
 

Definition at line 145 of file AIDA_Tree.cpp.

References m_store.

bool Anaphe::AIDA_Tree_native::AIDA_Tree::symlink const std::string &    path,
const std::string &    alias
 

Definition at line 410 of file AIDA_Tree.cpp.

References absolutePath(), m_rootDir, and Anaphe::AIDA_Tree_native::SubTree::symlink().

bool Anaphe::AIDA_Tree_native::AIDA_Tree::unmount const std::string &    path
 

Definition at line 443 of file AIDA_Tree.cpp.

References absolutePath(), m_mountPoints, m_rootDir, and Anaphe::AIDA_Tree_native::SubTree::unmount().

bool Anaphe::AIDA_Tree_native::AIDA_Tree::unmountTree AIDA::Dev::IDevTree *    daughterTree
 

Definition at line 135 of file AIDA_Tree.cpp.

References m_mountPoints, m_rootDir, and Anaphe::AIDA_Tree_native::SubTree::unmount().


Member Data Documentation

std::string Anaphe::AIDA_Tree_native::AIDA_Tree::m_cwd [private]
 

Definition at line 85 of file AIDA_Tree.h.

Referenced by absolutePath(), cd(), and pwd().

std::map< AIDA::Dev::IDevTree*, Anaphe::AIDA_Tree_native::MountInfo* > Anaphe::AIDA_Tree_native::AIDA_Tree::m_mountPoints [private]
 

Definition at line 86 of file AIDA_Tree.h.

Referenced by commit(), findPath(), mount(), mv(), pathInStore(), unmount(), unmountTree(), and ~AIDA_Tree().

std::map< const AIDA::IManagedObject*, std::string > Anaphe::AIDA_Tree_native::AIDA_Tree::m_objectPaths [private]
 

Definition at line 87 of file AIDA_Tree.h.

Referenced by add(), AIDA_Tree(), copyAndAdd(), find(), findPath(), mv(), pathInStore(), and rm().

bool Anaphe::AIDA_Tree_native::AIDA_Tree::m_overWrite [private]
 

Definition at line 84 of file AIDA_Tree.h.

Referenced by add(), copyAndAdd(), mv(), and setOverwrite().

AIDA::Dev::IDevTree* Anaphe::AIDA_Tree_native::AIDA_Tree::m_parentTree [private]
 

Definition at line 83 of file AIDA_Tree.h.

Referenced by isMounted(), setParentTree(), and ~AIDA_Tree().

Anaphe::AIDA_Tree_native::SubTree* Anaphe::AIDA_Tree_native::AIDA_Tree::m_rootDir [private]
 

Definition at line 88 of file AIDA_Tree.h.

Referenced by add(), AIDA_Tree(), copyAndAdd(), existsDirectory(), find(), listObjectNames(), listObjectTypes(), mkdir(), mkdirs(), mount(), mv(), rm(), rmdir(), store(), symlink(), unmount(), unmountTree(), and ~AIDA_Tree().

AIDA::Dev::IStore* Anaphe::AIDA_Tree_native::AIDA_Tree::m_store [private]
 

Definition at line 82 of file AIDA_Tree.h.

Referenced by AIDA_Tree(), close(), commit(), copyAndAdd(), mv(), nativeStore(), store(), storeName(), and ~AIDA_Tree().


The documentation for this class was generated from the following files:
Generated on Tue Feb 18 17:51:16 2003 for AIDA_Tree_native by doxygen1.2.16