28 "The \"REAL VARIABLE\" statement defines a global "
30 "\tREAL VARIABLE <name>=<real-expression>;\n") {
Inform & endl(Inform &inf)
double getReal(const Attribute &attr)
Return real value.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
void setReal(Attribute &attr, double val)
Set real value.
The base class for all OPAL objects.
void registerOwnership(const AttributeHandler::OwnerType &itsClass) const
const std::string & getOpalName() const
Return object name.
void setDirty(bool)
Set/reset the [b]modified[/b] flag.
std::vector< Attribute > itsAttr
The object attributes.
void setP0(ValueDefinition *p0)
Set the global momentum.
void create(Object *newObject)
Create new object.
static OpalData * getInstance()
The base class for all OPAL value definitions.
Attribute & value()
Return the attribute representing the value of the definition.
virtual RealVariable * clone(const std::string &name)
Make clone.
virtual void print(std::ostream &) const
Print the variable.
virtual void printValue(std::ostream &os) const
Print its value.
RealVariable()
Exemplar constructor.
virtual double getReal() const
Return value.
virtual bool canReplaceBy(Object *rhs)
Test for allowed replacement.