17 #include "Riostream.h"
30 TNamed(name,
"This is a Go4 Status Object")
32 GO4TRACE((12,
"TGo4Status::TGo4Status(const char*)",__LINE__, __FILE__));
38 GO4TRACE((12,
"TGo4Status::TGo4Status(const char*, const char*)",__LINE__, __FILE__));
43 GO4TRACE((12,
"TGo4Status::~TGo4Status()",__LINE__, __FILE__));
55 GO4TRACE((12,
"TGo4Status::PrintStatus()",__LINE__, __FILE__));
57 if(buflen<=0 && buffer!=0)
return 0;
60 TString localbuf = TString::Format(
"G-OOOO-> Status Class %s, name: %s <-OOOO-G\n", ClassName(), GetName());
63 std::cout << localbuf << std::endl;
65 size = localbuf.Length();
66 if(size>buflen-1) size = buflen-1;
67 strncpy(buffer,localbuf.Data(), size);
74 if(buflen<0 && buffer!=0)
return 0;
76 Text_t* cursor=buffer;
77 for (
int i = 0; (i < TROOT::GetDirLevel()) && (i< buflen); i++)
87 if(buffer==0 || buflen<0)
return 0;
90 Int_t size=vsnprintf(buffer, buflen, text, args);
92 if(size>buflen || size<0)
return 0;
93 char* current= buffer + size;
virtual void Print(Option_t *dummy="") const
virtual Int_t PrintStatus(Text_t *buffer=0, Int_t buflen=0)
static Text_t * PrintIndent(Text_t *buffer, Int_t &buflen)
static Text_t * PrintBuffer(char *buffer, Int_t &buflen, const char *text,...)