OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | List of all members
Factory Class Referenceabstract

Abstract interface for an element factory. More...

#include <Factory.h>

Inheritance diagram for Factory:
Inheritance graph
[legend]

Public Member Functions

 Factory ()
 
virtual ~Factory ()
 
virtual bool define (ElementBase *newElement)=0
 Define a new element. More...
 
virtual void erase (const std::string &name)=0
 Erase element by name. More...
 
virtual ElementBasefind (const std::string &name) const =0
 Find element by name. More...
 
virtual ElementBasemakeElement (const std::string &type, const std::string &name, const AttributeSet &set)=0
 Make new element. More...
 
virtual bool storeElement (ElementBase *newElement)=0
 Define a new element. More...
 

Detailed Description

Abstract interface for an element factory.

Definition at line 33 of file Factory.h.

Constructor & Destructor Documentation

Factory::Factory ( )

Definition at line 27 of file Factory.cpp.

Factory::~Factory ( )
virtual

Definition at line 31 of file Factory.cpp.

Member Function Documentation

virtual bool Factory::define ( ElementBase newElement)
pure virtual

Define a new element.

Implemented in ElementFactory.

virtual void Factory::erase ( const std::string &  name)
pure virtual

Erase element by name.

Implemented in ElementFactory.

virtual ElementBase* Factory::find ( const std::string &  name) const
pure virtual

Find element by name.

Implemented in ElementFactory.

virtual ElementBase* Factory::makeElement ( const std::string &  type,
const std::string &  name,
const AttributeSet set 
)
pure virtual

Make new element.

Implemented in ElementFactory.

virtual bool Factory::storeElement ( ElementBase newElement)
pure virtual

Define a new element.

Implemented in ElementFactory.


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