16 #include "Riostream.h"
26 fbResetProtect(kFALSE),
27 fbDeleteProtect(kTRUE),
36 fbResetProtect(kFALSE),
37 fbDeleteProtect(kTRUE),
41 GO4TRACE((15,
"TGo4ObjectStatus::TGo4ObjectStatus(TNamed*)",__LINE__, __FILE__));
43 SetName(object->GetName());
44 SetTitle(object->GetTitle());
47 if (object->InheritsFrom(TGo4Picture::Class()))
52 SetName(
"Unknown Name");
53 SetTitle(
"Unknown Title");
67 GO4TRACE((15,
"TGo4ObjectStatus::~TGo4ObjectStatus()",__LINE__, __FILE__));
73 GO4TRACE((12,
"TGo4ObjectStatus::PrintStatus()",__LINE__, __FILE__));
74 if(buflen<=0 && buffer!=0)
return 0;
76 Text_t localbuf[2048];
77 Text_t* current=localbuf;
79 Int_t restlen=locallen;
81 current=
PrintBuffer(current,restlen,
"G-OOOO-> Object Status Class Printout <-OOOO-G\n");
83 current=
PrintBuffer(current,restlen,
"G-OOOO-> ---------------------------------------------- <-OOOO-G\n");
85 current=
PrintBuffer(current,restlen,
" Object name: \t\t%s\n",GetName());
87 current=
PrintBuffer(current,restlen,
" Object title: \t\t%s\n",GetTitle());
99 current=
PrintBuffer(current,restlen,
"G-OOOO-> ---------------------------------------------- <-OOOO-G\n");
102 std::cout << localbuf << std::endl;
106 size=locallen-restlen;
109 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()