]> git.donarmstrong.com Git - lilypond.git/blob - lib/include/simple-file-storage.hh
partial: 1.3.24.jcn
[lilypond.git] / lib / include / simple-file-storage.hh
1 /*   
2   simple-file-storage.hh -- declare 
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #ifndef SIMPLE_FILE_STORAGE_HH
11 #define SIMPLE_FILE_STORAGE_HH
12
13 #include "file-storage.hh"
14
15 /**
16   read file char by char and copy into a malloc array.
17  */
18 class Simple_file_storage  : public File_storage
19 {
20   char * data_p_;
21   int len_i_;
22
23   void load_stdin ();
24   void load_file (String);
25 public:
26   virtual char const*ch_C () const;
27   virtual int length_i () const;
28   virtual ~Simple_file_storage ();
29   Simple_file_storage (String);
30 };
31
32 #endif /* SIMPLE_FILE_STORAGE_HH */
33