From: fred Date: Tue, 4 Feb 1997 22:54:45 +0000 (+0000) Subject: lilypond-0.0.27 X-Git-Tag: release/1.5.59~6365 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9039fc4f31b390314ad7a393223c8a3fc0bc9b43;p=lilypond.git lilypond-0.0.27 --- diff --git a/hdr/sourcefile.hh b/hdr/sourcefile.hh new file mode 100644 index 0000000000..5e97f31a22 --- /dev/null +++ b/hdr/sourcefile.hh @@ -0,0 +1,38 @@ +// +// sourcefile.hh -- part of LilyPond +// +// copyright 1997 Jan Nieuwenhuizen + +#ifndef SOURCE_FILE_HH +#define SOURCE_FILE_HH + +class Source_file +{ +public: + /// + Source_file( String &filename_str ); + /** + RETURN path to opened file. + */ + ~Source_file(); + char const* ch_c_l(); + String error_str( char const* pos_ch_c_l ); + istream* istream_l(); + bool in_b( char const* pos_ch_c_l ); + int line_i( char const* pos_ch_c_l ); + String name_str(); + +private: + void close(); + void map(); + void open(); + void unmap(); + + istream* istream_p_m; + int fildes_i_m; + String name_str_m; + off_t size_off_m; + caddr_t data_caddr_m; +}; + +#endif // SOURCE_FILE_HH //