Hosting courtesy of Sourceforge

SourceForge Logo
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Parse::GeneratedListParser Class Template Reference

#include <ListParser.h>

Inheritance diagram for Parse::GeneratedListParser:

Inheritance graph
[legend]
Collaboration diagram for Parse::GeneratedListParser:

Collaboration graph
[legend]
List of all members.

Public Methods

 GeneratedListParser (list< Base *> &listToAddTo, ParserGenerator< Base > *dynPtrParseGen)
virtual void getValue (istream &input)
virtual ~GeneratedListParser ()

Detailed Description

template<class Base>
class Parse::GeneratedListParser< Base >

Class capable of parsing types Base that need not be subclasses of Parseable with the aid of a ParserGenerator for the Base class. Nice for adding in the ability to parse a class that was not orginally designed to be Parseable, or to parse a parseable object in an "unnatural" way

Definition at line 109 of file ListParser.h.


Constructor & Destructor Documentation

template<class Base>
Parse::GeneratedListParser< Base >::GeneratedListParser list< Base *> &    listToAddTo,
ParserGenerator< Base > *    dynPtrParseGen
 

GeneratedListParser constructor.

Parameters:
listToAddTo  list to add dynamically allocated elements of type Base
dynPtrParseGen  dynamically allocated ParserGenerator<Base> that binds a Parser to new Base added to the list. The parser generated be deleted in the destructor of this class

Definition at line 118 of file ListParser.h.

template<class Base>
virtual Parse::GeneratedListParser< Base >::~GeneratedListParser   [virtual]
 

deletes dynPtrParseGen passed to it in the constructor

Definition at line 136 of file ListParser.h.


Member Function Documentation

template<class Base>
virtual void Parse::GeneratedListParser< Base >::getValue istream &    input [virtual]
 

Creates a new Base on the heap, puts a pointer to it the list passed to it in the constructor. It then parses ithe input stream for identifiers based on the ParserGenerator passed to the constructor of this class

Reimplemented from Parse::ParseAction.

Definition at line 127 of file ListParser.h.


Member Data Documentation

template<class Base>
ParserGenerator<Base>* Parse::GeneratedListParser::pg [protected]
 

Definition at line 140 of file ListParser.h.


The documentation for this class was generated from the following file:
Generated on Tue May 21 07:26:57 2002 for BomberLAN by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001