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

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

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