00001 /* 00002 * File: cw_options_recorder.h 00003 * $Id: cw_options_recorder.h,v 1.2 2002/04/29 09:34:10 alec Exp $ 00004 * 00005 * Author: Alec Panoviciu (alecu@email.com) 00006 * 00007 * Comments: this is the OptionsRecorder C wrapper. This layer is intended to 00008 * make the YACC code behave as it were part of an IParser implementation 00009 * towards the OptionsRecorder. 00010 * 00011 * Revision history: 00012 * 00013 * $Log: cw_options_recorder.h,v $ 00014 * Revision 1.2 2002/04/29 09:34:10 alec 00015 * scanner ptree building compiles 00016 * 00017 */ 00018 00019 00020 /* 00021 Copyright (C) 2002 Alexandru Panoviciu (alecu@email.com) 00022 00023 This program is free software; you can redistribute it and/or modify 00024 it under the terms of the GNU General Public License as published by 00025 the Free Software Foundation; either version 2 of the License, or 00026 (at your option) any later version. 00027 00028 This program is distributed in the hope that it will be useful, 00029 but WITHOUT ANY WARRANTY; without even the implied warranty of 00030 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00031 GNU General Public License for more details. 00032 00033 You should have received a copy of the GNU General Public License 00034 along with this program; if not, write to the Free Software 00035 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00036 00037 */ 00038 00039 #ifndef __CW_OPTIONS_RECORDER_H__ 00040 #define __CW_OPTIONS_RECORDER_H__ 00041 00042 #include "debug.h" 00043 00044 #ifdef __cplusplus 00045 00046 class OptionsRecorder; 00047 00055 extern OptionsRecorder *cw_optionsRecorder; 00056 00057 #define CLINK extern "C" 00058 00059 #else 00060 00061 #define CLINK 00062 00063 #endif 00064 00065 00082 CLINK void OptionsRecorder_setStringOption (char *key, char *value); 00083 00089 CLINK void OptionsRecorder_setBoolOption (char *key, int value); 00090 00096 CLINK void OptionsRecorder_setIntOption (char *key, int value); 00097 00098 00099 #ifdef DEBUG 00100 00104 CLINK void OptionsRecorder_dumpOptions (); 00105 00106 #endif 00107 00108 /* @} */ 00109 00110 #endif /* #ifndef __CW_OPTIONS_RECORDER_H__ */