GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4MsgList.h
Go to the documentation of this file.
1 // $Id: TGo4MsgList.h 1542 2015-06-12 14:59:12Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4MSGLIST_H
15 #define TGO4MSGLIST_H
16 
17 #include "TNamed.h"
18 #include "TList.h"
19 #include "TObjString.h"
20 
21 class TGo4MsgList : public TNamed {
22 
23  protected:
24 
25  TList fMsgs; // list of remained messages, stored as TObjString
26  Int_t fLimit; // max number of stored messages
27  Long64_t fCounter; // current message id
28  TList fSelect;
29  TObjString fStrCounter;
30 
31  public:
32 
33  TGo4MsgList();
34  TGo4MsgList(const char* name, const char* title, Int_t limit = 1000);
35  virtual ~TGo4MsgList();
36 
37  void SetLimit(Int_t limit) { fLimit = limit>0 ? limit : 1; AddMsg(0); }
38  Int_t GetLimit() const { return fLimit; }
39 
40  Int_t GetCounter() const { return fCounter; }
41 
42  void AddMsg(const char* msg);
43 
44  TList* Select(Int_t max = 0, Long64_t id = 0);
45 
46  ClassDef(TGo4MsgList, 1); // Custom message list for web server *SNIFF* _autoload="go4sys/html/go4.js" _make_request="GO4.MakeMsgListRequest" _after_request=GO4.AfterMsgListRequest _icon=img_text
47 
48 };
49 
50 
51 #endif
ClassDef(TGo4MsgList, 1)
TList fSelect
Definition: TGo4MsgList.h:28
void SetLimit(Int_t limit)
Definition: TGo4MsgList.h:37
Int_t fLimit
Definition: TGo4MsgList.h:26
TList fMsgs
Definition: TGo4MsgList.h:25
TObjString fStrCounter
temporary list used for selection
Definition: TGo4MsgList.h:29
Int_t GetCounter() const
Definition: TGo4MsgList.h:40
TList * Select(Int_t max=0, Long64_t id=0)
Definition: TGo4MsgList.cxx:67
TGo4MsgList()
current id stored in the string
Definition: TGo4MsgList.cxx:18
Int_t GetLimit() const
Definition: TGo4MsgList.h:38
void AddMsg(const char *msg)
Definition: TGo4MsgList.cxx:50
virtual ~TGo4MsgList()
Definition: TGo4MsgList.cxx:45
string msg
Definition: go4init.py:11
Long64_t fCounter
Definition: TGo4MsgList.h:27