#include <options_recorder.hh>
Collaboration diagram for OptionsRecorder:
Public Methods | |
OptionsRecorder (PropRegistry ®istry_) | |
void | setOption (const string &key, const string &value) throw (ParseException) |
void | setOption (const string &key, const char *value) throw (ParseException) |
void | setOption (const string &key, int value) throw (ParseException) |
void | setOption (const string &key, bool value) throw (ParseException) |
void | checkName (const string &key, OptDesc::t_kinds kind) throw (ParseException) |
void | dumpRegistry () |
Private Types | |
typedef struct OptionsRecorder::t_OptDesc | OptDesc |
Private Attributes | |
PropRegistry& | registry |
Static Private Attributes | |
OptDesc | optDescriptors [] |
Definition at line 59 of file options_recorder.hh.
|
This structure describes an option: its name, its default value and its type. The default value is the string representation of an int or bool if the value is of that kind, otherwise the value itself, whatever. |
|
Creates a new OptionsRecorder object. The values it receives will be stored into the given registry opbject. As pasrt of the construction, the default values for the options are stored into the registry. Definition at line 81 of file options_recorder.cc. |
|
Adds a new string option into the registry. Definition at line 118 of file options_recorder.cc. Referenced by OptionsRecorder(), OptionsRecorder_setBoolOption(), OptionsRecorder_setIntOption(), and OptionsRecorder_setStringOption().
|
|
Definition at line 125 of file options_recorder.cc. |
|
Adds a new int option into the registry. Definition at line 133 of file options_recorder.cc. |
|
Adds a new boolean option into the registry. Definition at line 142 of file options_recorder.cc. |
|
Throws a ParseException if an option with the given name and value type is not allowed. Definition at line 102 of file options_recorder.cc. |
|
Dumps the registry's contents to stderr. Definition at line 153 of file options_recorder.cc. Referenced by OptionsRecorder_dumpOptions().
|
|
Initial value: { {OptionsRecorder::OptDesc::o_bool, "DEBUG_PARSER", "false"}, {OptionsRecorder::OptDesc::o_bool, "DEBUG_SCANNER" , "false"}, {OptionsRecorder::OptDesc::o_bool, "CASE_SENSITIVE", "true"}, {OptionsRecorder::OptDesc::o_bool, "USE_EXCEPTIONS", "true"}, {OptionsRecorder::OptDesc::o_int, "DEFAULT_LOOKAHEAD", "1"}, {OptionsRecorder::OptDesc::o_bool, "TOKENS_SPAN_EOF", "false"}, {OptionsRecorder::OptDesc::o_bool, "COUNT_COLUMNS", "true"}, {OptionsRecorder::OptDesc::o_bool, "SHARP_LINES", "true"}, {OptionsRecorder::OptDesc::o_string, "PROFILING_FILE", ""}, {OptionsRecorder::OptDesc::o_int, NULL, NULL}, } Definition at line 132 of file options_recorder.hh. |
|
Options that are added through this interface are stored into this registry object. Definition at line 138 of file options_recorder.hh. |