GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4AnalysisWebStatus Class Reference

Subclass of TGo4AnalysisStatus that has UpdateFromURL method the only reason for this subclass is to keep Qt4 GUI independent of full analysis lib All direct calls to reconfigure TGo4Analysis itself are put here this is not needed by traditional GUI due to text command interface. More...

#include <TGo4AnalysisWebStatus.h>

+ Inheritance diagram for TGo4AnalysisWebStatus:

Public Member Functions

 TGo4AnalysisWebStatus ()
 default ctor for streamer.
 
 TGo4AnalysisWebStatus (const char *name)
 
virtual ~TGo4AnalysisWebStatus ()
 
Bool_t ApplyStatus (TGo4AnalysisStatus *status)
 Method used by Go4GUI via HTTP to set status to analysis.
 
TGo4AnalysisStatusCreateStatus ()
 Methods used by Go4GUI via HTTP to obtain status of analysis.
 
Bool_t ExecuteLine (const char *cmd)
 
Bool_t LoadStatus (const char *fname)
 
Bool_t SaveStatus (const char *fname)
 
Bool_t UpdateFromUrl (const char *rest_url_opt)
 Method used by HTTP server to update some fields, specified in URL syntax.
 
Bool_t WriteAutoSave (const char *fname, Bool_t overwrite, Int_t complevel)
 
- Public Member Functions inherited from TGo4AnalysisStatus
 TGo4AnalysisStatus ()
 default ctor for streamer.
 
 TGo4AnalysisStatus (const char *name)
 
virtual ~TGo4AnalysisStatus ()
 
Bool_t AddStepStatus (TGo4AnalysisStepStatus *next)
 Add new step status object to analysis status.
 
void ClearStepStatus ()
 Clear all existing step status objects.
 
const char * GetAutoFileName () const
 
Int_t GetAutoSaveCompression () const
 
Int_t GetAutoSaveInterval () const
 
const char * GetConfigFileName () const
 
Int_t GetFirstStepIndex () const
 
Int_t GetLastStepIndex () const
 
Int_t GetNumberOfSteps () const
 Gives number of steps.
 
TGo4AnalysisStepStatusGetStepStatus (const char *name)
 Access to certain analysis step status by name.
 
TGo4AnalysisStepStatusGetStepStatus (Int_t indx) const
 Gives analysis step status with provided index.
 
Int_t IsAutoSaveOn () const
 
Int_t IsAutoSaveOverwrite () const
 
Int_t IsStepChecking () const
 
TGo4AnalysisStepStatusNextStepStatus ()
 Gives next analysis step status.
 
void Print (Option_t *opt="") const override
 basic method to printout status information on stdout; to be overridden by specific subclass
 
void ResetStepIterator ()
 
void SetAutoFileName (const char *name)
 
void SetAutoSaveCompression (Int_t i=5)
 
void SetAutoSaveInterval (Int_t i)
 
void SetAutoSaveOn (Bool_t on=kTRUE)
 
void SetAutoSaveOverwrite (Bool_t over=kTRUE)
 
void SetConfigFileName (const char *name)
 
void SetFirstStepIndex (Int_t i)
 
void SetLastStepIndex (Int_t i)
 
void SetStepChecking (Int_t on)
 
- Public Member Functions inherited from TGo4Status
 TGo4Status ()
 
 TGo4Status (const char *name)
 
 TGo4Status (const char *name, const char *title)
 
virtual ~TGo4Status ()
 
void Print (Option_t *opt="") const override
 
virtual Int_t PrintStatus (Text_t *buffer=nullptr, Int_t buflen=0)
 DEPRECATED - please use Print(Option_t *) signature basic method to printout status information on stdout; to be overridden by specific subclass.
 

Static Public Attributes

static TString fgxURL_ASF_COMP = "asfcomp"
 
static TString fgxURL_ASF_ENABLED = "asfenabled"
 
