13 void MakeTableClasses(){
24 Char_t *libs[] = {
"St_base"};
28 if (strcmp(gSystem.GetName(),
"WinNT") == 0 ) {
37 for(Int_t i=0;i<nlist;i++) {
38 strcpy(buffer,libs[i]);strcat(buffer,suffix);
39 if (gSystem.Load(buffer)) printf(
" Loading DLL \"%s\" failed \n",buffer);
45 sourcedir =
"//sol/afs_rhic/star/packages/dev/.share/tables";
47 sourcedir =
"/afs/rhic.bnl.gov/star/packages/dev/.share/tables";
49 dirhandle = gSystem->OpenDirectory(sourcedir);
54 Char_t *structname = 0;
55 while (na = gSystem->GetDirEntry(dirhandle) && count < 999993) {
58 if (!strstr(name,
"St_") && (dot = strstr(name,
".h")) ){
59 Char_t *filename = gSystem->ConcatFileName(sourcedir,name);
60 printf(
"G__loadfile(\"%s\");\n",filename);
61 G__loadfile(filename);
63 structname = strrchr(name,
'/');
67 else if (structname = strrchr(name,
':'))
72 printf(
"St_Table tabs(\"%s\",1);\n",structname);
73 printf(
"tabs.StafStreamer();\n");
81 printf(
" CINT Error. The \"%s\" was not done!\n",structname);
82 if (filename)
delete [] filename;
85 printf(
" %d files have been converted\n",count);