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

One entry of the object names folder. More...

#include <TGo4ObjectStatus.h>

Inheritance diagram for TGo4ObjectStatus:

Public Member Functions

 TGo4ObjectStatus ()
 default ctor for streamer.
 TGo4ObjectStatus ()
 default ctor for streamer.
 TGo4ObjectStatus (TObject *object, Bool_t withtime=kTRUE)
 Create status information from given TObject.
 TGo4ObjectStatus (TObject *object, Bool_t withtime=kTRUE)
 Create status information from given TObject.
virtual ~TGo4ObjectStatus ()
virtual ~TGo4ObjectStatus ()
const char * GetObjectClass () const
 ClassName of the described object.
const char * GetObjectClass () const
 ClassName of the described object.
Int_t GetObjectSize () const
 Size of described object in byte.
Int_t GetObjectSize () const
 Size of described object in byte.
const char * GetTimeString () const
 Creation time string; sql format.
const char * GetTimeString () const
 Creation time string; sql format.
Bool_t IsDeleteProtect () const
 Object's delete protection state.
Bool_t IsDeleteProtect () const
 Object's delete protection state.
Bool_t IsResetProtect () const
 Object's reset protection state.
Bool_t IsResetProtect () const
 Object's reset protection state.
void Print (Option_t *opt="") const override
void Print (Option_t *opt="") const override
Public Member Functions inherited from TGo4Status
 TGo4Status ()
 TGo4Status ()
 TGo4Status (const char *name)
 TGo4Status (const char *name)
 TGo4Status (const char *name, const char *title)
 TGo4Status (const char *name, const char *title)
virtual ~TGo4Status ()
virtual ~TGo4Status ()
void Print (Option_t *opt="") const override
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.
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.

Protected Attributes

Bool_t fbDeleteProtect {kTRUE}
 If true, described object is protected against deletion from gui.
Bool_t fbResetProtect {kFALSE}
 If true, described object is protected against reset (Clear()) from gui.
UInt_t fiObjectSize {0}
 Size of the described object in byte.
TString fxObjectClass
 Classname of the described object.
TString fxStatusTime
 creation time of status object

Additional Inherited Members

Public Types inherited from TGo4Status
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...
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...
Static Public Member Functions inherited from TGo4Status
static Text_t * PrintBuffer (char *buffer, Int_t &buflen, const char *text,...)
 Print text with variable expression into buffer.
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 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.
static void PrintLine (const char *text,...)
 Print single line of debug output with appropriate indent.

Detailed Description

One entry of the object names folder.

Contains the go4 object structural information, such as name, title, classname, date, size. May be subclassed later to include further information on special objects, e.g. histogram dimensions and contents.

Since
7/2001
Author
J. Adamczewski

Definition at line 27 of file TGo4ObjectStatus.h.

Constructor & Destructor Documentation

◆ TGo4ObjectStatus() [1/4]

◆ TGo4ObjectStatus() [2/4]

TGo4ObjectStatus::TGo4ObjectStatus ( TObject * object,
Bool_t withtime = kTRUE )

Create status information from given TObject.

Flag withtime indicates if the status creation time shall be noted inside the status object.

Definition at line 27 of file TGo4ObjectStatus.cxx.

References TGo4Status::TGo4Status(), fbDeleteProtect, fbResetProtect, fiObjectSize, fxObjectClass, fxStatusTime, GO4TRACE, TGo4Status::kGo4CanDelete, and TGo4Status::kGo4NoReset.

◆ ~TGo4ObjectStatus() [1/2]

TGo4ObjectStatus::~TGo4ObjectStatus ( )
virtual

Definition at line 54 of file TGo4ObjectStatus.cxx.

References GO4TRACE.

◆ TGo4ObjectStatus() [3/4]

TGo4ObjectStatus::TGo4ObjectStatus ( )

default ctor for streamer.

◆ TGo4ObjectStatus() [4/4]

TGo4ObjectStatus::TGo4ObjectStatus ( TObject * object,
Bool_t withtime = kTRUE )

Create status information from given TObject.

Flag withtime indicates if the status creation time shall be noted inside the status object.

◆ ~TGo4ObjectStatus() [2/2]

