GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
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
19class 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(__CLING__)
52 __attribute__((format(printf, 3, 4)))
53 #endif
54 ;
55
58 static void PrintLine(const char *text, ...)
59 #if defined(__GNUC__) && !defined(__CLING__)
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
static Text_t * PrintIndent(Text_t *buffer, Int_t &buflen)
Insert indentation blanks into text buffer.
@ kGo4BackStoreReset
Definition TGo4Status.h:69
static Text_t * PrintBuffer(char *buffer, Int_t &buflen, const char *text,...)
Print text with variable expression into buffer.
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 st...
void Print(Option_t *opt="") const override
virtual ~TGo4Status()
static void PrintLine(const char *text,...)
Print single line of debug output with appropriate indent.