LWH::TreeFactory Class Reference

The creator of trees. More...

#include <TreeFactory.h>

List of all members.

Public Member Functions

virtual ~TreeFactory ()
 Destructor.
ITree * create ()
 Creates a new tree that is not associated with a store.
TreecreateTree (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.


Detailed Description

The creator of trees.

Definition at line 27 of file TreeFactory.h.


Member Function Documentation

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.

Parameters:
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.

Parameters:
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().


Member Data Documentation

std::set<Tree *> LWH::TreeFactory::trees [private]

The created trees.

Definition at line 89 of file TreeFactory.h.

Referenced by clear(), and create().


The documentation for this class was generated from the following file:

Generated on Thu Apr 29 12:42:56 2010 for ThePEG by  doxygen 1.5.5