StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
STARDoc.C
1 {
2  // Macro to create the HTML doc of the STAR classes
3  gSystem->Load("libSTAR");
4 
5  const char *cls[] = {
6  "TCL", "TChair", "TDataSet", "TDataSetIter",
7  "TFileSet","TObjectSet","TPoints3D","TPointsArray3D",
8  "TPolyLineShape", "TTable", "TTable3Points",
9  "TTableDescriptor","TTableIter", "TTablePoints",
10  "TTableSorter", "TVolume", "TVolumePosition",
11  "TVolumeView", "TVolumeViewIter"
12  };
13 
14  const char *former[] = {
15  "StCL","TChair","St_DataSet","St_DataSetIter",
16  "St_FileSet","St_ObjectSet","St_Points3D","St_PointsArray3D",
17  "St_PolyLineShape","St_Table","St_Table3Points",
18  "St_tableDescriptor","St_TableIter","St_TablePoints",
19  "St_TableSorter","St_Node","St_NodePosition",
20  "St_NodeView","St_NodeViewIter"
21  };
22 
23  int lClasses = sizeof(cls)/sizeof(char *);
24  THtml html;
25  TString htmlDir = "$STAR/StRoot/html";
26  html.SetOutputDir(htmlDir.Data());
27  html.SetSourceDir("$ROOTSYS:$ROOTSYS/include:$ROOTSYS/ROOT/root/STAR:");
28  for (int i=0; i < lClasses; i++) {
29  html.MakeClass(cls[i],kTRUE);
30  // Create links for the sake of the backward compatibility
31  if (former[i] && *former[i] && strcmp(cls[i],former[i])) {
32  TString thisName = cls[i]; thisName += ".html";
33  TString formName = htmlDir; formName += '/'; formName += former[i]; formName += ".html";
34  gSystem->ExpandPathName(formName);
35  gSystem->Unlink(formName.Data());
36  gSystem->Symlink(thisName.Data(),formName.Data());
37  }
38  }
39 }
40 //_____________________________________________
41 // $id: $
42 // $Log: STARDoc.C,v $
43 // Revision 1.4 2000/05/20 01:24:52 perev
44 // CleanUp
45 //
46 // Revision 1.3 2000/05/12 23:13:29 fine
47 // Macro to create HTML for ROOT-based STAR classes
48 //
49 // Revision 1.2 2000/04/28 19:47:00 fine
50 // Creates symbolik links for the obsolete names
51 //
52 //_____________________________________________
53