Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4StatusAnalysis/TGo4EventStoreStatus.cxx

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 #include "TGo4EventStoreStatus.h"
00017 
00018 #include <iostream.h>
00019 
00020 #include "Go4Log/TGo4Log.h"
00021 #include "Go4Event/TGo4EventStore.h"
00022 
00023 TGo4EventStoreStatus::TGo4EventStoreStatus(TGo4EventStore* ev) : TGo4ObjectStatus(ev)
00024 {
00025 // later, we might get additional infos from eventstore class
00026 }
00027 
00028 TGo4EventStoreStatus::TGo4EventStoreStatus() : TGo4ObjectStatus()
00029 {
00030 }
00031 
00032 TGo4EventStoreStatus::~TGo4EventStoreStatus()
00033 {
00034 }
00035 
00036 
00037 Int_t TGo4EventStoreStatus::PrintStatus(Text_t* buffer, Int_t buflen)
00038 {
00039    TRACE((12,"TGo4EventStoreStatus::PrintStatus()",__LINE__, __FILE__));
00040    if(buflen<=0 && buffer!=0)
00041       return 0;
00042    Int_t locallen=128000;
00043    Text_t localbuf[locallen];
00044    Int_t size=0;
00045    Text_t* current=localbuf;
00046    Int_t restlen=locallen;
00047    Int_t delta= TGo4ObjectStatus::PrintStatus(current,restlen);
00048    restlen-=delta;
00049    current+=delta;
00050    current=PrintIndent(current,restlen);
00051    current=PrintBuffer(current,restlen, "G-OOOO-> Eventstore Status Class Printout <-OOOO-G\n");
00052    current=PrintIndent(current,restlen);
00053    current=PrintBuffer(current,restlen, "G-OOOO-> ---------------------------------------------- <-OOOO-G\n");
00054    // put printout of eventstore infos here:
00055 
00057   if(buffer==0)
00058       {
00059           cout << localbuf << endl;
00060       }
00061    else
00062       {
00063          size=locallen-restlen;
00064          if(size>buflen-1)
00065                size=buflen-1;
00066          strncpy(buffer,localbuf,size);
00067       }
00068    return size;
00069 }
00070 
00071 
00072 ClassImp(TGo4EventStoreStatus)
00073 
00074 
00075 
00076 
00077 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:56:05 2005 for Go4-v2.10-5 by doxygen1.2.15