From: fred Date: Sat, 2 Nov 1996 01:33:49 +0000 (+0000) Subject: lilypond-0.0.6 X-Git-Tag: release/1.5.59~6954 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=bdad865a6ecbdeaa27d1cb1ecd0a9b47cf58ffb6;p=lilypond.git lilypond-0.0.6 --- diff --git a/CodingStyle b/CodingStyle new file mode 100644 index 0000000000..c5d730c0a6 --- /dev/null +++ b/CodingStyle @@ -0,0 +1,55 @@ +CODING STANDARDS: + +Functions and methods do not return errorcodes, but use assert for +checking status. + +INDENTATION, in emacs: + + +(add-hook 'c-mode-hook + '(lambda ()(setq c-basic-offset 4))) + + +(add-hook 'c++-mode-hook + '(lambda() (c-set-style "Stroustrup") + ) + ) + + +CLASSES and TYPES: + + This_is_a_class + +DATA MEMBERS + + Class:member + +if the member's name resembles its type, then we use + + Class Fubular { ..} + + Class::fubular_ + +COMMENTS + +/// short description +class Class { + /// + Data data_member_; + /** + .. + */ + + /****************/ + + /// short memo + member(); + /** + long doco of member() + */ +}; +/** + Class documentation. +*/ + +Unfortunately most of the code isn't really documented that good. \ No newline at end of file diff --git a/rhythmstaff.hh b/rhythmstaff.hh new file mode 100644 index 0000000000..7fe7c6a887 --- /dev/null +++ b/rhythmstaff.hh @@ -0,0 +1,35 @@ +/* + rhythmstaf.hh -- part of LilyPond + + (c) 1996 Han-Wen Nienhuys +*/ + +#ifndef RHYTHMSTAF_HH +#define RHYTHMSTAF_HH + +#include "simplestaff.hh" + +/// all notes on one line +struct Rhythmic_staff : public Simple_staff +{ + // Rhythmic_staff(); + Staff_column * create_col(Score_column*); + virtual void set_output(PScore *); + virtual Rhythmic_staff*clone()const; +}; + +/// this does the typesetting +struct Rhythmic_column : public Simple_column { + virtual void typeset_req(Request *rq); + virtual void typeset_command(Command *, int brs); + + +// virtual void typeset_item(Item *rq, int=1); + Rhythmic_column(Score_column*s,Simple_staff*rs) : + Simple_column(s,rs) { } +// virtual Rhythmic_column*clone()const; +}; + +#endif // RHYTHMSTAF_HH + +