ThePEG 2.3.0
|
The creator of trees. More...
#include <TreeFactory.h>
Public Member Functions | |
virtual | ~TreeFactory () |
Destructor. | |
ITree * | create () |
Creates a new tree that is not associated with a store. | |
Tree * | createTree (const std::string &storeName) |
Creates a new Tree and associates it with a store. | |
ITree * | create (const std::string &storeName, const std::string &storeType="", bool readOnly=false, bool createNew=false, const std::string &="") |
Creates a new Tree and associates it with a store. | |
Private Member Functions | |
void | clear () |
Delete all trees. | |
Private Attributes | |
std::set< Tree * > | trees |
The created trees. | |
The creator of trees.
Definition at line 27 of file TreeFactory.h.
|
inlinevirtual |
|
inlineprivate |
Delete all trees.
Definition at line 82 of file TreeFactory.h.
References trees.
Referenced by ~TreeFactory().
|
inline |
Creates a new tree that is not associated with a store.
Definition at line 39 of file TreeFactory.h.
References trees.
|
inline |
Creates a new Tree and associates it with a store.
The store is assumed to be write-only. The store will be created.
storeName | The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file. |
storeType | must be "xml". |
readOnly | must be false since we cannot read in trees. |
createNew | must be true indicating that the file will be created |
Definition at line 68 of file TreeFactory.h.
|
inline |
Creates a new Tree and associates it with a store.
The store is assumed to be write-only. The store will be created.
storeName | The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file. |
Definition at line 53 of file TreeFactory.h.
|
private |
The created trees.
Definition at line 89 of file TreeFactory.h.