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