Public Member Functions |
|
| Tree (std::string storename, bool xml=true) |
| | The standard constructor.
|
|
| Tree () |
| | The default constructor.
|
|
| Tree (const Tree &dt) |
| | The copy constructor.
|
|
virtual | ~Tree () |
| | Destructor.
|
| std::string | storeName () const |
| | Get the name of the store.
|
| IManagedObject * | find (const std::string &path) |
| | Get the IManagedObject at a given path in the ITree.
|
| ITree * | findTree (const std::string &) |
| | LWH cannot get a mounted ITree at a given path in the current ITree.
|
| bool | cd (const std::string &dir) |
| | Change to a given directory.
|
|
bool | insert (std::string str, IManagedObject *o) |
| | Insert the ManagedObject o in the tree with the path str.
|
| std::string | pwd () const |
| | Get the path of the current working directory.
|
| bool | ls (const std::string &=".", bool=false, std::ostream &=std::cout) const |
| | Not implemented in LWH.
|
|
std::vector< std::string > | listObjectNames (const std::string &=".", bool=false) const |
| | Not implemented in LWH.
|
|
std::vector< std::string > | listObjectTypes (const std::string &=".", bool=false) const |
| | Not implemented in LWH.
|
| bool | mkdir (const std::string &dir) |
| | Create a new directory.
|
| bool | mkdirs (const std::string &dir) |
| | Create a directory recursively.
|
| bool | mkdirs (Path p) |
| | Create a directory recursively.
|
| bool | rmdir (const std::string &dir) |
| | Remove a directory and all the contents underneeth.
|
| bool | rm (const std::string &path) |
| | Remove and delete an IManagedObject by specifying its path.
|
| std::string | findPath (const IManagedObject &o) const |
| | Get the full path of an IManagedObject.
|
| bool | mv (const std::string &oldp, const std::string &newp) |
| | Move an IManagedObject or a directory from one directory to another.
|
| bool | commit () |
| | Print all histograms to the current filename.
|
|
void | setOverwrite (bool o=true) |
| | Not implemented in LWH.
|
| bool | cp (const std::string &, const std::string &, bool=false) |
| | Not implemented in LWH.
|
| bool | symlink (const std::string &, const std::string &) |
| | Not implemented in LWH.
|
| bool | mount (const std::string &, ITree &, const std::string &) |
| | Not implemented in LWH.
|
| bool | unmount (const std::string &) |
| | Not implemented in LWH.
|
|
bool | close () |
| | Calls commit().
|
| void * | cast (const std::string &) const |
| | Not implemented in LWH.
|
Protected Member Functions |
| std::string | sts (std::string s) const |
| | Strip trailing slash.
|
|
std::string | stn (std::string s) const |
| | Strip trailing name.
|
| std::string | fullpath (std::string d) const |
| | Get proper full path from possibly relative path.
|
| Path | str2pth (std::string s) const |
| | Convert a string containing a path to a Path object.
|
| std::string | pth2str (const Path &pth) const |
| | Convert a Path object to a corresponding string.
|
| Path | purgepath (const Path &pth) const |
| | Remove '..' and '.
|
The Tree class is a simple implementation of the AIDA::ITree interface.
Definition at line 32 of file Tree.h.