32 static const Entry entries[] = {
78 geometry(rhs.geometry),
105 if(aKey[0] ==
'a' || aKey[0] ==
'b') {
108 for(std::string::size_type k = 1; k < aKey.length(); k++) {
109 if(isdigit(aKey[k])) {
110 n = 10 *
n + aKey[k] -
'0';
126 for(
const Entry *table = entries; table->name != 0; ++table) {
127 if(aKey == table->name) {
virtual Channel * getChannel(const std::string &aKey, bool create=false)
Construct a read/write channel.
virtual double getElementLength() const
Get design length.
virtual void setElementLength(double length)
Set design length.
void setSkewComponent(int, double)
Set skew component.
double getSkewComponent(int) const
Get skew component.
double getNormalComponent(int) const
Get normal component.
void setNormalComponent(int, double)
Set normal component.
virtual BMultipoleField & getField()
Get field.
virtual double getEntryFaceCurvature() const
Get entry pole face curvature.
virtual void setEntryFaceCurvature(double h1)
Set entry pole face curvature.
virtual void setEntryFaceRotation(double e1)
Set pole entry face rotation.
virtual void setExitFaceCurvature(double h2)
Set exit pole face curvature.
virtual PlanarArcGeometry & getGeometry()
Get geometry.
PlanarArcGeometry geometry
The bend geometry.
virtual Channel * getChannel(const std::string &aKey, bool=false)
Construct a read/write channel.
virtual void setSlices(double sl)
Set number of slices.
virtual double getExitFaceCurvature() const
Get exit pole face curvature.
virtual void setField(const BMultipoleField &field)
Set field.
virtual ElementBase * clone() const
Return clone.
virtual void setExitFaceRotation(double e2)
Set exit pole face rotation.
virtual double getStepsize() const
Get stepsize.
virtual double getB() const
Get field.
virtual void setB(double By)
Set vertical component.
virtual double getSlices() const
Get number of slices.
virtual double getEntryFaceRotation() const
Get pole entry face rotation.
virtual void setStepsize(double ds)
Set stepsize.
BMultipoleField field
The multipole expansion.
virtual double getExitFaceRotation() const
Get exit pole face rotation.
A simple arc in the XZ plane.
Abstract interface for read/write access to variable.
Access to an indexed [b]double[/b] data member.
Access to a [b]double[/b] data member.
The magnetic field of a multipole.
double getNormalComponent(int n) const
Get component.
void setNormalComponent(int n, double Bn)
Set component.