[ROOT] Re: foreign classes support in ROOT

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Nov 06 2003 - 09:35:50 MET


Hi Valentine,

It is not exactly clear what you are asking.

We use the terminology "foreign class" in ROOT to describe classes
not instrumented at all with ROOT includes or macros.
Support for such classes has been introduced about one year ago
and it does not require any special documentation.
You can produce your dictionaries, use the I/O sub-system and call
these classes from the interpreter. To get the dictionary, you run rootcint
on these classes like for ROOT-aware classes.
In the attachement, you will find a small tar file with two classes A and B
and the procedure to create the dictionary, compile and create a shared lib.

Obviously foreign classes do not provide the full functionality that you
find in ROOT instrumented classes (TObject functionality).
The support for foreign classes was important to facilitate I/O
and interactivity with external class libraries that you cannot modify.

Rene Brun



Valentine Kouznetsov wrote:
> 
> Hi, I'm looking for any documentation about foreign classes in ROOT.
> Any examples, docs, notes, list of classes, class implementations.
> I would appreciate if someone briefly summarize their current status.
> Thank you,
> Valentine.




This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET