vrscan.h

00001 #ifndef FLEX_HEADER_vrscan_h
00002 #define FLEX_HEADER_vrscan_h
00003 #define YY_vrscan_CHAR unsigned char
00004 #line 1 "flexskel.xh"
00005 /* A lexical scanner header generated by flex */
00006 /* MODIFIED FOR C++ CLASS BY Alain Coetmeur: coetmeur(at)icdc.fr */
00007 /* Note that (at) mean the 'at' symbol that I cannot write */
00008 /* because it is expanded to the class name */
00009 /* made at Informatique-CDC, Research&development department */
00010 /* company from the Caisse Des Depots et Consignations */
00011 
00012 
00013 /*********************************************/
00014 /* SYSTEM dependent declaration, includes... */
00015 /*********************************************/
00016 /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
00017 #ifdef c_plusplus
00018 #ifndef __cplusplus
00019 #define __cplusplus
00020 #endif
00021 #endif
00022 #ifdef __cplusplus
00023 #ifndef YY_USE_PROTOS
00024 #define YY_USE_PROTOS
00025 #endif
00026 #ifndef YY_USE_CLASS
00027 #define YY_USE_CLASS
00028 #endif
00029 #else   /* ! __cplusplus */
00030 #ifdef __STDC__
00031 #ifdef __GNUC__
00032 #else
00033 #endif  /* __GNUC__ */
00034 #ifndef YY_USE_PROTOS
00035 #define YY_USE_PROTOS
00036 #endif
00037 #endif  /* __STDC__ */
00038 #endif  /* ! __cplusplus */
00039 /*********************************************/
00040 /* COMPILER DEPENDENT   MACROS               */
00041 /*********************************************/
00042 /* use prototypes in function declarations */
00043 #ifndef YY_PROTO
00044 #ifdef YY_USE_PROTOS
00045 #define YY_PROTO(proto) proto
00046 #else
00047 #define YY_PROTO(proto) ()
00048 #endif
00049 #endif
00050 
00051 #ifdef __cplusplus
00052 #define INCLUDE_CSTDIO
00053 #include "dcmtk/ofstd/ofstdinc.h"
00054 #else
00055 #include <stdio.h>
00056 #endif
00057 
00058 
00059 /* % here is the declaration from section1 %header{  */ 
00060 #line 76 "vrscan.l"
00061 #define YY_vrscan_IOSTREAM 
00062 #line 78 "vrscan.l"
00063 #define YY_vrscan_MEMBERS  \
00064   private: \
00065     /* undefined */ vrscan& operator=(const vrscan&); \
00066     /* undefined */ vrscan(const vrscan&);
00067 #line 84 "vrscan.l"
00068 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00069 #line 134 "vrscan.l"
00070 #line 56 "flexskel.xh"
00071 
00072 #ifdef YY_USE_CLASS
00073 #ifdef YY_vrscan_IOSTREAM
00074 #include "dcmtk/ofstd/ofstream.h"
00075 #define YY_vrscan_IFILE  istream
00076 #define YY_vrscan_OFILE ostream 
00077 #define YY_vrscan_ERRFILE cerr
00078 
00079 #ifndef YY_vrscan_IFILE_DEFAULT
00080 #define YY_vrscan_IFILE_DEFAULT &cin
00081 #endif
00082 
00083 #ifndef YY_vrscan_OFILE_DEFAULT
00084 #define YY_vrscan_OFILE_DEFAULT &cout
00085 #endif
00086 
00087 #endif
00088 #endif
00089 
00090 #ifndef YY_vrscan_IFILE
00091 #define YY_vrscan_IFILE FILE 
00092 #endif
00093 
00094 #ifndef YY_vrscan_OFILE
00095 #define YY_vrscan_OFILE FILE 
00096 #endif
00097 
00098 #ifndef YY_vrscan_ERRFILE
00099 #define YY_vrscan_ERRFILE stderr
00100 #endif
00101 
00102 #ifndef YY_vrscan_IFILE_DEFAULT
00103 #define YY_vrscan_IFILE_DEFAULT stdin
00104 #endif
00105 
00106 #ifndef YY_vrscan_OFILE_DEFAULT
00107 #define YY_vrscan_OFILE_DEFAULT stdout
00108 #endif
00109 
00110 
00111 
00112 
00113 #ifndef YY_vrscan_TEXT
00114 #define YY_vrscan_TEXT yytext
00115 #endif
00116 #ifndef YY_vrscan_LENG
00117 #define YY_vrscan_LENG yyleng
00118 #endif
00119 #ifndef YY_vrscan_IN
00120 #define YY_vrscan_IN yyin
00121 #endif
00122 #ifndef YY_vrscan_OUT
00123 #define YY_vrscan_OUT yyout
00124 #endif
00125 
00126 #ifndef YY_vrscan_LEX_RETURN
00127 #define YY_vrscan_LEX_RETURN int
00128 #else
00129 #ifndef YY_vrscan_LEX_DEFINED
00130 #define YY_vrscan_LEX_DEFINED 
00131 #endif
00132 #endif
00133 
00134 #ifndef YY_vrscan_LEX
00135 #define YY_vrscan_LEX yylex
00136 #else
00137 #ifndef YY_vrscan_LEX_DEFINED
00138 #define YY_vrscan_LEX_DEFINED 
00139 #endif
00140 #endif
00141 
00142 #ifndef YY_vrscan_LEX_PARAM
00143 #ifndef YY_USE_PROTOS
00144 #define YY_vrscan_LEX_PARAM 
00145 #else
00146 #define YY_vrscan_LEX_PARAM void
00147 #endif
00148 #else
00149 #ifndef YY_vrscan_LEX_DEFINED
00150 #define YY_vrscan_LEX_DEFINED 
00151 #endif
00152 #endif
00153 
00154 #ifndef YY_vrscan_LEX_PARAM_DEF
00155 #define YY_vrscan_LEX_PARAM_DEF
00156 #else
00157 #ifndef YY_vrscan_LEX_DEFINED
00158 #define YY_vrscan_LEX_DEFINED 
00159 #endif
00160 #endif
00161 
00162 #ifndef YY_vrscan_RESTART
00163 #define YY_vrscan_RESTART yyrestart
00164 #endif
00165 #ifndef YY_vrscan_SWITCH_TO_BUFFER
00166 #define YY_vrscan_SWITCH_TO_BUFFER yy_switch_to_buffer
00167 #endif
00168 #ifndef YY_vrscan_LOAD_BUFFER_STATE
00169 #define YY_vrscan_LOAD_BUFFER_STATE yy_load_buffer_state
00170 #endif
00171 
00172 #ifndef YY_vrscan_CREATE_BUFFER
00173 #define YY_vrscan_CREATE_BUFFER yy_create_buffer
00174 #ifndef YY_USE_CLASS
00175 #ifndef yy_new_buffer
00176 #define yy_new_buffer yy_create_buffer
00177 #endif
00178 #endif
00179 #endif
00180 #ifndef YY_vrscan_DELETE_BUFFER
00181 #define YY_vrscan_DELETE_BUFFER yy_delete_buffer
00182 #endif
00183 #ifndef YY_vrscan_INIT_BUFFER
00184 #define YY_vrscan_INIT_BUFFER yy_init_buffer
00185 #endif
00186 
00187 
00188 
00189 #ifdef YY_vrscan_FLEX_DEBUG
00190 #ifndef YY_vrscan_DEBUG
00191 #define YY_vrscan_DEBUG 1
00192 #endif
00193 #else
00194 #ifndef YY_vrscan_DEBUG
00195 #define YY_vrscan_DEBUG 0
00196 #endif
00197 #endif
00198 
00199 #if YY_vrscan_DEBUG != 0
00200 #ifndef YY_vrscan_DEBUG_FLAG
00201 #define YY_vrscan_DEBUG_FLAG yy_flex_debug
00202 #endif
00203 #ifndef YY_vrscan_DEBUG_INIT
00204 #define YY_vrscan_DEBUG_INIT 1
00205 #endif
00206 #endif
00207 
00208 
00209 
00210 
00211 #ifndef YY_USE_CLASS
00212 #ifndef YY_vrscan_CURRENT_BUFFER
00213 #define YY_vrscan_CURRENT_BUFFER yy_current_buffer
00214 #endif
00215 typedef struct yy_buffer_state *YY_BUFFER_STATE;
00216 
00217 extern void YY_vrscan_RESTART YY_PROTO(( YY_vrscan_IFILE *input_file ));
00218 extern void YY_vrscan_SWITCH_TO_BUFFER YY_PROTO(( YY_BUFFER_STATE new_buffer ));
00219 extern void YY_vrscan_LOAD_BUFFER_STATE YY_PROTO(( void ));
00220 extern YY_BUFFER_STATE YY_vrscan_CREATE_BUFFER YY_PROTO(( YY_vrscan_IFILE *file, int size ));
00221 extern void YY_vrscan_DELETE_BUFFER YY_PROTO(( YY_BUFFER_STATE b ));
00222 extern void YY_vrscan_INIT_BUFFER YY_PROTO(( YY_BUFFER_STATE b, YY_vrscan_IFILE *file ));
00223 
00224 #if YY_vrscan_DEBUG != 0
00225 extern int YY_vrscan_DEBUG_FLAG ;
00226 #endif
00227 extern YY_vrscan_CHAR  *YY_vrscan_TEXT;
00228 extern int YY_vrscan_LENG;
00229 extern YY_vrscan_IFILE *YY_vrscan_IN;
00230 extern YY_vrscan_OFILE *YY_vrscan_OUT;
00231 #ifdef YY_vrscan_LEX_DEFINED
00232 extern YY_vrscan_LEX_RETURN YY_vrscan_LEX ( YY_vrscan_LEX_PARAM )
00233 YY_vrscan_LEX_PARAM_DEF
00234 #else
00235 #ifndef YY_DECL
00236 extern YY_vrscan_LEX_RETURN YY_vrscan_LEX ( YY_vrscan_LEX_PARAM )
00237 YY_vrscan_LEX_PARAM_DEF
00238 #else
00239 /* no declaration if oldstyle flex */
00240 #endif
00241 #endif
00242 #else
00243 
00244 #ifndef YY_vrscan_CURRENT_BUFFER
00245 #define YY_vrscan_CURRENT_BUFFER YY_CURRENT_BUFFER
00246 #endif
00247 #ifndef YY_vrscan_CLASS
00248 #define YY_vrscan_CLASS vrscan
00249 #endif
00250 #ifndef YY_vrscan_ECHO
00251 #define YY_vrscan_ECHO yy_echo
00252 #endif
00253 #ifdef YY_vrscan_ECHO_PURE
00254 #define YY_vrscan_ECHO_NOCODE
00255 #endif
00256 
00257 #ifndef YY_vrscan_ECHO_CODE
00258 #ifndef YY_vrscan_IOSTREAM
00259 #define YY_vrscan_ECHO_CODE fwrite( OFreinterpret_cast(char *, YY_vrscan_TEXT), YY_vrscan_LENG, 1, YY_vrscan_OUT );
00260 #else
00261 #define YY_vrscan_ECHO_CODE (YY_vrscan_OUT->write( OFreinterpret_cast(char *, YY_vrscan_TEXT), YY_vrscan_LENG));
00262 #endif
00263 #endif
00264 
00265 #ifndef YY_vrscan_INPUT
00266 #define YY_vrscan_INPUT yy_input
00267 #endif
00268 #ifdef YY_vrscan_INPUT_PURE
00269 #define YY_vrscan_INPUT_NOCODE
00270 #endif
00271 
00272 #ifndef YY_vrscan_INPUT_CODE
00273 #ifndef YY_vrscan_IOSTREAM
00274 #define YY_vrscan_INPUT_CODE return result= fread(  buffer, 1,max_size,YY_vrscan_IN );
00275 #else
00276 #define YY_vrscan_INPUT_CODE if(YY_vrscan_IN->eof())  result=0;else {YY_vrscan_IN->read(buffer,max_size);result=YY_vrscan_IN->gcount();YY_vrscan_IN->clear(YY_vrscan_IN->rdstate()&(~ios::failbit));if(YY_vrscan_IN->bad()) result= -1;} return result;
00277 #endif
00278 #endif
00279 
00280 #ifdef YY_vrscan_FATAL_ERROR_PURE
00281 #define YY_vrscan_FATAL_ERRO_NOCODE
00282 #endif
00283 #ifndef YY_vrscan_FATAL_ERROR
00284 #define YY_vrscan_FATAL_ERROR yy_fatal_error
00285 #endif
00286 
00287 #ifndef YY_vrscan_FATAL_ERROR_CODE
00288 #ifndef YY_vrscan_IOSTREAM
00289 #define YY_vrscan_FATAL_ERROR_CODE fputs( msg, YY_vrscan_ERRFILE );putc( '\n', YY_vrscan_ERRFILE );exit( 1 );
00290 #else
00291 #define YY_vrscan_FATAL_ERROR_CODE YY_vrscan_ERRFILE<< msg <<endl;exit( 1 );
00292 #endif
00293 #endif
00294 
00295 #ifndef YY_vrscan_WRAP
00296 #define YY_vrscan_WRAP yy_wrap
00297 #endif
00298 #ifdef YY_vrscan_WRAP_PURE
00299 #define YY_vrscan_WRAP_NOCODE
00300 #endif
00301 #ifndef YY_vrscan_WRAP_CODE
00302 #define YY_vrscan_WRAP_CODE return 1;
00303 #endif
00304 
00305 
00306 #ifndef YY_vrscan_INHERIT
00307 #define YY_vrscan_INHERIT
00308 #endif
00309 #ifndef YY_vrscan_MEMBERS
00310 #define YY_vrscan_MEMBERS 
00311 #endif
00312 #ifndef YY_vrscan_CONSTRUCTOR_PARAM
00313 #define YY_vrscan_CONSTRUCTOR_PARAM
00314 #endif
00315 #ifndef YY_vrscan_CONSTRUCTOR_CODE
00316 #define YY_vrscan_CONSTRUCTOR_CODE
00317 #endif
00318 #ifndef YY_vrscan_CONSTRUCTOR_INIT
00319 #define YY_vrscan_CONSTRUCTOR_INIT
00320 #endif
00321 #ifndef YY_vrscan_DESTRUCTOR_CODE
00322 #define YY_vrscan_DESTRUCTOR_CODE
00323 #endif
00324 typedef struct yy_buffer_state *YY_BUFFER_STATE;
00325 
00326 class YY_vrscan_CLASS YY_vrscan_INHERIT
00327 {
00328  private:/* data */
00329  YY_vrscan_CHAR  *yy_c_buf_p;
00330  YY_vrscan_CHAR  yy_hold_char;
00331  int yy_n_chars;
00332  int yy_init;
00333  int yy_start;
00334  int yy_did_buffer_switch_on_eof;
00335  private: /* functions */
00336  void yy_initialize();
00337  int input();
00338  int yyinput() {return input();};
00339  int yy_get_next_buffer();
00340  void yyunput( YY_vrscan_CHAR  c, YY_vrscan_CHAR  *buf_ptr );
00341  /* use long instead of yy_state_type because it is undef */
00342  long yy_get_previous_state_ ( void );
00343  long yy_try_NUL_trans_  ( long current_state_ );
00344  protected:/* non virtual */
00345  YY_BUFFER_STATE YY_vrscan_CURRENT_BUFFER;
00346  void YY_vrscan_RESTART ( YY_vrscan_IFILE *input_file );
00347  void YY_vrscan_SWITCH_TO_BUFFER( YY_BUFFER_STATE new_buffer );
00348  void YY_vrscan_LOAD_BUFFER_STATE( void );
00349  YY_BUFFER_STATE YY_vrscan_CREATE_BUFFER( YY_vrscan_IFILE *file, int size );
00350  void YY_vrscan_DELETE_BUFFER( YY_BUFFER_STATE b );
00351  void YY_vrscan_INIT_BUFFER( YY_BUFFER_STATE b, YY_vrscan_IFILE *file );
00352  protected: /* virtual */
00353  virtual void YY_vrscan_ECHO()
00354 #ifdef YY_vrscan_ECHO_PURE
00355   =0
00356 #endif
00357   ;
00358  virtual int  YY_vrscan_INPUT(char  *buf,int &result,int max_size)
00359 #ifdef YY_vrscan_INPUT_PURE
00360   =0
00361 #endif
00362   ;
00363  virtual void  YY_vrscan_FATAL_ERROR(const char *msg)
00364 #ifdef YY_vrscan_FATAL_ERROR_PURE
00365   =0
00366 #endif
00367   ;
00368  virtual int  YY_vrscan_WRAP()
00369 #ifdef YY_vrscan_WRAP_PURE
00370   =0
00371 #endif
00372   ;
00373  public:
00374  YY_vrscan_CHAR  *YY_vrscan_TEXT;
00375  int YY_vrscan_LENG;
00376  YY_vrscan_IFILE *YY_vrscan_IN;
00377  YY_vrscan_OFILE *YY_vrscan_OUT;
00378  YY_vrscan_LEX_RETURN YY_vrscan_LEX ( YY_vrscan_LEX_PARAM);
00379  YY_vrscan_CLASS(YY_vrscan_CONSTRUCTOR_PARAM) ;
00380  virtual ~YY_vrscan_CLASS() ;
00381 #if YY_vrscan_DEBUG != 0
00382  int YY_vrscan_DEBUG_FLAG;
00383 #endif
00384  public: /* added members */
00385  YY_vrscan_MEMBERS 
00386 };
00387 #endif
00388 
00389 
00390 
00391 /* declaration of externs for public use of yylex scanner */
00392 
00393 /* % here is the declaration from section2 %header{ */ 
00394 #line 153 "vrscan.l"
00395 #endif
00396 #line 379 "flexskel.xh"
00397 
00398 /* end of generated header */


Generated on 20 Dec 2005 for OFFIS DCMTK Version 3.5.4 by Doxygen 1.4.5