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; }
23 Identifier(String n, int code) : name(n) { token_code_i_ = code; }
24 virtual ~Identifier() {}
27 virtual const char*classname() { return "new Identifier"; }
29 IDACCESSOR(Input_staff, staff)
30 IDACCESSOR(Input_music, music)
31 IDACCESSOR(Music_voice, mvoice)
32 IDACCESSOR(Script_def, script)
33 IDACCESSOR(Symtables, symtables)
34 IDACCESSOR(Music_general_chord, mchord)
35 IDACCESSOR(Lookup,lookup)
37 IDACCESSOR(Request, request)
40 virtual void do_print()const=0;
42 Identifier(Identifier const&){}
45 #endif // IDENTPARENT_HH