GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4ObjectStatus.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 TGO4OBJECTSTATUS_H
15 #define TGO4OBJECTSTATUS_H
16 
17 #include "TGo4Status.h"
18 
27 class TGo4ObjectStatus : public TGo4Status {
28  public:
29 
32 
36  TGo4ObjectStatus(TObject *object, Bool_t withtime=kTRUE);
37 
38  virtual ~TGo4ObjectStatus();
39 
41  const char *GetObjectClass() const { return fxObjectClass.Data(); }
42 
44  Int_t GetObjectSize() const { return fiObjectSize; }
45 
47  Bool_t IsResetProtect() const { return fbResetProtect; }
48 
50  Bool_t IsDeleteProtect() const { return fbDeleteProtect; }
51 
53  const char *GetTimeString() const { return fxStatusTime.Data(); }
54 
55  void Print(Option_t *opt = "") const override;
56 
57  protected:
59  UInt_t fiObjectSize{0};
60 
62  Bool_t fbResetProtect{kFALSE};
63 
65  Bool_t fbDeleteProtect{kTRUE};
66 
68  TString fxObjectClass;
69 
71  TString fxStatusTime;
72 
73  ClassDefOverride(TGo4ObjectStatus,1)
74 };
75 
76 #endif //TGO4OBJECTSTATUS_H
Bool_t IsResetProtect() const
Bool_t IsDeleteProtect() const
const char * GetObjectClass() const
Int_t GetObjectSize() const
const char * GetTimeString() const
void Print(Option_t *opt="") const override
virtual ~TGo4ObjectStatus()