12extern "C" void* (*
dlsym(
void* handle,
const char* symbol))();
25 std::cout <<
"Already loaded handle " <<
fHandle << std::endl;
31 std::ostringstream str;
32 str <<
DRED <<
"No data parser library provided! Please provided the location of the parser library via .grsirc file or on the command line." <<
RESET_COLOR;
33 throw std::runtime_error(str.str());
37 std::ostringstream str;
39 throw std::runtime_error(str.str());
44 std::ostringstream str;
46 std::cout <<
"dlerror: '" << dlerror() <<
"'" << std::endl;
47 throw std::runtime_error(str.str());
50#pragma GCC diagnostic push
51#pragma GCC diagnostic ignored "-Wcast-function-type"
60#pragma GCC diagnostic pop
63 std::ostringstream str;
65 throw std::runtime_error(str.str());
bool FileExists(const char *filename)
static TGRSIOptions * Get(int argc=0, char **argv=nullptr)
Do not use!
void ParserLibrary(std::string &library)
TDataParser *(* fCreateDataParser)()
void Load(bool quiet=false)
if necessary loads shared object library and sets/initializes all other functions
std::string(* fLibraryVersion)()
void(* fDestroyRawFile)(TRawFile *)
void(* fDestroyDataParser)(TDataParser *)
TRawFile *(* fCreateRawFile)(const std::string &)
void * fHandle
handle for shared object library
static void SetLibraryVersion(const char *ver)
static void SetLibraryPath(const char *ver)