Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

JBLToken Class Reference

#include <JBLToken.h>

List of all members.


Detailed Description

Tokeniser for string parsing.

This class is a helper class for class JBLParserResult

Author: Benno List, Jenny List

Date
2005/11/22 09:00:18
Author
blist

Changelog:

Definition at line 38 of file JBLToken.h.

Public Member Functions

bool input (std::istream &is)
bool isEmpty () const
bool isUnknown () const
bool isIdentifier () const
bool isNumber () const
bool isInt () const
bool isFloat () const
bool isBool () const
bool isOperator () const
bool isParanthesis () const
int getIntValue () const
float getFloatValue () const
bool getBoolValue () const
const std::string & getStringValue () const
std::ostream & print (std::ostream &os) const

Private Types

enum  Type {
  EMPTY, UNKNOWN, IDENTIFIER, INT,
  FLOAT, BOOL, OPERATOR, PARANTHESIS
}

Static Private Member Functions

bool isoperator (char c)
bool issimpleoperator (char c)
bool isparanthesis (char c)

Private Attributes

std::string stringvalue
int intvalue
float floatvalue
bool boolvalue
Type type

Related Functions

(Note that these are not member functions.)

std::istream & operator>> (std::istream &is, JBLToken &token)
 Input a token.

std::ostream & operator<< (std::ostream &os, const JBLToken &token)
 Output a token.


The documentation for this class was generated from the following files:
Generated on Thu Oct 26 12:54:48 2006 for SFH by doxygen 1.3.2