Virtual base class in CINT
Pasha Murat (murat@cdfsga.fnal.gov)
Wed, 31 Mar 1999 16:50:13 -0600 (CST)
Rob Shanks writes:
> I'm trying to generate a CINT file for some classes of mine and
> have run into some difficulty. I have a class called MCDiag which
> inherits from a pure virtual class, EventSource. The problem is that
> CINT seems to be refusing to generate Streamer() and ShowMembers()
> methods for my MCDiag class. I looked around the web site and saw that
> by adding certain characters into the LinkDef file one could stop these
> methods from being generated. I'm sure I don't have those flags set in
> the LinkDef file. I just can't figure out why CINT won't generate the
> Streamer() and ShowMembers() methods. Here is what happens when I call
> rootcint:
>
> V:\LCD\RootApps\Utils\prod\src>rootcint -f UtilsCint.cxx -c
> -I..\..\..\Event\pro
> d\src -Iv:\lcd\lcd-working\StdHep\src\inc EventSource.h readStdFile.h
> MCDiag.h UtilsLinkDef.h
> Note: operator new() masked 1c
> Note: operator delete() masked 1c
> Class MCDiag: Streamer() not declared
> Class MCDiag: ShowMembers() not declared
>
> V:\LCD\RootApps\Utils\prod\src>
>
> The odd thing is that the class readStdFile also inherits from
> the virtual base class EventSource and seems to get all of it's methods
> generated just fine.
>
> Suggestions?
>
> Rob Shanks
> rshanks@slac.stanford.edu
I'd guess that you're missing ClassDef/ClassImp macros in your MCDiag class.
-pasha