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>());
Representation objects and parsers for attribute expressions.
std::vector< std::list< Token > > parseTokenListArray(Statement &)
Parse a token list array (for LIST commands).
std::list< Token > parseTokenList(Statement &)
Parse a token list (for macro argument and the like).
A collection of routines to construct object Attributes and retrieve.
void setTokenListArray(Attribute &attr, const std::vector< std::list< Token > > &value)
Set token list array value.
boost::function< boost::tuple< double, bool >arguments_t)> type
A representation of an Object attribute.
AttributeBase & getBase() const
Return reference to polymorphic value.
Abstract base class for attribute values of different types.
Abstract base class for attribute parsers.
virtual void parseComponent(Attribute &, Statement &, bool, int) const
Parse a component.
virtual void parse(Attribute &, Statement &, bool) const
Parse the attribute.
virtual ~TokenListArray()
virtual const std::string & getType() const
Return attribute type string `‘token list array’'.
Interface for statements.
Object attribute with a constant array value.