static TString fgxURL_ASF_INTERVAL = "asftime"
 
static TString fgxURL_ASF_NAME = "asfname"
 
static TString fgxURL_ASF_OVERWRITE = "asfoverwrite"
 
static TString fgxURL_ASF_SAVE = "saveasf"
 
static TString fgxURL_CLOSE = "close"
 
static TString fgxURL_ENABLESOURCE = "sourceenabled"
 
static TString fgxURL_ENABLESTEP = "stepenabled"
 
static TString fgxURL_ENABLESTORE = "storeenabled"
 
static TString fgxURL_PREFS_LOAD = "loadprefs"
 
static TString fgxURL_PREFS_NAME = "anaprefsname"
 
static TString fgxURL_PREFS_SAVE = "saveprefs"
 
static TString fgxURL_SOURCE_FIRST = "sourcefirst"
 
static TString fgxURL_SOURCE_LAST = "sourcelast"
 
static TString fgxURL_SOURCE_NAME = "sourcename"
 
static TString fgxURL_SOURCE_PORT = "sourceport"
 
static TString fgxURL_SOURCE_RETRY = "sourceretry"
 
static TString fgxURL_SOURCE_SKIP = "sourceskip"
 
static TString fgxURL_SOURCE_TAG = "sourcetag"
 
static TString fgxURL_SOURCE_TIMEOUT = "sourcetmout"
 
static TString fgxURL_SOURCE_TYPE = "sourcesel"
 
static TString fgxURL_STARTRUN = "start"
 web condition editor keywords used in UpdateFromUrl:
 
static TString fgxURL_STORE_ASF = "storeasf"
 
static TString fgxURL_STORE_BUF = "storebuf"
 
static TString fgxURL_STORE_COMP = "storecomp"
 
static TString fgxURL_STORE_NAME = "storename"
 
static TString fgxURL_STORE_OVERWRITE = "storeover"
 
static TString fgxURL_STORE_SPLIT = "storesplit"
 
static TString fgxURL_STORE_TYPE = "storesel"
 

Friends

class TGo4Analysis
 

Additional Inherited Members

- Public Types inherited from TGo4Status
enum  { kGo4NoReset = BIT(20) , kGo4CanDelete = BIT(21) , kGo4BackStoreReset = BIT(22) }
 Go4 status bits to be used in object manager to suppress resetting or deleting histograms, etc. More...
 
- Static Public Member Functions inherited from TGo4Status
static Text_t * PrintBuffer (char *buffer, Int_t &buflen, const char *text,...)
 Print text with variable expression into buffer.
 
static Text_t * PrintIndent (Text_t *buffer, Int_t &buflen)
 Insert indentation blanks into text buffer.
 
static void PrintLine (const char *text,...)
 Print single line of debug output with appropriate indent.
 
- Protected Attributes inherited from TGo4AnalysisStatus
Int_t fbAutoSaveOn {1}
 True if Autosaving is enabled (default).
 
Int_t fbAutoSaveOverwrite {0}
 overwrite mode for autosave yes or no.
 
Int_t fbStepCheckingMode {1}
 True if chain of steps is checked for consistency of input and output events.
 
Int_t fiAutoSaveCompression {5}
 compression level for autosave file
 
Int_t fiAutoSaveInterval {0}
 Implicit Loop cycles in between two autosave actions.
 
Int_t fiFirstStepIndex {0}
 Index describing the first analysis step from the steplist to be processed.
 
Int_t fiLastStepIndex {0}
 Index describing the last analysis step from the steplist to be processed.
 
TString fxAutoFileName
 Name of the autosave file.
 
TString fxConfigFileName
 Name of the last configuration file.
 
TObjArray * fxStepArray {nullptr}
 Array containing all analysis steps.
 
TIterator * fxStepIterator {nullptr}
 Iterator used for analysis step list.
 
TMutex * fxStepMutex {nullptr}
 Mutex protecting the analysis step list.
 

