Parser able to add children to the object. More...
#include <containerparser.h>
Inherits Parser.
Inherited by FromFileParser.
Public Member Functions | |
virtual | ~ContainerParser () |
void | addChild (Object *child) |
Add a child to the object. | |
void | addChild (Object *child, const std::string &name) |
Add a child and set its name. | |
Object * | getVariable (const ObjectType &type) |
Generate an object to be subsequently added (or not) | |
Object * | addVariable (const ObjectType &type) |
Generate an object and add it. | |
Object * | addVariable (const ObjectType &type, const std::string &name) |
Generate an object, set its name, and add it. | |
const Module & | module () const |
Protected Member Functions | |
ContainerParser (Object &object, const Module &module) | |
void | setAutogrow () |
Insure that when children are added past the end of the object that its size grows automaticaly. |
Parser able to add children to the object.
virtual ContainerParser::~ContainerParser | ( | ) | [inline, virtual] |
ContainerParser::ContainerParser | ( | Object & | object, |
const Module & | module | ||
) | [protected] |
void ContainerParser::addChild | ( | Object * | child | ) |
Add a child to the object.
The object will be in charge of managing the child's memory
void ContainerParser::addChild | ( | Object * | child, |
const std::string & | name | ||
) |
Add a child and set its name.
Object* ContainerParser::addVariable | ( | const ObjectType & | type | ) |
Generate an object and add it.
Object* ContainerParser::addVariable | ( | const ObjectType & | type, |
const std::string & | name | ||
) |
Generate an object, set its name, and add it.
Object* ContainerParser::getVariable | ( | const ObjectType & | type | ) |
Generate an object to be subsequently added (or not)
const Module& ContainerParser::module | ( | ) | const |
void ContainerParser::setAutogrow | ( | ) | [protected] |
Insure that when children are added past the end of the object that its size grows automaticaly.