]> git.donarmstrong.com Git - lilypond.git/commitdiff
partial: 0.0.27.jcn
authorJan Nieuwenhuizen <janneke@gnu.org>
Tue, 4 Feb 1997 22:32:27 +0000 (23:32 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 4 Feb 1997 22:32:27 +0000 (23:32 +0100)
hdr/source.hh [new file with mode: 0644]
hdr/sourcefile.hh [new file with mode: 0644]

diff --git a/hdr/source.hh b/hdr/source.hh
new file mode 100644 (file)
index 0000000..b9d00f4
--- /dev/null
@@ -0,0 +1,22 @@
+//
+//  source.hh -- part of LilyPond
+//
+//  copyright 1997 Jan Nieuwenhuizen <jan@digicash.nl>
+
+#ifndef SOURCE_HH
+#define SOURCE_HH
+
+class Source 
+{
+public:
+    Source();
+    ~Source();
+
+    void add( Source_file* sourcefile_p );
+    Source_file* sourcefile_l( char const* ch_c_l );
+
+private:
+    IPointerList<Source_file*> sourcefile_p_iplist_m;
+};
+
+#endif // SOURCE_HH //
diff --git a/hdr/sourcefile.hh b/hdr/sourcefile.hh
new file mode 100644 (file)
index 0000000..5e97f31
--- /dev/null
@@ -0,0 +1,38 @@
+//
+//  sourcefile.hh -- part of LilyPond
+//
+//  copyright 1997 Jan Nieuwenhuizen <jan@digicash.nl>
+
+#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 //