Detailed Description

Subclass of TGo4AnalysisStatus that has UpdateFromURL method the only reason for this subclass is to keep Qt4 GUI independent of full analysis lib All direct calls to reconfigure TGo4Analysis itself are put here this is not needed by traditional GUI due to text command interface.

Since
3/2015
Authors
JAM

Definition at line 28 of file TGo4AnalysisWebStatus.h.

Constructor & Destructor Documentation

◆ TGo4AnalysisWebStatus() [1/2]

TGo4AnalysisWebStatus::TGo4AnalysisWebStatus ( )
inline

default ctor for streamer.

Definition at line 35 of file TGo4AnalysisWebStatus.h.

References TGo4AnalysisStatus::TGo4AnalysisStatus().

◆ TGo4AnalysisWebStatus() [2/2]

TGo4AnalysisWebStatus::TGo4AnalysisWebStatus ( const char * name)
inline

Definition at line 37 of file TGo4AnalysisWebStatus.h.

References TGo4AnalysisStatus::TGo4AnalysisStatus().

◆ ~TGo4AnalysisWebStatus()

virtual TGo4AnalysisWebStatus::~TGo4AnalysisWebStatus ( )
inlinevirtual

Definition at line 39 of file TGo4AnalysisWebStatus.h.

Member Function Documentation

◆ ApplyStatus()

◆ CreateStatus()

TGo4AnalysisStatus * TGo4AnalysisWebStatus::CreateStatus ( )

Methods used by Go4GUI via HTTP to obtain status of analysis.

Definition at line 555 of file TGo4AnalysisWebStatus.cxx.

References TGo4AnalysisStatus::TGo4AnalysisStatus(), TGo4Analysis::CreateStatus(), TGo4Analysis::Instance(), and TGo4Analysis.

◆ ExecuteLine()

Bool_t TGo4AnalysisWebStatus::ExecuteLine ( const char * cmd)

◆ LoadStatus()

Bool_t TGo4AnalysisWebStatus::LoadStatus ( const char * fname)

◆ SaveStatus()

Bool_t TGo4AnalysisWebStatus::SaveStatus ( const char * fname)

◆ UpdateFromUrl()

Bool_t TGo4AnalysisWebStatus::UpdateFromUrl ( const char * rest_url_opt)

Method used by HTTP server to update some fields, specified in URL syntax.

Definition at line 59 of file TGo4AnalysisWebStatus.cxx.

