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

#include <TGo4Status.h>

+ Inheritance diagram for TGo4Status:

Public Types

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...
 

Public Member Functions

 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 Member Functions

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.
 

Detailed Description

Definition at line 19 of file TGo4Status.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Go4 status bits to be used in object manager to suppress resetting or deleting histograms, etc.

Enumerator
kGo4NoReset 
kGo4CanDelete 
kGo4BackStoreReset 

Definition at line 66 of file TGo4Status.h.

Constructor & Destructor Documentation

◆ TGo4Status() [1/3]

◆ TGo4Status() [2/3]

TGo4Status::TGo4Status ( const char * name)

Definition at line 29 of file TGo4Status.cxx.

References GO4TRACE.

◆ TGo4Status() [3/3]

TGo4Status::TGo4Status ( const char * name,
const char * title )

Definition at line 35 of file TGo4Status.cxx.

References GO4TRACE.

◆ ~TGo4Status()

TGo4Status::~TGo4Status ( )
virtual

Definition at line 41 of file TGo4Status.cxx.

References GO4TRACE.

Member Function Documentation

◆ Print()

void TGo4Status::Print ( Option_t * opt = "") const
override

Definition at line 46 of file TGo4Status.cxx.

References TGo4Status(), and PrintStatus().

Referenced by TGo4ExampleController::DisplayLog().

◆ PrintBuffer()

Text_t * TGo4Status::PrintBuffer ( char * buffer,
Int_t & buflen,
const char * text,
... )
static

Print text with variable expression into buffer.

Returns cursor pointer in buffer, i.e. the next character after the printed text. If cursor would exceed buflen, 0 is returned. Bufferlength buflen shall contain buffer size, it will be decremented by the size of printed text.

Definition at line 86 of file TGo4Status.cxx.

Referenced by PrintIndent().

◆ PrintIndent()

Text_t * TGo4Status::PrintIndent ( Text_t * buffer,
Int_t & buflen )
static

Insert indentation blanks into text buffer.

Uses TROOT::DirLevel, but extends IndentLevel to any text buffer. Return value is buffer cursor pointer after insertion. Returns 0 if cursor exceeds buffer length.

Definition at line 73 of file TGo4Status.cxx.

References PrintBuffer().

◆ PrintLine()

◆ PrintStatus()

Int_t TGo4Status::PrintStatus ( Text_t * buffer = nullptr,
Int_t buflen = 0 )
virtual

DEPRECATED - please use Print(Option_t *) signature basic method to printout status information on stdout; to be overridden by specific subclass.

Definition at line 54 of file TGo4Status.cxx.

References GO4TRACE.

Referenced by Print().


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