Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4MemberStatus.cxx

Go to the documentation of this file.
00001 //-------------------------------------------------------------
00002 //        Go4 Release Package v3.04-01 (build 30401)
00003 //                      28-November-2008
00004 //---------------------------------------------------------------
00005 //   The GSI Online Offline Object Oriented (Go4) Project
00006 //   Experiment Data Processing at EE 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 "TGo4MemberStatus.h"
00017 
00018 #include "Riostream.h"
00019 
00020 TGo4MemberStatus::TGo4MemberStatus() :
00021    TGo4ObjectStatus()
00022 {
00023 }
00024 
00025 TGo4MemberStatus::TGo4MemberStatus(const char* name, const char* datatypename) :
00026    TGo4ObjectStatus(0,kFALSE)
00027 {
00028    SetName(name);
00029    SetTitle(datatypename);
00030    fxObjectClass = datatypename;
00031 }
00032 
00033 TGo4MemberStatus::~TGo4MemberStatus()
00034 {
00035 }
00036 
00037 Int_t TGo4MemberStatus::PrintStatus(Text_t* buffer, Int_t buflen)
00038 {
00039    if(buflen<=0 && buffer!=0)
00040       return 0;
00041    Int_t locallen=128000;
00042    Text_t localbuf[128000];
00043    Int_t size=0;
00044    Text_t* current=localbuf;
00045    Int_t restlen=locallen;
00046    Int_t delta   = TGo4ObjectStatus::PrintStatus(current,restlen);
00047    restlen-=delta;
00048    current+=delta;
00049    current=PrintIndent(current,restlen);
00050    current=PrintBuffer(current,restlen, "G-OOOO-> Datamember Status Class Printout <-OOOO-G\n");
00051    current=PrintIndent(current,restlen);
00052    current=PrintBuffer(current,restlen, "G-OOOO-> ---------------------------------------------- <-OOOO-G\n");
00053   if(buffer==0)
00054       {
00055           cout << localbuf << endl;
00056       }
00057    else
00058       {
00059          if(size>buflen-1)
00060                size=buflen-1;
00061          strncpy(buffer,localbuf,size);
00062       }
00063    return size;
00064 }
00065 
00066 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Fri Nov 28 12:59:28 2008 for Go4-v3.04-1 by  doxygen 1.4.2