2 // source-file.hh -- declare Source_file
4 // copyright 1997 Jan Nieuwenhuizen <jan@digicash.com>
15 /// class for reading and mapping a file.
19 /** Ugh! filename gets changed! The path to the opened file may
20 change, since it might be searched in multiple directories. */
21 Source_file( String filename_str_r );
22 virtual ~Source_file();
24 char const* ch_C()const;
25 virtual String error_str( char const* pos_ch_c_l )const;
26 istream * istream_l();
27 bool in_b( char const* pos_ch_c_l )const;
29 virtual int line_i( char const* pos_ch_c_l )const;
30 String name_str()const;
31 String file_line_no_str( char const* ch_c_l )const;
36 File_storage * storage_p_;
39 #endif // SOURCE_FILE_HH //