]> git.donarmstrong.com Git - lilypond.git/blob - lily/bar.cc
release: 0.0.65
[lilypond.git] / lily / bar.cc
1 /*
2   bar.cc -- implement Bar
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9 #include "bar.hh"
10 #include "string.hh"
11 #include "molecule.hh"
12 #include "paper-def.hh"
13 #include "lookup.hh"
14 #include "debug.hh"
15
16 Bar::Bar( String t)
17 {
18     type = t;
19 }
20
21 IMPLEMENT_STATIC_NAME(Bar);
22
23 void
24 Bar::do_print()const
25 {
26     mtor << type;
27 }
28
29 Molecule*
30 Bar::brew_molecule_p()const
31 {    
32     Symbol s = paper()->lookup_l()->bar(type);
33     Molecule*output = new Molecule(Atom(s));
34     return output;
35 }
36