1 #ifndef CLASSIC_ElementFactory_HH
2 #define CLASSIC_ElementFactory_HH
58 virtual void erase(
const std::string &
name);
70 const std::string &name,
85 typedef std::map<std::string, ElementBase *, std::less<std::string> >
MapType;
89 #endif // CLASSIC_ElementFactory_HH
virtual ElementBase * find(const std::string &name) const
Find element by name.
ElementFactory()
Default constructor.
Interface for basic beam line object.
Map of std::string versus double value.
virtual ElementBase * makeElement(const std::string &type, const std::string &name, const AttributeSet &set)
Make new element.
std::map< std::string, ElementBase *, std::less< std::string > > MapType
virtual bool define(ElementBase *newElement)
Define a new element.
void operator=(const ElementFactory &)
virtual bool storeElement(ElementBase *newElement)
Define a new element.
virtual ~ElementFactory()
Concrete factory class for CLASSIC elements.
virtual void erase(const std::string &name)
Erase element by name.
Abstract interface for an element factory.