virtual TGo4ObjectStatus::~TGo4ObjectStatus ( )
virtual

Member Function Documentation

◆ GetObjectClass() [1/2]

const char * TGo4ObjectStatus::GetObjectClass ( ) const
inline

◆ GetObjectClass() [2/2]

const char * TGo4ObjectStatus::GetObjectClass ( ) const
inline

ClassName of the described object.

Definition at line 41 of file TGo4ObjectStatus.h.

References fxObjectClass.

◆ GetObjectSize() [1/2]

Int_t TGo4ObjectStatus::GetObjectSize ( ) const
inline

Size of described object in byte.

Definition at line 44 of file TGo4ObjectStatus.h.

References fiObjectSize.

Referenced by Print(), TGo4AnalysisObjectManager::PrintFolder(), TGo4HistogramInfo::RefreshHistogramInfo(), and TGo4AnalysisLevelIter::sizeinfo().

◆ GetObjectSize() [2/2]

Int_t TGo4ObjectStatus::GetObjectSize ( ) const
inline

Size of described object in byte.

Definition at line 44 of file TGo4ObjectStatus.h.

References fiObjectSize.

◆ GetTimeString() [1/2]

const char * TGo4ObjectStatus::GetTimeString ( ) const
inline

Creation time string; sql format.

Definition at line 53 of file TGo4ObjectStatus.h.

References fxStatusTime.

Referenced by Print(), and TGo4HistogramInfo::RefreshHistogramInfo().

◆ GetTimeString() [2/2]

const char * TGo4ObjectStatus::GetTimeString ( ) const
inline

Creation time string; sql format.

Definition at line 53 of file TGo4ObjectStatus.h.

References fxStatusTime.

◆ IsDeleteProtect() [1/2]

Bool_t TGo4ObjectStatus::IsDeleteProtect ( ) const
inline

Object's delete protection state.

Definition at line 50 of file TGo4ObjectStatus.h.

References fbDeleteProtect.

Referenced by TGo4AnalysisLevelIter::getflag(), and Print().

◆ IsDeleteProtect() [2/2]

Bool_t TGo4ObjectStatus::IsDeleteProtect ( ) const
inline

Object's delete protection state.

Definition at line 50 of file TGo4ObjectStatus.h.

References fbDeleteProtect.

◆ IsResetProtect() [1/2]

Bool_t TGo4ObjectStatus::IsResetProtect ( ) const
inline

Object's reset protection state.

Definition at line 47 of file TGo4ObjectStatus.h.

References fbResetProtect.

Referenced by TGo4AnalysisLevelIter::getflag(), and Print().

◆ IsResetProtect() [2/2]

Bool_t TGo4ObjectStatus::IsResetProtect ( ) const
inline

Object's reset protection state.

Definition at line 47 of file TGo4ObjectStatus.h.

References fbResetProtect.

◆ Print() [1/2]

◆ Print() [2/2]

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

References fiObjectSize.

Field Documentation

◆ fbDeleteProtect

Bool_t TGo4ObjectStatus::fbDeleteProtect {kTRUE}
protected

If true, described object is protected against deletion from gui.

Definition at line 65 of file TGo4ObjectStatus.h.

Referenced by TGo4ObjectStatus(), and IsDeleteProtect().

◆ fbResetProtect

Bool_t TGo4ObjectStatus::fbResetProtect {kFALSE}
protected

If true, described object is protected against reset (Clear()) from gui.

Definition at line 62 of file TGo4ObjectStatus.h.

Referenced by TGo4ObjectStatus(), and IsResetProtect().

◆ fiObjectSize

UInt_t TGo4ObjectStatus::fiObjectSize {0}
protected

Size of the described object in byte.

Definition at line 59 of file TGo4ObjectStatus.h.

Referenced by TGo4HistogramStatus::TGo4HistogramStatus(), TGo4ObjectStatus(), GetObjectSize(), and Print().

◆ fxObjectClass

TString TGo4ObjectStatus::fxObjectClass
protected

◆ fxStatusTime

TString TGo4ObjectStatus::fxStatusTime
protected

creation time of status object

Definition at line 71 of file TGo4ObjectStatus.h.

Referenced by TGo4ObjectStatus(), and GetTimeString().


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