StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
make1doc.C
1 // $Id: make1doc.C,v 1.4 2006/08/15 21:43:18 jeromel Exp $
2 // $Log: make1doc.C,v $
3 // Revision 1.4 2006/08/15 21:43:18 jeromel
4 // Fix rhic -> rhic.bnl.gov
5 //
6 // Revision 1.3 1999/05/21 15:33:59 kathy
7 // made sure Log & Id are in each file and also put in standard comment line with name of owner
8 //
9 //=======================================================================
10 // owner: Valery Fine
11 // what it does:
12 //=======================================================================
13 void make1doc(const Char_t *docname,const Char_t *doctitle)
14 {
15  gROOT.Reset();
16  Char_t *libs[] = {"St_base","xdf2root","St_Tables",
17  "libmsg","libtls","tpc.sl","St_tpc","svt.sl","St_svt","StChain"};
18 
19  Char_t *suffix=0;
20  Int_t nlist = 10;
21  Bool_t NT=kFALSE;
22  if (strcmp(gSystem.GetName(),"WinNT") == 0 ) {
23  NT=kTRUE;
24  gSystem.Load("Root_html.dll");
25  suffix = ".dll";
26  }
27  else
28  suffix =".so";
29 
30  Char_t buffer[256];
31  if (NT) {
32  for(Int_t i=0;i<nlist;i++) {
33  strcpy(buffer,libs[i]);
34  if (!strchr(libs[i],'.')) strcat(buffer,suffix);
35  if (gSystem.Load(buffer)) printf(" Loading DLL \"%s\" failed \n",buffer);
36  }
37 
38  }
39  else {
40  gSystem->Load("St_base.so");
41  gSystem->Load("xdf2root.so");
42  gSystem->Load("St_Tables.so");
43 
44  gSystem->Load("libmsg.so");
45  gSystem->Load("libtls.so");
46  gSystem->Load("tpc.sl");
47  gSystem->Load("St_tpc.so");
48  gSystem->Load("svt.sl");
49  gSystem->Load("St_svt.so");
50  gSystem->Load("global.sl");
51  gSystem->Load("St_global.so");
52  gSystem->Load("ftpc.sl");
53  gSystem->Load("St_ftpc.so");
54  gSystem->Load("StChain.so");
55  }
56 
57 
58  //Create the object of the THtml class
59  THtml *html = new THtml();
60 
61  char *sourcedir = 0;
62  if (NT)
63  sourcedir = "//sol/afs_rhic/star/packages/dev/StRoot/base";
64  else
65  sourcedir = "/afs/rhic.bnl.gov/star/packages/dev/StRoot/base:/afs/rhic.bnl.gov/star/packages/dev/StRoot/xdf2root:/afs/rhic.bnl.gov/star/packages/dev/.share/tables:/afs/rhic.bnl.gov/star/packages/dev/inc";
66 
67  char *lookup = 0;
68  if (NT)
69  lookup = "//sol/afs_rhic/star/packages/dev/.share/tables;../base;//sol/afs_rhic/star/packages/dev/.share/base";
70  else
71  lookup = "/afs/rhic.bnl.gov/star/packages/dev/StRoot/StChain:/afs/rhic.bnl.gov/star/packages/dev/StRoot/xdf2root:/afs/rhic.bnl.gov/star/packages/dev/.share/tables:/afs/rhic.bnl.gov/star/packages/dev/StRoot/base";
72 
73  html->SetSourceDir(lookup);
74 
75  if (NT)
76  html->SetOutputDir("J:/Public/STAF/draft/base/html");
77  else
78  html->SetOutputDir("/afs/rhic.bnl.gov/star/packages/dev/StRoot/html");
79 
80  // Create the list of the classes defined with the loaded DLL's to be documented
81 
82  Char_t *classes[] = {"St_XDFFile", "St_Module", "St_Table"
83  ,"St_DataSet", "St_DataSetIter","St_FileSet"
84  ,"StParticleView",
85  ,"StMaker", "StChain"
86  ,"table_head_st", "St_TableSorter"
87  };
88  Int_t nclass = 11;
89  // Creat the definitions of the classes not derived from TObjects
90  if (NT) {
91  gROOT->LoadMacro("//sol/afs_rhic/star/packages/dev/inc/table_header.h");
92  }
93  else
94  gROOT->LoadMacro("/afs/rhic.bnl.gov/star/packages/dev/inc/table_header.h");
95 
96  TClass header1("table_head_st",1,"table_header.h","table_header.h");
97  // Make class descriptions
98  Int_t i=0;
99 
100 // for (i=0;i<nclass;i++)
101 // html.MakeClass(classes[i]);
102 
103  // Make HTML docs for the "plain" text files those are not in the dictionaries
104 
105  html.Convert(docname,doctitle);
106 
107 // html.MakeClass("EModuleTypes");
108 // html.MakeIndex();
109 }