Back to index

courier  0.68.2
Public Types | Public Member Functions | Private Attributes
Token Class Reference

#include <token.h>

Collaboration diagram for Token:
Collaboration graph
[legend]

List of all members.

Public Types

enum  tokentype {
  error, eof, qstring, sqstring,
  btstring, equals, lbrace, rbrace,
  semicolon, regexpr, plus, minus,
  mult, divi, lt, le,
  gt, ge, eq, ne,
  lor, land, bor, band,
  lparen, rparen, logicalnot, bitwisenot,
  slt, sle, sgt, sge,
  seq, sne, length, substr,
  comma, strregexp, tokenif, tokenelse,
  tokenelsif, tokenwhile, tokento, tokencc,
  exception, echo, tokenxfilter, dotlock,
  flock, logfile, log, include,
  exit, foreach, getaddr, lookup,
  escape, to_lower, to_upper, hasaddr,
  gdbmopen, gdbmclose, gdbmfetch, gdbmstore,
  timetoken, importtoken, unset
}

Public Member Functions

 Token ()
 ~Token ()
 Token (const Token &)
Tokenoperator= (const Token &t)
void Type (tokentype t)
void Type (tokentype t, const Buffer &tbuf)
tokentype Type () const
const BufferString () const
BufferString ()
const char * Name ()

Private Attributes

Buffer buf
tokentype type

Detailed Description

Definition at line 15 of file token.h.


Member Enumeration Documentation

Enumerator:
error 
eof 
qstring 
sqstring 
btstring 
equals 
lbrace 
rbrace 
semicolon 
regexpr 
plus 
minus 
mult 
divi 
lt 
le 
gt 
ge 
eq 
ne 
lor 
land 
bor 
band 
lparen 
rparen 
logicalnot 
bitwisenot 
slt 
sle 
sgt 
sge 
seq 
sne 
length 
substr 
comma 
strregexp 
tokenif 
tokenelse 
tokenelsif 
tokenwhile 
tokento 
tokencc 
exception 
echo 
tokenxfilter 
dotlock 
flock 
logfile 
log 
include 
exit 
foreach 
getaddr 
lookup 
escape 
to_lower 
to_upper 
hasaddr 
gdbmopen 
gdbmclose 
gdbmfetch 
gdbmstore 
timetoken 
importtoken 
unset 

Definition at line 20 of file token.h.


Constructor & Destructor Documentation

Token::Token ( ) [inline]

Definition at line 92 of file token.h.

: type(error) {}
Token::~Token ( ) [inline]

Definition at line 93 of file token.h.

{}
Token::Token ( const Token )

Member Function Documentation

const char* Token::Name ( )
Token& Token::operator= ( const Token t) [inline]

Definition at line 95 of file token.h.

{ type=t.type; buf=t.buf; return (*this); }
const Buffer& Token::String ( ) const [inline]

Definition at line 100 of file token.h.

{ return (buf); }
Buffer& Token::String ( ) [inline]

Definition at line 101 of file token.h.

{ return (buf); }
void Token::Type ( tokentype  t) [inline]

Definition at line 97 of file token.h.

{ type=t; }
void Token::Type ( tokentype  t,
const Buffer tbuf 
) [inline]

Definition at line 98 of file token.h.

{ type=t; buf=tbuf; }
tokentype Token::Type ( ) const [inline]

Definition at line 99 of file token.h.

{ return (type); }

Member Data Documentation

Buffer Token::buf [private]

Definition at line 17 of file token.h.

Definition at line 90 of file token.h.


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