HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CPP_TokenStream Class Reference

#include <CPP_TokenStream.h>

+ Inheritance diagram for CPP_TokenStream:

Public Member Functions

 CPP_TokenStream (const char *filename, int pathvar=-1, const char **cpp_options=0)
 
 CPP_TokenStream (UT_IStream &is, const char *filename="<internal>", const char **cpp_options=0)
 
virtual ~CPP_TokenStream ()
 
void addIncludePath (const char *path)
 
void addIncludePathRaw (const char *path)
 
void setCPPOptions (const char **cpp_options)
 Set additional CPP options. More...
 
int getLineNumber ()
 
const char * getFileName ()
 
void setPreserveBackslashes (bool flag)
 
int getToken (UT_String &token)
 
void ungetToken (const UT_String &token)
 
virtual void cppError (const char *message) const
 
virtual void cppWarning (const char *message) const
 

Protected Member Functions

void init (int pathvar, const char **cpp_options)
 

Protected Attributes

UT_WorkArgs myArgs
 
UT_WorkBuffer myArgBuf
 
UT_String myUnget
 
CPP_Manager * myCPP
 
int myOptind
 
bool myPreserveBackslashes
 

Detailed Description

Definition at line 23 of file CPP_TokenStream.h.

Constructor & Destructor Documentation

CPP_TokenStream::CPP_TokenStream ( const char *  filename,
int  pathvar = -1,
const char **  cpp_options = 0 
)
CPP_TokenStream::CPP_TokenStream ( UT_IStream is,
const char *  filename = "<internal>",
const char **  cpp_options = 0 
)
virtual CPP_TokenStream::~CPP_TokenStream ( )
virtual

Member Function Documentation

void CPP_TokenStream::addIncludePath ( const char *  path)
void CPP_TokenStream::addIncludePathRaw ( const char *  path)
virtual void CPP_TokenStream::cppError ( const char *  message) const
virtual
virtual void CPP_TokenStream::cppWarning ( const char *  message) const
virtual
const char* CPP_TokenStream::getFileName ( )
int CPP_TokenStream::getLineNumber ( )
int CPP_TokenStream::getToken ( UT_String token)
void CPP_TokenStream::init ( int  pathvar,
const char **  cpp_options 
)
protected
void CPP_TokenStream::setCPPOptions ( const char **  cpp_options)

Set additional CPP options.

void CPP_TokenStream::setPreserveBackslashes ( bool  flag)
void CPP_TokenStream::ungetToken ( const UT_String token)

Member Data Documentation

UT_WorkBuffer CPP_TokenStream::myArgBuf
protected

Definition at line 58 of file CPP_TokenStream.h.

UT_WorkArgs CPP_TokenStream::myArgs
protected

Definition at line 57 of file CPP_TokenStream.h.

CPP_Manager* CPP_TokenStream::myCPP
protected

Definition at line 60 of file CPP_TokenStream.h.

int CPP_TokenStream::myOptind
protected

Definition at line 61 of file CPP_TokenStream.h.

bool CPP_TokenStream::myPreserveBackslashes
protected

Definition at line 62 of file CPP_TokenStream.h.

UT_String CPP_TokenStream::myUnget
protected

Definition at line 59 of file CPP_TokenStream.h.


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