GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4Status.h
Go to the documentation of this file.
1 // $Id$
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 fuer 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 TGO4STATUS_H
15 #define TGO4STATUS_H
16 
17 #include "TNamed.h"
18 
19 class TGo4Status : public TNamed {
20  public:
21 
22  TGo4Status();
23 
24  TGo4Status(const char *name);
25 
26  TGo4Status(const char *name, const char *title);
27 
28  virtual ~TGo4Status();
29 
33  virtual Int_t PrintStatus(Text_t *buffer = nullptr, Int_t buflen = 0);
34 
35  void Print(Option_t *opt = "") const override;
36 
42  static Text_t* PrintIndent(Text_t *buffer, Int_t &buflen);
43 
50  static Text_t *PrintBuffer(char *buffer, Int_t &buflen, const char *text, ...)
51  #if defined(__GNUC__) && !defined(__CINT__)
52  __attribute__((format(printf, 3, 4)))
53  #endif
54  ;
55 
58  static void PrintLine(const char *text, ...)
59  #if defined(__GNUC__) && !defined(__CINT__)
60  __attribute__((format(printf, 1, 2)))
61  #endif
62  ;
63 
66  enum {
67  kGo4NoReset = BIT(20), // don't reset this object
68  kGo4CanDelete = BIT(21), // may delete this object
69  kGo4BackStoreReset = BIT(22) // set for tree that belongs to backstore
70  };
71 
72  ClassDefOverride(TGo4Status,2)
73 };
74 
75 #endif //TGO4STATUS_H
void Print(Option_t *opt="") const override
Definition: TGo4Status.cxx:46
static Text_t * PrintIndent(Text_t *buffer, Int_t &buflen)
Definition: TGo4Status.cxx:73
static void PrintLine(const char *text,...)
Definition: TGo4Status.cxx:101
static Text_t * PrintBuffer(char *buffer, Int_t &buflen, const char *text,...)
Definition: TGo4Status.cxx:86
virtual Int_t PrintStatus(Text_t *buffer=nullptr, Int_t buflen=0)
Definition: TGo4Status.cxx:54
virtual ~TGo4Status()
Definition: TGo4Status.cxx:41