Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #include "TGo4ComGetNamesList.h"
00015
00016 #include "TGo4Log.h"
00017 #include "TGo4AnalysisClientImp.h"
00018 #include "TGo4AnalysisObjectNames.h"
00019 #include "TGo4AnalysisImp.h"
00020
00021 TGo4ComGetNamesList::TGo4ComGetNamesList() :TGo4AnalysisCommand()
00022 {
00023 GO4TRACE((12,"TGo4ComGetNamesList::TGo4ComGetNamesList() ctor",__LINE__, __FILE__));
00024 SetReceiverName("AnalysisClient");
00025
00026 SetName("ANNames");
00027 SetDescription("Requests list of names and folders");
00028
00029 }
00030
00031 TGo4ComGetNamesList::~TGo4ComGetNamesList()
00032 {
00033 GO4TRACE((12,"TGo4ComGetNamesList::~TGo4ComGetNamesList() dtor",__LINE__, __FILE__));
00034 }
00035
00036 Int_t TGo4ComGetNamesList::ExeCom()
00037 {
00038 GO4TRACE((12,"TGo4ComGetNamesList::ExeCom()",__LINE__, __FILE__));
00039
00040 TGo4AnalysisClient* cli = dynamic_cast<TGo4AnalysisClient*> (fxReceiverBase);
00041 if(cli == 0) {
00042 GO4TRACE((11,"TGo4ComGetNamesList::ExeCom() - no receiver specified ERROR!",__LINE__, __FILE__));
00043 TGo4Log::Debug(" !!! ComGetNamesList ''%s'': NO RECEIVER ERROR!!!",GetName());
00044 return 1;
00045 }
00046
00047 cli->SendStatusMessage(1,kFALSE, TString::Format(
00048 "%s::Analysis nameslist was requested from client %s", GetTaskName(), GetTaskName()));
00049
00050 TGo4Analysis* ana = TGo4Analysis::Instance();
00051 ana->UpdateNamesList();
00052 TGo4AnalysisObjectNames* state = ana->GetNamesList();
00053 cli->SendObject(state, GetTaskName());
00054 return -1;
00055
00056 }