class
Factory
(Return to index)
Abstract interface for an element factory.
Type: |
Abstract |
Include file: |
./Construction/Factory.hh |
Inheritance
Synopsis (including inherited members):
- Public members:
-
Factory
()
;
-
virtual ~Factory
()
;
-
virtual bool define
(ElementBase*)
= 0
;
-
virtual void erase
(const string&)
= 0
;
-
virtual ElementBase* find
(const string&)const
= 0
;
-
virtual ElementBase* makeElement
(const string&,const string&,const AttributeSet&)
= 0
;
-
virtual bool storeElement
(ElementBase*)
= 0
;
Documentation:
- Public members:
-
virtual bool define
(ElementBase*)
= 0
;
- Define a new element.
The element newElement is linked to the repository.
If an element with the same name exists already, replacement is
rejected, and newElement is deleted.
-
virtual void erase
(const string&)
= 0
;
- Erase element by name.
If there is no element with the given name,
the request is ignored.
-
virtual ElementBase* find
(const string&)const
= 0
;
- Find element by name.
If an element with the name name exists,
return a pointer to this element, otherwise return NULL.
-
virtual ElementBase* makeElement
(const string&,const string&,const AttributeSet&)
= 0
;
- Make new element.
Create a new element with the type type, the name name
and the attributes in set. If an element with the name
name already exists, it is replaced.
-
virtual bool storeElement
(ElementBase*)
= 0
;
- Define a new element.
The element newElement is linked to the repository.
If an element with the same name exists already, it is replaced.
Documentation generated by fci on Mon Feb 7 11:41:39 2000