ContainerParser Class Reference

Parser able to add children to the object. More...

#include <containerparser.h>

Inherits Parser.

Inherited by FromFileParser.

List of all members.

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.
ObjectgetVariable (const ObjectType &type)
 Generate an object to be subsequently added (or not)
ObjectaddVariable (const ObjectType &type)
 Generate an object and add it.
ObjectaddVariable (const ObjectType &type, const std::string &name)
 Generate an object, set its name, and add it.
const Modulemodule () 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.

Detailed Description

Parser able to add children to the object.


Constructor & Destructor Documentation

virtual ContainerParser::~ContainerParser ( ) [inline, virtual]
ContainerParser::ContainerParser ( Object object,
const Module module 
) [protected]

Member Function Documentation

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.

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.

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.


The documentation for this class was generated from the following file: