RAIDA
1.9.0
|
class IManagedObject; More...
#include <ITree.h>
Public Member Functions | |
virtual | ~ITree () |
Destructor. | |
virtual std::string | storeName () const =0 |
Get the name of the store. More... | |
virtual bool | cd (const std::string &path)=0 |
Get the IManagedObject at a given path in the ITree. More... | |
virtual std::string | pwd () const =0 |
Get the path of the current working directory. More... | |
virtual bool | ls (const std::string &path=".", bool recursive=false, std::ostream &os=std::cout) const =0 |
List, into a given output stream, all the IManagedObjects, including directories (but not "." and ".."), in a given path. More... | |
virtual bool | mkdir (const std::string &path)=0 |
Get the list of names of the IManagedObjects under a given path, including directories (but not "." and ".."). More... | |
virtual bool | commit ()=0 |
Create a directory recursively. More... | |
virtual bool | close ()=0 |
Set the strategy of what should happen if two objects have the same path. More... | |
class IManagedObject;
User level interface to a Tree.
All paths follow unix convention .., ., /, backslash is the escape character. Relative paths are allowed.
NOTE: - this tree keeps a current position(pwd) within the tree. This may be implemented on a per-thread basis.
|
pure virtual |
Get the IManagedObject at a given path in the ITree.
The path can either be absolute or relative to the current working directory.
path | The path. |
path | The path. |
path | The absolute or relative path of the directory we are changing to. |
Implemented in AIDA::ITreeROOT.
Referenced by AIDA::IHistogramFactoryROOT::createCloud1D(), AIDA::IHistogramFactoryROOT::createCloud2D(), AIDA::IHistogramFactoryROOT::createCloud3D(), AIDA::IHistogramFactoryROOT::createCopy(), AIDA::IHistogramFactoryROOT::createHistogram1D(), AIDA::IHistogramFactoryROOT::createHistogram2D(), AIDA::IHistogramFactoryROOT::createHistogram3D(), AIDA::IHistogramFactoryROOT::createProfile1D(), AIDA::IHistogramFactoryROOT::createProfile2D(), AIDA::ICloud1DROOT::myConvert(), AIDA::ICloud1DROOT::scale(), AIDA::ICloud2DROOT::scale(), AIDA::ICloud3DROOT::scale(), AIDA::IHistogramFactoryROOT::sliceX(), AIDA::IHistogramFactoryROOT::sliceXY(), AIDA::IHistogramFactoryROOT::sliceXZ(), AIDA::IHistogramFactoryROOT::sliceY(), and AIDA::IHistogramFactoryROOT::sliceYZ().
|
pure virtual |
Set the strategy of what should happen if two objects have the same path.
Default is overwrite.
overwrite | true to enable overwriting.virtual void setOverwrite(bool overwrite = true) = 0; Copy an object from a path to another. |
oldPath | The path of the object to be copied. |
newPath | The path where the object is to be copied. |
recursive | true if a recursive copy has to be performed. |
path | The absolute or relative path of the object to be linked. |
alias | The absolute or relative name of the link. |
target.mount("/home/tonyj",tree,"/");
path | The path in the target tree |
tree | The tree to mount within the target tree |
treePath | The mount point within the tree to be mounted. |
path | The path of the subtree to be unmounted. |
Implemented in AIDA::ITreeROOT.
|
pure virtual |
Create a directory recursively.
Given a path the last directory and all the intermediate non-existing subdirectories are created.
path | The absolute or relative path of the new directory. |
path | The absolute or relative path of the directory to be removed. |
path | The absolute or relative path of the IManagedObject to be removed. |
object | The IManagedObject whose path is to be returned. |
oldPath | The path of the IManagedObject or direcoty to be moved. |
newPath | The path of the diretory in which the object has to be moved to. |
Implemented in AIDA::ITreeROOT.
|
pure virtual |
List, into a given output stream, all the IManagedObjects, including directories (but not "." and ".."), in a given path.
Directories end with "/". The list can be recursive.
path | The path where the list has to be performed (by default the current directory "."). |
recursive | If true the list is extended recursively in all the directories under path (the default is false . |
os | The output stream into which the list is dumped (by default the standard output). |
Implemented in AIDA::ITreeROOT.
|
pure virtual |
Get the list of names of the IManagedObjects under a given path, including directories (but not "." and "..").
Directories end with "/". The returned names are appended to the given path unless the latter is ".".
path | The path where the list has to be performed (by default the current directory "."). |
recursive | If true the list is extended recursively in all the directories under path (the default is false .virtual std::vector<std::string> listObjectNames(const std::string & path = ".", bool recursive = false) const = 0; Get the list of types of the IManagedObjects under a given path. The types are the leaf class of the Interface, e.g. "IHistogram1D", "ITuple", etc. Directories are marked with "dir". The order of the types is the same as the order for the listObjectNames() method to achieve a one-to-one correspondance between object names and types. |
path | The path where the list has to be performed (by default the current directory "."). |
recursive | If true the list is extended recursively in all the directories under path (the default is false .virtual std::vector<std::string> listObjectTypes(const std::string & path = ".", bool recursive = false) const = 0; Create a new directory. Given a path only the last directory in it is created if all the intermediate subdirectories already exist. |
path | The absolute or relative path of the new directory. |
Implemented in AIDA::ITreeROOT.
|
pure virtual |
Get the path of the current working directory.
Implemented in AIDA::ITreeROOT.
Referenced by AIDA::IHistogramFactoryROOT::createCloud1D(), AIDA::IHistogramFactoryROOT::createCloud2D(), AIDA::IHistogramFactoryROOT::createCloud3D(), AIDA::IHistogramFactoryROOT::createCopy(), AIDA::IHistogramFactoryROOT::createHistogram1D(), AIDA::IHistogramFactoryROOT::createHistogram2D(), AIDA::IHistogramFactoryROOT::createHistogram3D(), AIDA::IHistogramFactoryROOT::createProfile1D(), AIDA::IHistogramFactoryROOT::createProfile2D(), AIDA::ICloud1DROOT::myConvert(), AIDA::ICloud1DROOT::scale(), AIDA::ICloud2DROOT::scale(), AIDA::ICloud3DROOT::scale(), AIDA::IHistogramFactoryROOT::sliceX(), AIDA::IHistogramFactoryROOT::sliceXY(), AIDA::IHistogramFactoryROOT::sliceXZ(), AIDA::IHistogramFactoryROOT::sliceY(), and AIDA::IHistogramFactoryROOT::sliceYZ().
|
pure virtual |
Get the name of the store.
Implemented in AIDA::ITreeROOT.
Referenced by AIDA::IAnalysisFactoryROOT::createDataPointSetFactory(), AIDA::IAnalysisFactoryROOT::createHistogramFactory(), and AIDA::IAnalysisFactoryROOT::createTupleFactory().