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

/Go4StatusAnalysis/TGo4EventSourceStatus.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 "TGo4EventSourceStatus.h"
00017 
00018 #include <iostream.h>
00019 
00020 #include "Go4Log/TGo4Log.h"
00021 #include "Go4Event/TGo4EventSource.h"
00022 
00023 TGo4EventSourceStatus::TGo4EventSourceStatus(TGo4EventSource* ev) : TGo4ObjectStatus(ev)
00024 {
00025 }
00026 
00027 TGo4EventSourceStatus::TGo4EventSourceStatus() : TGo4ObjectStatus()
00028 {
00029 }
00030 
00031 TGo4EventSourceStatus::~TGo4EventSourceStatus()
00032 {
00033 }
00034 
00035 Int_t TGo4EventSourceStatus::PrintStatus(Text_t* buffer, Int_t buflen)
00036 {
00037    TRACE((12,"TGo4EventSourceStatus::PrintStatus()",__LINE__, __FILE__));
00038    if(buflen<=0 && buffer!=0)
00039       return 0;
00040    Int_t locallen=128000;
00041    Text_t localbuf[locallen];
00042    Int_t size=0;
00043    Text_t* current=localbuf;
00044    Int_t restlen=locallen;   
00045    Int_t delta = TGo4ObjectStatus::PrintStatus(current,restlen);
00046    restlen-=delta;
00047    current+=delta;   
00048    current=PrintIndent(current,restlen);
00049    current=PrintBuffer(current,restlen, "G-OOOO-> EventSource Status Class Printout <-OOOO-G\n");
00050    current=PrintIndent(current,restlen);
00051    current=PrintBuffer(current,restlen, "G-OOOO-> ---------------------------------------------- <-OOOO-G\n");
00052    // put printout of eventsource infos here:
00053 
00055   if(buffer==0)
00056       {
00057           cout << localbuf << endl;
00058       }
00059    else
00060       {
00061          size=locallen-restlen;
00062          if(size>buflen-1)
00063                size=buflen-1;
00064          strncpy(buffer,localbuf,size);
00065       }
00066    return size;
00067 }
00068 
00069 ClassImp(TGo4EventSourceStatus)
00070 
00071 //----------------------------END OF GO4 SOURCE FILE ---------------------

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