From: fred Date: Tue, 22 Oct 1996 20:02:12 +0000 (+0000) Subject: lilypond-0.0.4 X-Git-Tag: release/1.5.59~7043 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=90f8c9f8faa24d0855509e6236c499e9a10d01e4;p=lilypond.git lilypond-0.0.4 --- diff --git a/command.hh b/command.hh index 353bf5d4bb..6b835e964b 100644 --- a/command.hh +++ b/command.hh @@ -3,11 +3,13 @@ #include "glob.hh" #include "mtime.hh" #include "vray.hh" +#include "string.hh" + enum Commandcode { NOP, INTERPRET, TYPESET, - BREAK_PRE,BREAK_MIDDLE, BREAK_POST, BREAK_END, + BREAK_PRE,BREAK_MIDDLE, BREAK_POST, BREAK_END }; /// set a nonrythmical symbol struct Command { @@ -16,6 +18,10 @@ struct Command { Mtime when; /// analogous to argv[] svec args; + Command(); + Command(Real w); + bool isbreak()const; + void print() const; }; /** diff --git a/scommands.hh b/scommands.hh new file mode 100644 index 0000000000..15c844ca65 --- /dev/null +++ b/scommands.hh @@ -0,0 +1,28 @@ +/* + lilypond, (c) 1996 Han-Wen Nienhuys +*/ +#ifndef SCOMMANDS_HH +#define SCOMMANDS_HH + +#include "proto.hh" +#include "command.hh" +#include "vray.hh" +#include "list.hh" + +struct Score_commands : public PointerList { + void add(Command); + void add_seq(svec); + void clean(Real last); + void set_breakable(Real when); + bool is_breakable(Real w); + PCursor last_insertion(Real w); + PCursor first(Real w); + void add_command_to_break(Command pre, Command mid,Command post); + void OK() const; + void print() const; +}; +/** the list of commands in Score. Put in a separate class, since it + otherwise clutters the methods of Score. */ + +#endif +