TOP --> CcDoc
Ccdoc simple pre-processor.
Usage:
CCcDocPrep pp; pp.Define("NT=1"); pp.Define("FOO"); pp.UnDefine("SUN"); pp.Prep("in.cpp","out.cpp");
public CCcDocPrep ( ) ;
Constructor.
public ~ CCcDocPrep ( ) ;
Destructor.
public void Define ( const char * name , const char * value = 0 ) ;
Define a symbol.
name | The name of the symbol. |
value | The value of the symbol. |
public void UnDefine ( const char * name ) ;
Undefine a symbol.
name | The name of the symbol. |
public void Prep ( const char * src , const char * dst , bool definedByDefaultFlag = false ) ;
Pre-process the specified file.
src | The from file. |
dst | The to file. |
definedByDefaultFlag | If TRUE, assume that all symbols are defined, otherwise assume that all symbols are undefined. |
public bool IsSymDefined ( const char * symname ) const ;
Is the specified symbol defined?
symname | The symbol name. |
public long GetValue ( const char * symname ) const ;
Get the symbol value.
symname | The symbol name. |
public bool FindSym ( bool & global , long & index , const char * symname ) const ;
Find the specified symbol.
global | Set to true if the sym is in the global list. |
index | The index in the list. |
symname | The symbol name. |
This documentation was generated automatically by the ccdoc tool (version 0.7a).
Click here to submit a bug report or feature request.
Click here to return to the top of the page.