28 "The \"BOOL CONSTANT\" statement defines a global "
30 "\tBOOL CONSTANT <name> = <Bool-expression>;\n") {
Inform & endl(Inform &inf)
Attribute makeBool(const std::string &name, const std::string &help)
Make logical attribute.
bool getBool(const Attribute &attr)
Return logical value.
The base class for all OPAL objects.
void registerOwnership(const AttributeHandler::OwnerType &itsClass) const
const std::string & getOpalName() const
Return object name.
std::vector< Attribute > itsAttr
The object attributes.
The base class for all OPAL value definitions.
virtual void print(std::ostream &) const
Print the constant.
BoolConstant()
Exemplar constructor.
virtual bool canReplaceBy(Object *object)
Test if object can be replaced.
virtual BoolConstant * clone(const std::string &name)
Make clone.
virtual bool getBool() const
Return value.
virtual void printValue(std::ostream &os) const
Print its value.