29#include "TSysEvtHandler.h"
35#include "TStopwatch.h"
45 TGRSIint(
int argc,
char** argv,
void* options =
nullptr,
int numOptions = 0,
bool noLogo =
false,
46 const char* appClassName =
"grsisort");
52 static TGRSIint*
instance(
int argc = 0,
char** argv =
nullptr,
void* options =
nullptr,
int numOptions = -1,
53 bool noLogo =
false,
const char* appClassName =
"grsisort");
66 TFile*
OpenRootFile(const std::
string& filename, Option_t* opt = "read");
70 void Terminate(Int_t status = 0) override;
74 Long_t
ProcessLine(
const char* line, Bool_t sync = kFALSE, Int_t* error =
nullptr)
override;
TRawFile * OpenRawFile(const std::string &filename)
int TabCompletionHook(char *, int *, std::ostream &) override
static void PrintHelp(bool)
int fRawFilesOpened
Number of Raw Files opened.
Long_t DelayedProcessLine(std::string command)
std::thread::id main_thread_id
Main sorting thread id.
TGRSIint(int argc, char **argv, void *options=nullptr, int numOptions=0, bool noLogo=false, const char *appClassName="grsisort")
static TGRSIint * fTGRSIint
Static pointer (singleton)
TFile * OpenRootFile(const std::string &filename, Option_t *opt="read")
TTimer * fKeepAliveTimer
Time of process.
TGRSIint(const TGRSIint &)=delete
std::vector< TRawFile * > fRawFiles
List of Raw files opened.
static void LoadGROOTGraphics()
void DelayedProcessLine_Action()
std::string fNewFragmentFile
New fragment file name.
void RunMacroFile(const std::string &filename)
bool fAllowedToTerminate
Flag for shutting down GRSISort.
static TGRSIint * instance(int argc=0, char **argv=nullptr, void *options=nullptr, int numOptions=-1, bool noLogo=false, const char *appClassName="grsisort")
TGRSIint(TGRSIint &&) noexcept=delete
bool fIsTabComplete
Flag for tab completion hook.
int fRootFilesOpened
Number of ROOT files opened.
static TEnv * fGRSIEnv
GRSI environment.
void PrintLogo(bool) override
Long_t ProcessLine(const char *line, Bool_t sync=kFALSE, Int_t *error=nullptr) override
void Terminate(Int_t status=0) override
bool HandleTermInput() override