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

Token Struct Reference

The token parser considers a token to be either:. More...

#include <token_stream.h>

List of all members.

Public Methods

 Token ( String prefix = emptyString, String token = emptyString, String separator = emptyString )
bool is_equal (const char *t)
String get_name (void)
String get_prefix (void)
String get_postfix (void)

Public Attributes

String _prefix
String _token
String _separator


Detailed Description

The token parser considers a token to be either:.

When the token is parsed from an istream, the token object also contains a prefix and a postfix, which are strings of whitespaces surrounding the token. The token parser uses a greedy algorithm which consumes as much noise characters as possible after each token.


Constructor & Destructor Documentation

Token::Token ( String prefix = emptyString,
String token = emptyString,
String separator = emptyString)


Member Function Documentation

String Token::get_name ( void) [inline]

String Token::get_postfix ( void) [inline]

String Token::get_prefix ( void) [inline]

bool Token::is_equal ( const char * s)


Member Data Documentation

String Token::_prefix

String Token::_separator

String Token::_token


The documentation for this struct was generated from the following files:
Generated at Mon Jul 31 13:44:46 2000 for NCI SUIF by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000