41 return (dynamic_cast<Element *>(
object) != 0);
50 "Element \"" + name +
"\" not found.");
The global OPAL structure.
static OpalData * getInstance()
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.
virtual void makeSharable()
Set sharable flag.
The base class for all OPAL exceptions.
virtual void setShared(bool)
Set/reset shared flag.
virtual double getEntrance(ReferenceType) const
Return arc length from origin to entrance (negative !).
static Element * find(const std::string &name)
Find named Element.
Object * find(const std::string &name)
Find entry.
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 !).