26 using namespace Expressions;
32 namespace Attributes {
34 TokenListArray::TokenListArray(
const std::string &
name,
const std::string &help):
44 static const std::string
type(
"token list array");
56 std::vector<std::list<Token> > array;
62 while(
int(array.size()) < index) {
63 array.push_back(std::list<Token>());
virtual ~TokenListArray()
Abstract base class for attribute values of different types.
A representation of an Object attribute.
Interface for statements.
virtual const std::string & getType() const
Return attribute type string ``token list array''.
Abstract base class for attribute parsers.
Object attribute with a constant array value.
virtual void parseComponent(Attribute &, Statement &, bool, int) const
Parse a component.
std::list< Token > parseTokenList(Statement &)
Parse a token list (for macro argument and the like).
void setTokenListArray(Attribute &attr, const std::vector< std::list< Token > > &value)
Set token list array value.
virtual void parse(Attribute &, Statement &, bool) const
Parse the attribute.
std::vector< std::list< Token > > parseTokenListArray(Statement &)
Parse a token list array (for LIST commands).
AttributeBase & getBase() const
Return reference to polymorphic value.