30 #ifndef OPAL_Element_HH
31 #define OPAL_Element_HH
100 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.
Pointer< ElementBase > itsClassicElement
virtual const std::string getCategory() const
Return the object category as a string.
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.
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.