Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #include "TGo4MemberStatus.h"
00015
00016 #include "Riostream.h"
00017
00018 TGo4MemberStatus::TGo4MemberStatus() :
00019 TGo4ObjectStatus()
00020 {
00021 }
00022
00023 TGo4MemberStatus::TGo4MemberStatus(const char* name, const char* datatypename) :
00024 TGo4ObjectStatus(0,kFALSE)
00025 {
00026 SetName(name);
00027 SetTitle(datatypename);
00028 fxObjectClass = datatypename;
00029 }
00030
00031 TGo4MemberStatus::~TGo4MemberStatus()
00032 {
00033 }
00034
00035 Int_t TGo4MemberStatus::PrintStatus(Text_t* buffer, Int_t buflen)
00036 {
00037 if(buflen<=0 && buffer!=0)
00038 return 0;
00039 Int_t locallen=128000;
00040 Text_t localbuf[128000];
00041 Int_t size=0;
00042 Text_t* current=localbuf;
00043 Int_t restlen=locallen;
00044 Int_t delta = TGo4ObjectStatus::PrintStatus(current,restlen);
00045 restlen-=delta;
00046 current+=delta;
00047 current=PrintIndent(current,restlen);
00048 current=PrintBuffer(current,restlen, "G-OOOO-> Datamember Status Class Printout <-OOOO-G\n");
00049 current=PrintIndent(current,restlen);
00050 current=PrintBuffer(current,restlen, "G-OOOO-> ---------------------------------------------- <-OOOO-G\n");
00051 if(buffer==0)
00052 {
00053 std::cout << localbuf << std::endl;
00054 }
00055 else
00056 {
00057 if(size>buflen-1)
00058 size=buflen-1;
00059 strncpy(buffer,localbuf,size);
00060 }
00061 return size;
00062 }