33 return (dynamic_cast<Element *>(
object) != 0);
42 "Element \"" + name +
"\" not found.");
Pointer< ElementBase > itsClassicElement
virtual double getExit(ReferenceType) const
Return arc length from origin to exit (positive !).
The global OPAL structure.
virtual void setShared(bool)
Set/reset shared flag.
The base class for all OPAL exceptions.
virtual void setShared(bool)
Set shared flag.
virtual bool shouldUpdate() const
Update flag.
virtual bool canReplaceBy(Object *object)
Test if replacement is allowed.
virtual void makeSharable()
Set sharable flag.
static OpalData * getInstance()
The base class for all OPAL elements.
ReferenceType
Reference for element positioning.
static Element * find(const std::string &name)
Find named Element.
virtual double getLength() const =0
Return element length.
virtual bool shouldTrace() const
Trace flag.
Object * find(const std::string &name)
Find entry.
The base class for all OPAL objects.
virtual const std::string getCategory() const
Return the object category as a string.
virtual double getEntrance(ReferenceType) const
Return arc length from origin to entrance (negative !).