23#include "TSystemFile.h"
24#include "TSystemDirectory.h"
55 auto* proof =
static_cast<TGRSIProof*
>(TProof::Open(worker));
56 if(proof !=
nullptr) { proof->LoadLibsIntoProof(); }
66 const char* pPath = getenv(
"GRSISYS");
69 Exec(Form(R
"(gInterpreter->AddIncludePath("%s/include"))", pPath));
73 std::cout <<
DYELLOW <<
"Not loading any parser library, this might not work!" <<
RESET_COLOR << std::endl;
74 std::cout <<
"Loading library '" << pPath <<
"/lib/libGRSI.so'" << std::endl;
75 Exec(Form(R
"(gSystem->Load("%s/lib/libGRSI.so");)", pPath));
77 std::cout <<
"Loading parser library '" << library <<
"'" << std::endl;
78 Exec(Form(R
"(gSystem->Load("%s");)", library.c_str()));
static TGRSIOptions * Get(int argc=0, char **argv=nullptr)
Do not use!
void ParserLibrary(std::string &library)
TGRSIProof(TGRSIProof &&) noexcept=delete
TGRSIProof(const TGRSIProof &)=delete
static TGRSIProof * Open(const char *worker="")
void Load()
if necessary loads shared object library and sets/initializes all other functions
static TParserLibrary * Get(bool verbose=false)
const char *const nulFileName