Go to the source code of this file.
|
TString | libs = libs0 + ":/usr/lib:/usr/local/lib:/opt/lib:/opt/local/lib" |
|
TString | command = TString::Format("genie-config --libs") |
|
FILE * | f = gSystem->OpenPipe(command.Data(),"r") |
|
gSystem Load |
( |
"libPythia6" |
| ) |
|
gSystem Load |
( |
"libPhysics" |
| ) |
|
gSystem Load |
( |
"libEGPythia6" |
| ) |
|
gSystem Load |
( |
"libGeom" |
| ) |
|
gSystem Load |
( |
"libTree" |
| ) |
|
gSystem Load |
( |
"libxml2" |
| ) |
|
gSystem Load |
( |
"liblog4cpp" |
| ) |
|
TPRegexp re |
( |
"-l([\\d\\w]*)" |
| ) |
|
gSystem SetDynamicPath |
( |
libs. |
Data() | ) |
|
Definition at line 29 of file loadlibs.C.
31 if (!line.Gets(
f)) {
break;}
32 TObjArray * tokens = line.Tokenize(
" ");
33 for (
int i = 0 ;
i < tokens->GetEntries() ;
i++) {
34 TObjString * token_os =
static_cast<TObjString*
>(tokens->At(
i));
35 if (!token_os) {
continue;}
36 TObjArray *
matches =
re.MatchS(token_os->GetString());
37 if (matches->GetEntries()!=2) {
continue; }
38 TObjString * libname_os =
static_cast<TObjString*
>(matches->At(1));
39 if (!libname_os) {
continue;}
40 TString full_libname =
"lib"+libname_os->GetString();
42 gSystem->Load(full_libname.Data());
TPRegexp re("-l([\\d\\w]*)")
TString command = TString::Format("genie-config --libs") |
FILE* f = gSystem->OpenPipe(command.Data(),"r") |
TString libs = libs0 + ":/usr/lib:/usr/local/lib:/opt/lib:/opt/local/lib" |