]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/identparent.hh
release: 0.0.42.pre3
[lilypond.git] / lily / include / identparent.hh
index 8071dcd4f549b411f0670778daf51b0fc650d670..09c7cfafd0cb2ee13152e399db7d99198272b2fd 100644 (file)
@@ -1,49 +1 @@
-/*
-  identparent.hh -- part of LilyPond
-
-  (c) 1996,97 Han-Wen Nienhuys
-*/
-
-#ifndef IDENTPARENT_HH
-#define IDENTPARENT_HH
-
-#include "proto.hh"
-#include "string.hh"
-
-/* boolean argument to accesor is copy_b..*/
-#define IDACCESSOR( Input_staff, staff)\
-    virtual Input_staff * staff(bool) { error(#Input_staff); return 0; }
-
-
-struct Identifier {
-    void *data;
-    String name;
-    int token_code_i_;
-    
-    Identifier(String n, int code) : name(n) { token_code_i_ = code; }
-    virtual ~Identifier() {}
-
-    void print()const;
-    virtual const char*classname() { return "new Identifier"; }
-    void error(String);
-    IDACCESSOR(Input_staff, staff)
-    IDACCESSOR(Input_music, music)
-    IDACCESSOR(Music_voice, mvoice)
-    IDACCESSOR(Script_def, script)     
-    IDACCESSOR(Symtables, symtables)
-    IDACCESSOR(Music_general_chord, mchord)
-    IDACCESSOR(Lookup,lookup)
-    IDACCESSOR(Real,real)
-    IDACCESSOR(Notename_tab, notename_tab)
-    IDACCESSOR(Request, request)
-       
-protected:
-    virtual void do_print()const=0;
-private:
-    Identifier(Identifier const&){}
-    
-};
-#endif // IDENTPARENT_HH
-
-
-
+#error