55 const std::vector<AttCell *> &buffer):
69 const std::string &nam = base->
getName();
70 if(dynamic_cast<Beamline *>(base)) {
84 std::vector<AttCell *>::size_type
n =
itsBuffer.size();
85 std::vector<AttCell *>::size_type i;
86 for(i = 0; i <
n; ++i) {
Interface for basic beam line object.
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
Fill in all registered attributes.
ValueFlag
Switch for value desired on ATTLIST command.
virtual ElementBase * removeWrappers()
Return the design element.
virtual void visitFlaggedElmPtr(const FlaggedElmPtr &)
Apply the algorithm to a FlaggedElmPtr.
virtual void visitFlaggedElmPtr(const FlaggedElmPtr &)
Apply the algorithm to a FlaggedElmPtr.
virtual const std::string & getName() const
Get element name.
static void setRegisteredAttribute(const std::string &, double)
Store a registered real attribute.
const std::vector< AttCell * > & itsBuffer
static OpalData * getInstance()
virtual double getElementLength() const
Get design length.
Base class for all beam line elements.
bool getSelectionFlag() const
Get selection flag.
An abstract sequence of beam line components.
Object * find(const std::string &name)
Find entry.
ElementBase * getElement() const
Get the element pointer.
OpalElement::ValueFlag itsValueFlag
A section of a beam line.