30#ifndef OPAL_Element_HH
31#define OPAL_Element_HH
101 Element(
int size,
const char *name,
const char *help);
virtual double getEntrance(ReferenceType) const
Return arc length from origin to entrance (negative !).
virtual void setShared(bool)
Set shared flag.
virtual const std::string getCategory() const
Return the object category as a string.
std::shared_ptr< ElementBase > itsClassicElement
virtual double getLength() const =0
Return element length.
static Element * find(const std::string &name)
Find named Element.
ReferenceType
Reference for element positioning.
ElementBase * getElement() const
Return the embedded CLASSIC element.
Element(int size, const char *name, const char *help)
Constructor for exemplars.
void operator=(const Element &)
virtual bool canReplaceBy(Object *object)
Test if replacement is allowed.
virtual bool shouldTrace() const
Trace flag.
void setElement(ElementBase *)
Assign new CLASSIC element.
virtual bool shouldUpdate() const
Update flag.
virtual double getExit(ReferenceType) const
Return arc length from origin to exit (positive !).
The base class for all OPAL objects.
Object(int size, const char *name, const char *help)
Constructor for exemplars.