CToken Class Reference

#include <CToken.hpp>

Public Member Functions

 CToken ()
 CToken (int t, const ANTLR_USE_NAMESPACE(std) string &txt)
 CToken (const ANTLR_USE_NAMESPACE(std) string &s)
 ~CToken ()
virtual void setFilename (const std::string &file)
virtual const std::string & getFilename () const

Static Public Member Functions

static antlr::RefToken factory ()

Protected Attributes

std::string filename_

Private Member Functions

 CToken (const CToken &)
const CTokenoperator= (const CToken &)

Detailed Description

ANTLR custom token class.

This class is used to implement the member function setFileName and getFileName - which defined but not implemented at antlr::CommonToken.

Definition at line 45 of file CToken.hpp.

Constructor & Destructor Documentation

CToken::CToken (  )  [inline]

Definition at line 47 of file CToken.hpp.

CToken::CToken ( int  t,
const ANTLR_USE_NAMESPACE(std) string &  txt 
) [inline]

Definition at line 50 of file CToken.hpp.

CToken::CToken ( const ANTLR_USE_NAMESPACE(std) string &  s  )  [inline]

Definition at line 54 of file CToken.hpp.

CToken::~CToken (  )  [inline]

Definition at line 58 of file CToken.hpp.

CToken::CToken ( const CToken  )  [private]

Member Function Documentation

virtual void CToken::setFilename ( const std::string &  file  )  [inline, virtual]

Definition at line 62 of file CToken.hpp.

virtual const std::string& CToken::getFilename (  )  const [inline, virtual]

Definition at line 67 of file CToken.hpp.

static antlr::RefToken CToken::factory (  )  [inline, static]

Definition at line 83 of file CToken.hpp.

Referenced by ctrump_parse(), and parseString().

const CToken& CToken::operator= ( const CToken  )  [private]

Field Documentation

std::string CToken::filename_ [protected]

Definition at line 89 of file CToken.hpp.

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

Generated on Tue Mar 31 20:19:25 2009 for ctrump by  doxygen 1.5.6