GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
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
26
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
69
71 TString fxStatusTime;
72
73 ClassDefOverride(TGo4ObjectStatus,1)
74};
75
76#endif //TGO4OBJECTSTATUS_H
const char * GetTimeString() const
Creation time string; sql format.
TString fxStatusTime
creation time of status object
const char * GetObjectClass() const
ClassName of the described object.
Int_t GetObjectSize() const
Size of described object in byte.
UInt_t fiObjectSize
Size of the described object in byte.
Bool_t IsResetProtect() const
Object's reset protection state.
TString fxObjectClass
Classname of the described object.
TGo4ObjectStatus()
default ctor for streamer.
Bool_t fbDeleteProtect
If true, described object is protected against deletion from gui.
Bool_t IsDeleteProtect() const
Object's delete protection state.
Bool_t fbResetProtect
If true, described object is protected against reset (Clear()) from gui.
void Print(Option_t *opt="") const override