Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

ConstList Class Reference

#include <ConstList.h>

Inheritance diagram for ConstList:

Inheritance graph
[legend]
Collaboration diagram for ConstList:

Collaboration graph
[legend]
List of all members.

Public Methods

 ConstList ()
 ~ConstList ()
bool parse (AIDA_STD::string a_string)
 Parse the string and return true if parsing is successful. More...

bool parseTerm (AIDA_STD::string a_string, size_t whichTerm)
 Parse one term of the list and return true if parsing is successful. More...


Detailed Description

Parse a constants' list string. A constants' list is a list of terms having the format:

<id> = <number>

Terms are separated by semicolons. If parsing is successful, the lists of identifiers and associated values are stored in the corresponding member variables of the base class.

Definition at line 20 of file ConstList.h.


Constructor & Destructor Documentation

ConstList   [inline]
 

Definition at line 23 of file ConstList.h.

~ConstList  
 

Definition at line 6 of file ConstList.cpp.

References BasicListParser::clear.


Member Function Documentation

bool parse AIDA_STD::string    a_string [virtual]
 

Implements BasicListParser.

Definition at line 29 of file ConstList.cpp.

References BasicListParser::clear, BasicListParser::pair_count, parseTerm, BasicListParser::parsing_successful, and SimpleTokenizer::tokenize.

bool parseTerm AIDA_STD::string    a_string,
size_t    whichTerm
 

Definition at line 8 of file ConstList.cpp.

References TokenMatch::isId, TokenMatch::isNum, BasicListParser::pair_names_os, BasicListParser::pair_values_os, and SimpleTokenizer::tokenize.

Referenced by parse.


The documentation for this class was generated from the following files:
Generated on Tue May 20 14:50:28 2003 for HepUtilities by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002