References TGo4Analysis::CloseAnalysis(), TGo4AnalysisStatus::fbAutoSaveOverwrite, fgxURL_ASF_COMP, fgxURL_ASF_ENABLED, fgxURL_ASF_INTERVAL, fgxURL_ASF_NAME, fgxURL_ASF_OVERWRITE, fgxURL_ASF_SAVE, fgxURL_CLOSE, fgxURL_ENABLESOURCE, fgxURL_ENABLESTEP, fgxURL_ENABLESTORE, fgxURL_PREFS_LOAD, fgxURL_PREFS_NAME, fgxURL_PREFS_SAVE, fgxURL_SOURCE_FIRST, fgxURL_SOURCE_LAST, fgxURL_SOURCE_NAME, fgxURL_SOURCE_PORT, fgxURL_SOURCE_RETRY, fgxURL_SOURCE_SKIP, fgxURL_SOURCE_TAG, fgxURL_SOURCE_TIMEOUT, fgxURL_SOURCE_TYPE, fgxURL_STARTRUN, fgxURL_STORE_ASF, fgxURL_STORE_BUF, fgxURL_STORE_COMP, fgxURL_STORE_NAME, fgxURL_STORE_OVERWRITE, fgxURL_STORE_SPLIT, fgxURL_STORE_TYPE, TGo4AnalysisStatus::fiAutoSaveCompression, TGo4FileStoreParameter::GetAutosaveSize(), TGo4BackStoreParameter::GetBufsize(), TGo4FileStoreParameter::GetBufsize(), TGo4FileStoreParameter::GetCompression(), TGo4MbsSourceParameter::GetEventInterval(), TGo4MbsSourceParameter::GetPort(), TGo4UserSourceParameter::GetPort(), TGo4BackStoreParameter::GetSplitlevel(), TGo4FileStoreParameter::GetSplitlevel(), TGo4MbsSourceParameter::GetStartEvent(), TGo4MbsSourceParameter::GetStopEvent(), TGo4EventSourceParameter::GetTimeout(), GO4EV_BACK, GO4EV_FILE, GO4EV_MBS_EVENTSERVER, GO4EV_MBS_FILE, GO4EV_MBS_RANDOM, GO4EV_MBS_REVSERV, GO4EV_MBS_STREAM, GO4EV_MBS_TRANSPORT, GO4EV_USER, TGo4Analysis::InitEventClasses(), TGo4Analysis::Instance(), TGo4FileStoreParameter::IsOverwriteMode(), LoadStatus(), TGo4Log::Message(), TGo4AnalysisStatus::NextStepStatus(), TGo4AnalysisStatus::ResetStepIterator(), SaveStatus(), TGo4AnalysisStatus::SetAutoFileName(), TGo4AnalysisStatus::SetAutoSaveCompression(), TGo4AnalysisStatus::SetAutoSaveInterval(), TGo4AnalysisStatus::SetAutoSaveOn(), TGo4AnalysisStatus::SetAutoSaveOverwrite(), TGo4FileStoreParameter::SetAutosaveSize(), TGo4BackStoreParameter::SetBufsize(), TGo4FileStoreParameter::SetBufsize(), TGo4AnalysisStatus::SetConfigFileName(), TGo4MbsSourceParameter::SetEventInterval(), TGo4FileStoreParameter::SetOverwriteMode(), TGo4MbsSourceParameter::SetPort(), TGo4UserSourceParameter::SetPort(), TGo4MbsSourceParameter::SetRetryCnt(), TGo4BackStoreParameter::SetSplitlevel(), TGo4FileStoreParameter::SetSplitlevel(), TGo4MbsSourceParameter::SetStartEvent(), TGo4Analysis::SetStatus(), TGo4MbsSourceParameter::SetStopEvent(), TGo4MbsFileParameter::SetTagName(), TGo4EventSourceParameter::SetTimeout(), TGo4Analysis::StartAnalysis(), TGo4Analysis::StopAnalysis(), TGo4Analysis, TGo4Analysis::UpdateStatus(), and WriteAutoSave().

◆ WriteAutoSave()

Bool_t TGo4AnalysisWebStatus::WriteAutoSave ( const char * fname,
Bool_t overwrite,
Int_t complevel )

Friends And Related Symbol Documentation

◆ TGo4Analysis

Field Documentation

◆ fgxURL_ASF_COMP

TString TGo4AnalysisWebStatus::fgxURL_ASF_COMP = "asfcomp"
static

Definition at line 87 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_ASF_ENABLED

TString TGo4AnalysisWebStatus::fgxURL_ASF_ENABLED = "asfenabled"
static

Definition at line 84 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_ASF_INTERVAL

TString TGo4AnalysisWebStatus::fgxURL_ASF_INTERVAL = "asftime"
static

Definition at line 86 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_ASF_NAME

TString TGo4AnalysisWebStatus::fgxURL_ASF_NAME = "asfname"
static

Definition at line 85 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_ASF_OVERWRITE

TString TGo4AnalysisWebStatus::fgxURL_ASF_OVERWRITE = "asfoverwrite"
static

Definition at line 88 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_ASF_SAVE

TString TGo4AnalysisWebStatus::fgxURL_ASF_SAVE = "saveasf"
static

Definition at line 83 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_CLOSE

