32 const Entry entries[] = {
71 for(
const Entry *entry = entries; entry->name != 0; ++entry) {
72 if(aKey == entry->name) {
101 for(
const Entry *entry = entries; entry->name != 0; ++entry) {
102 image->
setAttribute(entry->name, (this->*(entry->get))());
Interface for basic beam line object.
A simple arc in the XZ plane.
double getPressure() const
virtual Channel * getChannel(const std::string &aKey, bool create=false)
Construct a read/write channel.
virtual ElementImage * getImage() const
Construct an image.
Representation for a beam stripping.
A zero electromagnetic field.
virtual ElementImage * getImage() const
Construct an image.
PlanarArcGeometry geometry
virtual ElementBase * clone() const
Return clone.
void setAttribute(const std::string &aKey, double val)
Set value of an attribute.
void setPressure(double pressure)
Abstract interface for read/write access to variable.
virtual PlanarArcGeometry & getGeometry()
Get geometry.
virtual NullField & getField()
Get field.
virtual ~BeamStrippingRep()
virtual Channel * getChannel(const std::string &aKey, bool=false)
Construct a read/write channel.
Access to a [b]double[/b] data member.