]> git.donarmstrong.com Git - lilypond.git/blob - lib/include/string-storage.hh
release: 1.3.19
[lilypond.git] / lib / include / string-storage.hh
1 /*   
2   string-storage.hh -- declare String_storage
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1998--2000 Jan Nieuwenhuizen <janneke@gnu.org>
7   
8  */
9
10 #ifndef STRING_STORAGE_HH
11 #define STRING_STORAGE_HH
12
13 #include "string.hh"
14 #include "file-storage.hh"
15
16 /**
17  Urg, let String act as file storage.
18  */
19 class String_storage : public File_storage, protected String
20 {
21 public:
22   String_storage (String s) : String (s) { }
23
24 protected:    
25   virtual char const* ch_C () const { return String::ch_C (); }
26   virtual int length_i () const { return String::length_i (); }
27 };
28
29 #endif /* STRING_STORAGE_HH */
30