Re: root extension

From: Valery Fine (fine@bnl.gov)
Date: Thu Jun 11 1998 - 22:14:49 MEST


Hello Mohamed
On 11 Jun 98 at 13:59, you wrote:

> Ok I see what is happening now. But imagining that I will have to
> place this code (which can fairly be automated) to every class (the
> library I am planning to use is huge) I use does not appeal to me.
> Can we extend rootcint so that when a certain flag is set it will
> output a xxx_imp.cc & a xxx_def.h that will be fed to my compiler.
> It could also do some syntactic checks just to make sure.

  The code of rootcint is available for you.

  But I think you should not mix things.

  RootCint generates the dictionary and doesn't change the one's C++ 
class definition and it reads the header files (*.h) only. It 
is not designed to parse the class implemenation (namely *.cxx source 
files) and this way it can insert in there no extra line (like 
ClassImp).
  From my point of view it is better to create some separate 
"pre-processor" to generate your C++ as you want and feed the 
RootCint.


                       Valery
=================================================================
Dr. Valeri Faine (Fine)
    -------------------          Phone: +1 516 344 7806
Brookhaven National Laboratory   FAX  : +1 516 344 4206
Bldg. 510A /STAR                 mailto:fine@bnl.gov
Upton, New York, 11973-5000      http://nicewww.cern.ch/~fine
USA
                                 
Dr. Valery Fine                  Telex : 911621 dubna su
    -----------
LCTA/Joint Inst.for Nuclear Res. Phone : +7 09621 6 40 80
141980 Dubna, Moscow region      Fax   : +7 09621 6 51 45
Russia                           mailto:fine@main1.jinr.dubna.su                              



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:33 MET