2 identparent.hh -- part of LilyPond
4 (c) 1996,97 Han-Wen Nienhuys
13 /* boolean argument to accesor is copy_b..*/
14 #define IDACCESSOR( Input_staff, staff)\
15 virtual Input_staff * staff(bool) { error(#Input_staff); return 0; }
21 Identifier(String n
) : name(n
) { }
22 virtual ~Identifier() {}
25 virtual const char*classname() { return "new Identifier"; }
27 IDACCESSOR(Input_staff
, staff
)
28 IDACCESSOR(Input_music
, music
)
29 IDACCESSOR(Music_voice
, mvoice
)
30 IDACCESSOR(Script_def
, script
)
31 IDACCESSOR(Symtables
, symtables
)
32 IDACCESSOR(Music_general_chord
, mchord
)
33 IDACCESSOR(Lookup
,lookup
)
35 IDACCESSOR(Notename_tab
, notename_tab
)
37 virtual void do_print()const=0;
39 Identifier(Identifier
const&){}
42 #endif // IDENTPARENT_HH