From 4d424d5f09837eed448aec3ebe55e104433e197d Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:37:18 +0000 Subject: [PATCH] lilypond-0.0.46.jcn1 --- lily/include/input-score.hh | 9 ++++----- lily/include/input.hh | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 lily/include/input.hh diff --git a/lily/include/input-score.hh b/lily/include/input-score.hh index 36baf691c9..a55b7a4378 100644 --- a/lily/include/input-score.hh +++ b/lily/include/input-score.hh @@ -14,12 +14,11 @@ #include "proto.hh" #include "plist.hh" #include "string.hh" - +#include "input.hh" /// the total music def of one movement -struct Input_score { - /// defined where? - char const * defined_ch_C_; +class Input_score : public Input { +public: int errorlevel_i_; /// paper_, staffs_ and commands_ form the problem definition. @@ -35,7 +34,7 @@ struct Input_score { void add(Input_staff*); ~Input_score(); /// construction - void set(Paper_def*); + void set(Paper_def* paper_p); void set(Midi_def* midi_p); void print() const; Score*parse(); diff --git a/lily/include/input.hh b/lily/include/input.hh new file mode 100644 index 0000000000..8677daa116 --- /dev/null +++ b/lily/include/input.hh @@ -0,0 +1,32 @@ +/* + input.hh -- declare Input + + source file of the LilyPond music typesetter + + (c) 1997 Han-Wen Nienhuys +*/ + + +#ifndef INPUT_HH +#define INPUT_HH + +/** + Base class for anything that records its poisition in the parse file. + */ +class Input { + char const *defined_ch_C_ ; + Sources * sources_l_; +public: + + void warning(String)const; // should use member func? + void error(String)const; + void message(String)const; + void set_spot(Input const &); + void set_sources(Sources *); + + String location_str()const; + Input(Sources *,char const*); + Input(); +}; + +#endif // INPUT_HH -- 2.39.5