27 using namespace Expressions;
33 namespace Attributes {
35 StringArray::StringArray(
const std::string &
name,
const std::string &help):
45 static std::string
type =
"string array";
63 while(
int(array.size()) < index) {
64 array.push_back(std::string());
Abstract base class for attribute parsers.
Object attribute with a constant array value.
void setStringArray(Attribute &attr, const std::vector< std::string > &value)
Set string array value.
std::vector< std::string > parseStringArray(Statement &)
Parse string array.
Interface for statements.
virtual void parse(Attribute &, Statement &, bool) const
Parse the attribute.
virtual const std::string & getType() const
Return attribute type string ``string array''.
Abstract base class for attribute values of different types.
std::string parseStringValue(Statement &, const char msg[])
std::vector< std::string > getStringArray(const Attribute &attr)
Get string array value.
virtual void parseComponent(Attribute &, Statement &, bool, int) const
Parse a component of the array.
AttributeBase & getBase() const
Return reference to polymorphic value.
A representation of an Object attribute.