#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. |
Definition at line 27 of file TreeFactory.h.
Tree* LWH::TreeFactory::createTree | ( | const std::string & | storeName | ) | [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.
ITree* LWH::TreeFactory::create | ( | const std::string & | storeName, | |
const std::string & | storeType = "" , |
|||
bool | readOnly = false , |
|||
bool | createNew = false , |
|||
const std::string & | = "" | |||
) | [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.
void LWH::TreeFactory::clear | ( | ) | [inline, private] |
Delete all trees.
Definition at line 82 of file TreeFactory.h.
References trees.
Referenced by ~TreeFactory().
std::set<Tree *> LWH::TreeFactory::trees [private] |