Re: [ROOT] Integrating an application to make its

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Dec 12 2001 - 22:47:50 MET


Hi Heather,

There is some contradiction in your request. If you want
to keep your application "ROOT-free", you cannot make them
standard ROOT objects.
If you simply want to access your objects (not TObjects)
in a ROOT session, this is trivial.
You have to run rootcint on your header files to generate
the dictionary. Compile and link the dictionary
in a shared lib that you link dynamically.
All this can be achieved transparently with ACLIC.
Suppose you have your classes in one file MyClasses.cxx
In a ROOT session, do
 root > .L MyClasses.cxx
or
 root > .L MyClasses.cxx++ (your classes will be compiled)
Now you can create/invoke objects of MyClasses.

Rene Brun

On Wed, 12 Dec 2001, Heather Kelly wrote:

> Hi,
> 
> We have a stand alone C++ application, whose data we desire to make
> accessible within interactive ROOT.  
> 
> We would like:
> 	1.) To keep the core application ROOT-free.
> 	2.) Provide access to all data as standard ROOT objects.
> 
> It seems as though the best way to do this is to provide some interface
> ROOT classes that will store the application data and then make those
> objects available in TFolders.
> 
> Does anyone have any other recommendations or examples of such an application?
> 
> Thanks,
> Heather
> 



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:11 MET