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