Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

OptionsRecorder C Wrapper


Functions

CLINK void OptionsRecorder_setStringOption (char *key, char *value)
CLINK void OptionsRecorder_setBoolOption (char *key, int value)
CLINK void OptionsRecorder_setIntOption (char *key, int value)
CLINK void OptionsRecorder_dumpOptions ()

Variables

OptionsRecordercw_optionsRecorder

Detailed Description

These are the wrapper functions that will get called from the C parser code. Each of these will call the corresponding method of the OptionsRecorder instance pointed to by cw_OptinosRecorder.

Function Documentation

CLINK void OptionsRecorder_setStringOption ( char * key,
char * value )
 

Adds a string option into the registry, via cw_optionsRecorder::setOption. It also takes care of freeing the string arguments.

Definition at line 57 of file cw_options_recorder.cc.

Referenced by yyparse().

CLINK void OptionsRecorder_setBoolOption ( char * key,
int value )
 

Adds an integer option into the registry, via cw_optionsRecorder::setOption. It also takes care of freeing the string arguments.

Definition at line 70 of file cw_options_recorder.cc.

Referenced by yyparse().

CLINK void OptionsRecorder_setIntOption ( char * key,
int value )
 

Adds a boolean option into the registry, via cw_optionsRecorder::setOption. It also takes care of freeing the string arguments.

Definition at line 81 of file cw_options_recorder.cc.

Referenced by yyparse().

CLINK void OptionsRecorder_dumpOptions ( )
 

This method dumps the whole registry to cerr.

Definition at line 94 of file cw_options_recorder.cc.


Variable Documentation

OptionsRecorder* cw_optionsRecorder
 

This will point to the OptionsRecorder object whose methods should actually be called by the wrapper functions. It is initialized by the LexYaccParser before parsing starts.

Definition at line 55 of file cw_options_recorder.h.


Generated at Tue Jul 9 21:08:56 2002 for CppCC by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001