30 Char_t *libs[] = {
"St_base",
"St_Tables"};
35 if (strcmp(gSystem->GetName(),
"WinNT") == 0 ) {
37 gSystem.Load(
"Root_html.dll");
40 gSystem->Load(
"St_base");
41 gSystem->Load(
"St_Tables");
43 cout <<
"Dynamic libraries have been loaded" << endl;
46 const Char_t *affix=
"_st";
49 sourcedir =
"//sol/afs_rhic/star/packages/dev/.share/tables";
51 sourcedir =
"$STAR/include/tables";
53 gSystem->ExpandPathName(sourcedir);
54 if (!(dirhandle = gSystem->OpenDirectory(sourcedir.Data())))
return;
57 THtml *html =
new THtml;
61 lookup =
"//sol/afs_rhic/star/packages/dev/.share/tables;../base;//sol/afs_rhic/star/packages/dev/.share/base";
63 lookup =
"$STAF/inc:";
67 lookup +=
"$STAR/include:";
68 lookup +=
"$STAR/include/tables:";
69 lookup +=
"$STAR/StRoot/St_base";
70 lookup +=
"$STAR/.share/tables:";
73 html->SetSourceDir(lookup.Data());
75 html->SetOutputDir(
"J:/Public/STAF/draft/base/html");
77 html->SetOutputDir(
"$STAR/StRoot/html");
79 html.MakeClass(
"St_Table",kTRUE);
83 while (n = gSystem->GetDirEntry(dirhandle)) {
84 Char_t *name = StrDup(n);
86 if (strstr(name,
"St_") == name) {
89 if (tail = strstr(name,
"_Table.h")) {
93 html.MakeClass(name,kTRUE);
97 for (i=0; i < strlen(name)-3; i++) name[i] = name[i+3];
100 html.MakeClass(name,kTRUE);
105 gSystem->FreeDirectory(dirhandle);
107 html->Convert(
"$STAR/StRoot/html/MakeHtmlTables.cxx",
"How to create the HTML doc for the STAF table wrappers");