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

/Go4TaskHandler/TGo4ClientStatus.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 "TGo4ClientStatus.h"
00017 
00018 #include <iostream.h>
00019 
00020 #include "Go4Log/TGo4Log.h"
00021 #include "Go4TaskHandler/TGo4TaskHandlerStatus.h"
00022 
00023 
00024 TGo4ClientStatus::TGo4ClientStatus() {}; // default ctor for streamer
00025 
00026 TGo4ClientStatus::TGo4ClientStatus(const char* name)
00027 : TGo4TaskStatus(name)
00028 {
00029 
00030 }
00031 
00032 TGo4ClientStatus::~TGo4ClientStatus()
00033 {
00034  
00035 }
00036 
00037 Int_t TGo4ClientStatus::PrintStatus(Text_t* buffer, Int_t buflen)
00038 {
00039    if(buflen<=0 && buffer!=0)
00040       return 0;
00041    Int_t locallen=4096;   
00042    Text_t localbuf[locallen];
00043    Text_t* current=localbuf;
00044    Int_t size=0;
00045    Int_t restlen=locallen;
00046    current=PrintBuffer(current,restlen, "G-OOOO->    Client Status Class %s Printout:  <-OOOO-G\n",GetName());
00047    current=PrintBuffer(current,restlen, "G-OOOO-> ---------------------------------------------- <-OOOO-G\n");
00048    current=PrintBuffer(current,restlen, "G-OOOO-> Remote Server Hostname: %s\n",fxServerHostName.Data());
00049    current=PrintBuffer(current,restlen, "G-OOOO-> ---------------------------------------------- <-OOOO-G\n");
00050    Int_t delta=TGo4TaskStatus::PrintStatus(current,restlen);
00051    restlen-=delta;
00052    current+=delta;  
00053    current=PrintBuffer(current,restlen, "G-OOOO-> END Client Status Class Printout END <-OOOO-G\n");
00054    if(buffer==0)
00055       {
00056          cout << localbuf << endl;
00057       }
00058    else
00059       {
00060          size=locallen-restlen;
00061          if(size>buflen-1)
00062                size=buflen-1;
00063          strncpy(buffer,localbuf,size);
00064       }
00065    return size;
00066 }
00067 
00068 void TGo4ClientStatus::SetNames(const char* serverhost)
00069 {
00070    fxServerHostName = serverhost;
00071 }
00072 
00073 ClassImp(TGo4ClientStatus)
00074 
00075 //----------------------------END OF GO4 SOURCE FILE ---------------------

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