#include <TGo4ComSetObject.h>
Public Member Functions | |
TGo4ComSetObject () | |
TGo4ComSetObject (const char *obname) | |
virtual | ~TGo4ComSetObject () |
Int_t | ExeCom () |
virtual void | Set (TGo4RemoteCommand *remcon) |
void | SetObject (TObject *ob) |
Private Member Functions | |
Int_t | ExeSetParStatus (TGo4ParameterStatus *par) |
Int_t | ExeSetPar (TGo4Parameter *par) |
Int_t | ExeSetCon (TGo4Condition *con) |
Int_t | ExeSetHis (TH1 *his) |
Int_t | ExeSetDyn (TGo4DynamicEntry *dyn) |
Int_t | ExeSetPic (TGo4Picture *pic) |
Int_t | ExeSetObj (TObject *ob) |
Private Attributes | |
TObject * | fxObject |
TGo4AnalysisClient * | fxClient |
TGo4Analysis * | fxAna |
TGo4AnalysisObjectResult * | fxResult |
General setter command for any known object (parameter, condition, histogram, picture,..). If an object of that name exists in the target folder, the new settings are applied on it. If object does not exist in the full path, it is created there. If the types do not match (case of parameters, conditions), an error message is sent.
Definition at line 39 of file TGo4ComSetObject.h.
TGo4ComSetObject::TGo4ComSetObject | ( | ) |
Definition at line 33 of file TGo4ComSetObject.cxx.
References kGo4ComModeController, TGo4Command::SetProtection(), and TGo4Command::SetReceiverName().
TGo4ComSetObject::TGo4ComSetObject | ( | const char * | obname | ) |
Definition at line 46 of file TGo4ComSetObject.cxx.
References kGo4ComModeController, TGo4Command::SetProtection(), and TGo4Command::SetReceiverName().
TGo4ComSetObject::~TGo4ComSetObject | ( | ) | [virtual] |
Definition at line 59 of file TGo4ComSetObject.cxx.
References fxResult.
Int_t TGo4ComSetObject::ExeCom | ( | ) | [virtual] |
Do the command action
Reimplemented from TGo4Command.
Definition at line 76 of file TGo4ComSetObject.cxx.
References TGo4AnalysisObjectResult::Action(), TGo4Log::Debug(), ExeSetCon(), ExeSetDyn(), ExeSetHis(), ExeSetObj(), ExeSetPar(), ExeSetParStatus(), ExeSetPic(), fxAna, fxClient, fxObject, TGo4Command::fxReceiverBase, fxResult, TGo4Analysis::GetNamesList(), TGo4Analysis::GetObjectFolder(), TGo4AnalysisObjectCommand::GetObjectName(), GO4TRACE, TGo4Analysis::Instance(), TGo4Slave::SendStatus(), TGo4AnalysisClient::SendStatusMessage(), TGo4AnalysisObjectResult::SetNamesList(), TGo4AnalysisObjectResult::SetObjectFullName(), TGo4AnalysisObjectCommand::SetObjectName(), and TGo4Analysis::UpdateNamesList().
Int_t TGo4ComSetObject::ExeSetCon | ( | TGo4Condition * | con | ) | [private] |
Definition at line 159 of file TGo4ComSetObject.cxx.
References fxAna, fxClient, fxObject, fxResult, TGo4AnalysisObjectCommand::GetObjectName(), kGo4ActionEdit, kGo4ActionError, TGo4AnalysisClient::SendStatusMessage(), TGo4AnalysisObjectResult::SetAction(), TGo4Analysis::SetAnalysisCondition(), and TGo4AnalysisObjectResult::SetMessage().
Referenced by ExeCom().
Int_t TGo4ComSetObject::ExeSetDyn | ( | TGo4DynamicEntry * | dyn | ) | [private] |
Definition at line 196 of file TGo4ComSetObject.cxx.
References TGo4Analysis::AddDynamicEntry(), fxAna, fxClient, fxObject, fxResult, TGo4TreeHistogramEntry::GetDynListInterval(), TGo4AnalysisObjectCommand::GetFolderName(), TGo4AnalysisObjectCommand::GetObjectName(), TGo4DynamicEntry::IsEnabledProcessing(), kGo4ActionEdit, kGo4ActionError, TGo4AnalysisClient::SendStatusMessage(), TGo4AnalysisObjectResult::SetAction(), TGo4Analysis::SetDynListInterval(), and TGo4AnalysisObjectResult::SetMessage().
Referenced by ExeCom().
Int_t TGo4ComSetObject::ExeSetHis | ( | TH1 * | his | ) | [private] |
Definition at line 177 of file TGo4ComSetObject.cxx.
References TGo4Analysis::AddHistogram(), fxAna, fxClient, fxResult, TGo4AnalysisObjectCommand::GetObjectName(), kGo4ActionError, kGo4ActionPlot, TGo4Status::kGo4CanDelete, TGo4AnalysisClient::SendStatusMessage(), TGo4AnalysisObjectResult::SetAction(), and TGo4AnalysisObjectResult::SetMessage().
Referenced by ExeCom().
Int_t TGo4ComSetObject::ExeSetObj | ( | TObject * | ob | ) | [private] |
Definition at line 236 of file TGo4ComSetObject.cxx.
References TGo4Analysis::AddObject(), fxAna, fxClient, fxResult, TGo4AnalysisObjectCommand::GetObjectName(), kGo4ActionError, kGo4ActionRefresh, TGo4AnalysisClient::SendStatusMessage(), TGo4AnalysisObjectResult::SetAction(), and TGo4AnalysisObjectResult::SetMessage().
Referenced by ExeCom().
Int_t TGo4ComSetObject::ExeSetPar | ( | TGo4Parameter * | par | ) | [private] |
Definition at line 141 of file TGo4ComSetObject.cxx.
References fxAna, fxClient, fxObject, fxResult, TGo4AnalysisObjectCommand::GetObjectName(), kGo4ActionEdit, kGo4ActionError, TGo4AnalysisClient::SendStatusMessage(), TGo4AnalysisObjectResult::SetAction(), TGo4AnalysisObjectResult::SetMessage(), and TGo4Analysis::SetParameter().
Referenced by ExeCom().
Int_t TGo4ComSetObject::ExeSetParStatus | ( | TGo4ParameterStatus * | par | ) | [private] |
Definition at line 123 of file TGo4ComSetObject.cxx.
References fxAna, fxClient, fxObject, fxResult, TGo4AnalysisObjectCommand::GetObjectName(), kGo4ActionEdit, kGo4ActionError, TGo4AnalysisClient::SendStatusMessage(), TGo4AnalysisObjectResult::SetAction(), TGo4AnalysisObjectResult::SetMessage(), and TGo4Analysis::SetParameterStatus().
Referenced by ExeCom().
Int_t TGo4ComSetObject::ExeSetPic | ( | TGo4Picture * | pic | ) | [private] |
Definition at line 217 of file TGo4ComSetObject.cxx.
References fxAna, fxClient, fxObject, fxResult, TGo4AnalysisObjectCommand::GetObjectName(), kGo4ActionError, kGo4ActionPlot, TGo4AnalysisClient::SendStatusMessage(), TGo4AnalysisObjectResult::SetAction(), TGo4AnalysisObjectResult::SetMessage(), and TGo4Analysis::SetPicture().
Referenced by ExeCom().
void TGo4ComSetObject::Set | ( | TGo4RemoteCommand * | remcon | ) | [virtual] |
Set internals of this command from specification of external remote command (command container). Must be overloaded for each specific command!
Reimplemented from TGo4AnalysisObjectCommand.
Definition at line 65 of file TGo4ComSetObject.cxx.
References fxObject, and TGo4RemoteCommand::GetAggregate().
void TGo4ComSetObject::SetObject | ( | TObject * | ob | ) | [inline] |
Definition at line 51 of file TGo4ComSetObject.h.
References fxObject.
TGo4Analysis* TGo4ComSetObject::fxAna [private] |
Definition at line 67 of file TGo4ComSetObject.h.
Referenced by ExeCom(), ExeSetCon(), ExeSetDyn(), ExeSetHis(), ExeSetObj(), ExeSetPar(), ExeSetParStatus(), and ExeSetPic().
TGo4AnalysisClient* TGo4ComSetObject::fxClient [private] |
Definition at line 65 of file TGo4ComSetObject.h.
Referenced by ExeCom(), ExeSetCon(), ExeSetDyn(), ExeSetHis(), ExeSetObj(), ExeSetPar(), ExeSetParStatus(), and ExeSetPic().
TObject* TGo4ComSetObject::fxObject [private] |
The object to be set.
Definition at line 63 of file TGo4ComSetObject.h.
Referenced by ExeCom(), ExeSetCon(), ExeSetDyn(), ExeSetPar(), ExeSetParStatus(), ExeSetPic(), Set(), and SetObject().
structure to keep result of setting action
Definition at line 70 of file TGo4ComSetObject.h.
Referenced by ExeCom(), ExeSetCon(), ExeSetDyn(), ExeSetHis(), ExeSetObj(), ExeSetPar(), ExeSetParStatus(), ExeSetPic(), and ~TGo4ComSetObject().