TString TGo4AnalysisWebStatus::fgxURL_CLOSE = "close"
static

Definition at line 93 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_ENABLESOURCE

TString TGo4AnalysisWebStatus::fgxURL_ENABLESOURCE = "sourceenabled"
static

Definition at line 63 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_ENABLESTEP

TString TGo4AnalysisWebStatus::fgxURL_ENABLESTEP = "stepenabled"
static

Definition at line 62 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_ENABLESTORE

TString TGo4AnalysisWebStatus::fgxURL_ENABLESTORE = "storeenabled"
static

Definition at line 64 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_PREFS_LOAD

TString TGo4AnalysisWebStatus::fgxURL_PREFS_LOAD = "loadprefs"
static

Definition at line 91 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_PREFS_NAME

TString TGo4AnalysisWebStatus::fgxURL_PREFS_NAME = "anaprefsname"
static

Definition at line 90 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_PREFS_SAVE

TString TGo4AnalysisWebStatus::fgxURL_PREFS_SAVE = "saveprefs"
static

Definition at line 92 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_SOURCE_FIRST

TString TGo4AnalysisWebStatus::fgxURL_SOURCE_FIRST = "sourcefirst"
static

Definition at line 72 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_SOURCE_LAST

TString TGo4AnalysisWebStatus::fgxURL_SOURCE_LAST = "sourcelast"
static

Definition at line 73 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_SOURCE_NAME

TString TGo4AnalysisWebStatus::fgxURL_SOURCE_NAME = "sourcename"
static

Definition at line 67 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_SOURCE_PORT

TString TGo4AnalysisWebStatus::fgxURL_SOURCE_PORT = "sourceport"
static

Definition at line 69 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_SOURCE_RETRY

TString TGo4AnalysisWebStatus::fgxURL_SOURCE_RETRY = "sourceretry"
static

Definition at line 71 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_SOURCE_SKIP

TString TGo4AnalysisWebStatus::fgxURL_SOURCE_SKIP = "sourceskip"
static

Definition at line 74 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_SOURCE_TAG

TString TGo4AnalysisWebStatus::fgxURL_SOURCE_TAG = "sourcetag"
static

Definition at line 68 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_SOURCE_TIMEOUT

TString TGo4AnalysisWebStatus::fgxURL_SOURCE_TIMEOUT = "sourcetmout"
static

Definition at line 70 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_SOURCE_TYPE

TString TGo4AnalysisWebStatus::fgxURL_SOURCE_TYPE = "sourcesel"
static

Definition at line 66 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_STARTRUN

TString TGo4AnalysisWebStatus::fgxURL_STARTRUN = "start"
static

web condition editor keywords used in UpdateFromUrl:

Definition at line 61 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_STORE_ASF

TString TGo4AnalysisWebStatus::fgxURL_STORE_ASF = "storeasf"
static

Definition at line 80 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_STORE_BUF

TString TGo4AnalysisWebStatus::fgxURL_STORE_BUF = "storebuf"
static

Definition at line 78 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_STORE_COMP

TString TGo4AnalysisWebStatus::fgxURL_STORE_COMP = "storecomp"
static

Definition at line 79 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_STORE_NAME

TString TGo4AnalysisWebStatus::fgxURL_STORE_NAME = "storename"
static

Definition at line 76 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_STORE_OVERWRITE

TString TGo4AnalysisWebStatus::fgxURL_STORE_OVERWRITE = "storeover"
static

Definition at line 81 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_STORE_SPLIT

TString TGo4AnalysisWebStatus::fgxURL_STORE_SPLIT = "storesplit"
static

Definition at line 77 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().

◆ fgxURL_STORE_TYPE

TString TGo4AnalysisWebStatus::fgxURL_STORE_TYPE = "storesel"
static

Definition at line 75 of file TGo4AnalysisWebStatus.h.

Referenced by UpdateFromUrl().


The documentation for this class was generated from the following files: