39 const Entry entries[] = {
83 for(
const Entry *entry = entries; entry->name != 0; ++entry) {
84 if(aKey == entry->name) {
96 for(
const Entry *entry = entries; entry->name != 0; ++entry) {
97 image->
setAttribute(entry->name, (this->*(entry->get))());
Representation of a closed orbit corrector.
virtual ElementImage * getImage() const
Construct an image.
Interface for basic beam line object.
Corrector is off (inactive).
virtual void setElementLength(double length)
Set design length.
virtual Channel * getChannel(const std::string &aKey, bool create=false)
Construct a read/write channel.
virtual double getBy() const
Get vertical field component in Teslas.
virtual double getBx() const
Get field.
virtual Channel * getChannel(const std::string &aKey, bool=false)
Construct a read/write channel.
virtual double getElementLength() const
Get design length.
Representation for an orbit corrector.
virtual ElementImage * getImage() const
Construct an image.
void setAttribute(const std::string &aKey, double val)
Set value of an attribute.
Corrector acts on x-plane.
virtual ElementBase * clone() const
Return clone.
virtual void setBx(double)
Set field.
virtual void setBy(double)
Set vertical field component in Teslas.
Abstract interface for read/write access to variable.
virtual Plane getPlane() const
Get plane of action.
bool active
The active/inactive flag.
Access to a [b]double[/b] data member.