1 #ifndef OPAL_Attribute_HH
2 #define OPAL_Attribute_HH
76 operator bool()
const;
92 const std::string &
getHelp()
const;
96 const std::string &
getName()
const;
100 const std::string &
getType()
const;
151 void print(
int &len)
const;
169 inline Attribute::operator bool()
const {
170 return base !=
nullptr;
179 #endif // OPAL_Attribute_HH
void parseComponent(Statement &stat, bool eval, int index)
Parse array component.
const std::string & getHelp() const
Return the help string.
void print(int &len) const
Print attribute.
Abstract base class for attribute parsers.
void setReadOnly(bool)
Set read-only flag.
const std::string & getType() const
Return the attribute type.
void set(AttributeBase *newBase)
Define new value.
bool isReadOnly() const
Test for read only.
std::ostream & operator<<(std::ostream &os, const Attribute &attr)
AttributeHandler & getHandler() const
Return a reference to the parser.
Pointer< AttributeHandler > handler
const std::string & getName() const
Return the attribute name.
std::string getImage() const
Return printable representation.
Pointer< AttributeBase > base
Interface for statements.
bool isExpression() const
Test for expression.
const Attribute & operator=(const Attribute &)
Attribute()
Default constructor.
Abstract base class for attribute values of different types.
bool isDeferred() const
Return [b]deferred[/b] flag.
void parse(Statement &stat, bool eval)
Parse attribute.
void setDeferred(bool)
Set read-only flag.
bool isBaseAllocated() const
void setDefault()
Assign default value.
AttributeBase & getBase() const
Return reference to polymorphic value.
A representation of an Object attribute.