
_HADES_CLASS_DESCRIPTION HOnlineMonClientMain Main class of the HADES Online Monitoring Client. It contains a separat Thread in which the histograms are updated. The canvases are updated in the main thread, because the canvas-update is not threadsafe.
| Bool_t | Connect(TString host, Int_t port) | 
| void | CreateClientConfig(TString xmlfile) | 
| void | CreateDetGui(HOnlineMonClientDet* detector) | 
| void | DestroyDetGui(HOnlineMonClientDet* detector) | 
| void | DestroySingleWindow(HOnlineMonClientSimpleWin* window) | 
| void | DestroySingleWindow(HOnlineMonClientTabWin* window) | 
| HOnlineMonHistAddon* | GetHist(TString histoname) | 
| TList* | GetListOfHistograms() | 
| Bool_t | ReConnect(TString host, Int_t port) | 
| TString | SendCmdToServer(TString cmd) | 
| void | SetUpdateInterval(Int_t msec) | 
| static void* | ThreadUpdateHists(void* arg) | 
| Bool_t | UpdateHist(HOnlineMonClientHist* hist) | 
| void | UpdateHists() | 
| HOnlineMonClientMainWin* | clientmainwin | pointer to mainwindow class | 
| TList | listDetectors | list of all detectors | 
| static Int_t | AutoSaveInterval | auto save interval in minutes. | 
| static Int_t | AutoSaveIntervalOnline | auto save interval in minutes. | 
| Int_t | UpdateInterval | update interval in secs. | 
| TString | configfile | name of the xml config file | 
| Int_t | doReconnect | 0 = stop at crash, 1 = ask for reconnect (default), 2 = auto reconnect | 
| static Int_t | isMasterClient | remember if it was a master client | 
| static time_t | lastSaved | remember the time when last saved (in seconds since 1970) | 
| static time_t | lastSavedOnline | remember the time when last saved (in seconds since 1970) | 
| static ULong64_t | lastSumBytes | remember last number of bytes recieved | 
| TList | listHists | global list to store the opened histograms. | 
| TList | listPads | global list to store the canvas subpads | 
| static TThread* | mainThread | thread for the client program | 
| map<TString,TString> | pad2hist | provide mapping between subpadname and histogram name | 
| TString | serverhost | |
| Int_t | serverport | |
| TSocket* | socket | socket for network communication | 
| Bool_t | updateComplete | after complete update of histograms, thread sets this to true | 
| TThread* | updateThread | thread to update histograms | 

Initialize program. If there is a command, execute it and exit. Else start client program with graphical user interface
GUI Event Handler to handle snapshot button click Save all active canvases in a ps file in the same folder as the program. The filename contains a timestamp
GUI Event Handler to handle snapshot button click Save all active canvases in png file in the online snapshot path.
update a single histogram and draw it on the current canvas. A timestamp is added to the histogram title
Remove canvas and hist from the global list. Then, the hist and the canvas are no longer updated