26#define CREATE_STRINGCONSTANT(x) \
27 opal->create(new StringConstant(x, this, x));
32 "The \"STRING CONSTANT\" statement defines a global "
34 "\tSTRING CONSTANT <name> = <String-expression>;\n") {
#define CREATE_STRINGCONSTANT(x)
Inform & endl(Inform &inf)
void setString(Attribute &attr, const std::string &val)
Set string value.
std::string getString(const Attribute &attr)
Get string value.
Attribute makeString(const std::string &name, const std::string &help)
Make string attribute.
std::string getGitRevision()
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.
bool builtin
Built-in flag.
The global OPAL structure.
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 std::string getString() const
Return value.
virtual StringConstant * clone(const std::string &name)
Make clone.
virtual void print(std::ostream &) const
Print the constant.
virtual ~StringConstant()
StringConstant()
Exemplar constructor.
virtual void printValue(std::ostream &os) const
Print its value.
virtual bool canReplaceBy(Object *object)
Test if object can be replaced.