1 #ifndef OPAL_AttributeHandler_HH
2 #define OPAL_AttributeHandler_HH
71 virtual const std::string &
getHelp()
const;
74 virtual const std::string &
getName()
const;
79 virtual const std::string &
getType()
const = 0;
125 static std::multimap<OwnerType, std::string>
getOwner(
const std::string &att);
154 #endif // OPAL_AttributeHandler_HH
const std::string itsHelp
Help text.
virtual const std::string & getHelp() const
Return help string.
Abstract base class for reference counted objects.
Abstract base class for attribute parsers.
virtual const std::string & getType() const =0
Return attribute type.
Pointer< AttributeBase > itsDefault
Default value.
virtual AttributeBase * getDefault() const
Return default value.
void setReadOnly(bool)
Set or reset read-only flag.
bool isReadOnly() const
Return read-only flag.
bool isDeferred() const
Return defer flag.
bool is_deferred
Defer flag.
void setDeferred(bool)
Set or reset defer flag.
void setPredefinedValues(const std::set< std::string > &, const std::string &)
Add predefined strings values to the help.
void operator=(const AttributeHandler &)
virtual ~AttributeHandler()
virtual const std::string & getName() const
Return attribute name.
Interface for statements.
Abstract base class for attribute values of different types.
virtual void parse(Attribute &a, Statement &s, bool eval) const =0
Parse new value.
static std::multimap< std::string, std::pair< OwnerType, std::string > > attributeOwnerDictionary_s
static std::multimap< OwnerType, std::string > getOwner(const std::string &att)
virtual AttributeHandler * clone() const
Make clone.
const std::string itsName
Attribute name.
virtual void parseComponent(Attribute &a, Statement &s, bool eval, int i) const
Parse component value.
static void addAttributeOwner(const std::string &owner, const OwnerType &type, const std::string &name)
bool is_readonly
Read-only flag.
A representation of an Object attribute.