RAIDA  1.9.0
ITree.h
1 // -*- C++ -*-
2 // AID-GENERATED
3 // =========================================================================
4 // This class was generated by AID - Abstract Interface Definition
5 // DO NOT MODIFY, but use the org.freehep.aid.Aid utility to regenerate it.
6 // =========================================================================
7 #ifndef AIDA_ITREE_H
8 #define AIDA_ITREE_H 1
9 
10 // This file is part of the AIDA library
11 // Copyright (C) 2002 by the AIDA team. All rights reserved.
12 // This library is free software and under the terms of the
13 // GNU Library General Public License described in the LGPL.txt
14 
15 #include <iostream>
16 #include <string>
17 #include <vector>
18 
19 namespace AIDA {
20 
22 
37 class ITree {
38 
39 public:
41  virtual ~ITree() { /* nop */; }
42 
48  virtual std::string storeName() const = 0;
49 
57 
66 
74  virtual bool cd(const std::string & path) = 0;
75 
81  virtual std::string pwd() const = 0;
82 
93  virtual bool ls(const std::string & path = ".", bool recursive = false, std::ostream & os = std::cout) const = 0;
94 
104 
117 
127  virtual bool mkdir(const std::string & path) = 0;
128 
137 
146 
156 
165 
174 
182  virtual bool commit() = 0;
183 
190 
200 
210 
224 
233 
243  virtual bool close() = 0;
244 
250 }; // class
252 } // namespace AIDA
253 #endif /* ifndef AIDA_ITREE_H */
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 &quot;...
class IManagedObject;
Definition: ITree.h:37
virtual bool close()=0
Set the strategy of what should happen if two objects have the same path.
virtual bool commit()=0
Create a directory recursively.
virtual bool mkdir(const std::string &path)=0
Get the list of names of the IManagedObjects under a given path, including directories (but not &quot;...
virtual std::string storeName() const =0
Get the name of the store.
virtual std::string pwd() const =0
Get the path of the current working directory.
virtual ~ITree()
Destructor.
Definition: ITree.h:41
virtual bool cd(const std::string &path)=0
Get the IManagedObject at a given path in the ITree.