Re: [ROOT] Rootcint problems: include files, excluding vars

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Aug 22 2002 - 16:53:00 MEST


Hi Ole,

You can specify the includepath to rootcint like with the compiler
 "-I/usr/local/log4j"  and not "-I /usr/local/log4j"

For your second point, simply specify  "!" as the first character
in the comment field of the data member you want to exclude,
as shown below in your class. See the documentation.

Rene Brun

On Thu, 22 Aug 2002, Ole Streicher wrote:

> Dear List!
> 
> I have some problems using the "rootcint" Dictionary Generator: The
> file I want to have processed is like
> 
> ----------------8<--------------------
> #include <log4j/Category.h>
> 
> class MyEvent {
>   private: 
>     int x;
>     int y;
>     long TempCache;  //! this member will not be persistent
>     static log4j::Category& cat; 
>  // ...
> }
> ----------------8<--------------------
> 
> But this generates an error that it doesn't find the mentioned include
> file. Is there a possibility to define the include path to use with 
> rootcint, like one does it with "-I /usr/local/log4j" at the C++
> compiler? "rootcint -?" doesn't give any hint.
> 
> The other question is how I can avoid to serialize a certain
> variable. In the example above, I would like not to have "TempCache"
> and "cat" written to the TTree since they are used only internally
> and dont contain any useful information that should be stored.
> 
> Ciao
> 
> Ole
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:05 MET