2 gSystem->Load(
"libRootKernel");
4 TString src = gHtml->GetSourceDir();
5 src +=
":../:$ROOTSYS/include";
6 gHtml->SetSourceDir(src.Data());
7 const char *clNames[] =
38 int nClasses =
sizeof(clNames)/
sizeof(
char *);
40 for (i=0;i<nClasses;i++) {
41 gHtml->MakeClass(clNames[i]);
43 printf(
"\n Generate an example Web pages\n");
44 const char *testSubdirectory =
"test/";
46 const char *macroNames[] = {
47 "MapTableTest.C",
"Complex example of generating \"Event-like\" structure"
48 ,
"SmallMapTest.C",
"Reference from of table to another table"
49 ,
"TestFileIter.C",
"How to loop over ROOT file event by event"
50 ,
"staffEx17.C",
"example of the table analysis a'la PAW example #17"
51 ,
"GenericTable.C",
"Generic table demo / test"
52 ,
"TestDataSet.C",
"TDataSet methods demo/test"
53 ,
"staff.C",
"ASCII file reading and analyzing"
54 ,
"staffEx18.C",
"Example of the table analysis a'la PAW example #18"
55 ,
"P2ATest.C",
"Example how to create a ROOT file for Pythia event generator"
56 ,
"LoadPythia.C",
"Example how to load the share libraries one needs to read Pythia ROOT files"
57 ,
"ReadPythia.C",
"Example how to read and loop over the events created by Pythia"
58 ,
"MakeDoc.C",
"How to create HTML documentation"
60 int nMacros =
sizeof(macroNames)/
sizeof(
char *);
61 const char *htmlHead[] = {
62 "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\">"
65 ,
" <TITLE>RootKernel Tutorials</TITLE>"
66 ,
" <META NAME=\"rating\" CONTENT=\"General\">"
67 ,
" <META NAME=\"objecttype\" CONTENT=\"Manual\">"
68 ,
" <META NAME=\"keywords\" CONTENT=\"RootKernel software development, oo, object oriented, unix, x11, motif, windows nt, c++, html, valeri fine\">"
69 ,
" <META NAME=\"description\" CONTENT=\"ROOT Kernel - C++ class library for an Object Oriented Framework For Large Scale Data Analysis ROOT\">"
71 ,
"<CENTER><P><LINK rev=made href=\"mailto:fine@bnl.gov\"></P></CENTER>"
72 ,
"<H1 ALIGN=CENTER><FONT SIZE=+4>RootKernel Tutorials</FONT></H1>"
76 TString flName = gHtml->GetOutputDir();
78 flName +=
"/examples/index.html";
79 FILE *htmlTestIndex = fopen(flName.Data(),
"w");
81 int lHead =
sizeof(htmlHead)/
sizeof(
char *);
83 for (i=0;i<lHead;i++) fprintf(htmlTestIndex,
"%s\n",htmlHead[i]);
85 for (i=0;i<nMacros;i++) {
86 TString s = testSubdirectory;
88 gHtml->Convert(s.Data(),macroNames[i]);
89 fprintf(htmlTestIndex,
"<LI><A HREF=\"%s.html\">%s</A></LI>\n",macroNames[i-1],macroNames[i]);
92 fprintf(htmlTestIndex,
"<P>\n<HR></P>\n<ADDRESS><A HREF=\"mailto:fine@bnl.gov\">Valeri Fine</A>\n</A>Last update");
93 fprintf(htmlTestIndex,
"%s",today.AsString());
94 fprintf(htmlTestIndex,
" by VF</ADDRESS>\n</BODY>\n</HTML>\n");
95 fclose(htmlTestIndex);
96 printf(
" File \"%s\" has been created\n",flName.Data());
98 gHtml->MakeIndex(
"T*");
99 const char *classIndexFile =
".._Index.html");
100 printf(
" Class Index has been created with \"%s\" \n",classIndexFile);