1ROOTCINT(1)                 General Commands Manual                ROOTCINT(1)
2
3
4

NAME

6       rootcint - ROOT Dictionary generator
7

SYNOPSIS

9       rootcint header_file[+][-][!] ... [LinkDef.h] > dict_file
10       rootcint [-f] dict_file [-c] header_file[+][-][!] ... [LinkDef.h]
11

DESCRIPTION

13       The  rootcint  program  generates the Streamer(), TBuffer &operator>>()
14       and ShowMembers() methods for ROOT  classes,  i.e.  classes  using  the
15       ClassDef  and  ClassImp macros.  In addition rootcint can also generate
16       the CINT dictionaries needed in order to get access to ones classes via
17       the interpreter.
18
19       rootcint can be used like:
20
21              rootcint TAttAxis.h[-][!] ... [LinkDef.h] > AxisGen.C
22       or
23              rootcint [-f] [AxDict.C] [-c] TAttAxis.h[-][!] ... [LinkDef.h]
24
25       The  difference  between  the  two  is  that in the first case only the
26       Streamer() and ShowMembers() methods are generated while in the  latter
27       case  a   complete compileable file is generated (including the include
28       statements). The first method also allows the output to be appended  to
29       an  already  existing  file  (using >> ). The optional minus behind the
30       include file name tells rootcint to not generate the Streamer() method.
31       A  custom  method must be provided by the user in that case. When using
32       option -c also the interpreter method interface stubs will  be  written
33       to  the output file ( AxDict.C in the above case).  By default the out‐
34       put file will not be overwritten if  it  exists.  Use  the  -f  (force)
35       option to overwite the output file.
36
37       Before  specifying  the first header file one can also add include file
38       directories to be searched and preprocessor defines, like:
39
40              -I$../include -DDebug
41
42       The (optional) file LinkDef.h looks like:
43
44              #ifdef __CINT__
45
46              #pragma link off all globals;
47              #pragma link off all classes;
48              #pragma link off all functions;
49
50              #pragma link C++ class TAxis;
51              #pragma link C++ class TAttAxis-;
52              #pragma link C++ class TArrayC-!;
53
54              #pragma link C++ function StrDup;
55              #pragma link C++ function operator+(const TString&,const TString&);
56
57              #pragma link C++ global gROOT;
58              #pragma link C++ global gEnv;
59
60              #pragma link C++ enum EMessageTypes;
61
62              #endif
63
64       This file tells rootcint for which classes the method  interface  stubs
65       should be generated. A trailing `-' in the class name tells rootcint to
66       not generate the Streamer() method. This is necessary for those classes
67       that  need  a customized Streamer() method. A trailing `!' in the class
68       name tells rootcint to not generate the operator>>(TBuffer &b,  MyClass
69       *&obj)  method.  This  is  necessary  to  be  able to write pointers to
70       objects of classes not inheriting from TObject.  When this file is  not
71       specified  a default version exporting the classes with the names equal
72       to the include files minus the .h is generated.
73
74       IMPORTANT:
75
76       1      LinkDef.h must be the last  argument  on  the  rootcint  command
77              line.
78
79       2      Note  that  the  LinkDef  file  name  MUST  contain  the string:
80              LinkDef.h or linkdef.h, i.e.  NA49_LinkDef.h is fine just  like,
81              mylinkdef.h.
82

SEE ALSO

84       root(1), cint(1)
85
86       rootcint is  documented fully on ROOT web-site
87

ORIGINAL AUTHORS

89       The ROOT team (see web page above):
90              Rene Brun and Fons Rademakers
91
93       This library is free software; you can redistribute it and/or modify it
94       under the terms of the GNU Lesser General Public License  as  published
95       by  the Free Software Foundation; either version 2.1 of the License, or
96       (at your option) any later version.
97
98       This library is distributed in the hope that it  will  be  useful,  but
99       WITHOUT  ANY  WARRANTY;  without  even  the  implied  warranty  of MER‐
100       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  GNU  Lesser
101       General Public License for more details.
102
103       You  should  have  received  a  copy  of  the GNU Lesser General Public
104       License along with this library; if not, write  to  the  Free  Software
105       Foundation,  Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301
106       USA
107

AUTHOR

109       This  manual  page  was   written   by   Christian   Holm   Christensen
110       <cholm@nbi.dk>,  for  the  Debian  GNU/Linux system (but may be used by
111       others).
112
113
114
115ROOT                               Version 3                       ROOTCINT(1)
Impressum