27 fbResetProtect(kFALSE),
28 fbDeleteProtect(kTRUE),
37 fbResetProtect(kFALSE),
38 fbDeleteProtect(kTRUE),
42 GO4TRACE((15,
"TGo4ObjectStatus::TGo4ObjectStatus(TNamed*)",__LINE__, __FILE__));
44 SetName(object->GetName());
45 SetTitle(object->GetTitle());
48 if (object->InheritsFrom(TGo4Picture::Class()))
53 SetName(
"Unknown Name");
54 SetTitle(
"Unknown Title");
68 GO4TRACE((15,
"TGo4ObjectStatus::~TGo4ObjectStatus()",__LINE__, __FILE__));
74 GO4TRACE((12,
"TGo4ObjectStatus::PrintStatus()",__LINE__, __FILE__));
75 if(buflen<=0 && buffer!=0)
return 0;
77 Text_t localbuf[2048];
78 Text_t* current=localbuf;
80 Int_t restlen=locallen;
82 current=
PrintBuffer(current,restlen,
"G-OOOO-> Object Status Class Printout <-OOOO-G\n");
84 current=
PrintBuffer(current,restlen,
"G-OOOO-> ---------------------------------------------- <-OOOO-G\n");
86 current=
PrintBuffer(current,restlen,
" Object name: \t\t%s\n",GetName());
88 current=
PrintBuffer(current,restlen,
" Object title: \t\t%s\n",GetTitle());
100 current =
PrintBuffer(current, restlen,
"G-OOOO-> ---------------------------------------------- <-OOOO-G\n");
102 std::cout << localbuf << std::endl;
104 size = locallen - restlen;
105 if (size > buflen - 1)
107 strncpy(buffer, localbuf, size);
Bool_t IsDeleteProtect() const
Bool_t IsResetProtect() const
static Text_t * PrintIndent(Text_t *buffer, Int_t &buflen)
const char * GetTimeString() const
const char * GetObjectClass() const
virtual Int_t PrintStatus(Text_t *buffer=0, Int_t buflen=0)
static Text_t * PrintBuffer(char *buffer, Int_t &buflen, const char *text,...)
Int_t GetObjectSize() const
virtual ~TGo4ObjectStatus()