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

TGo4ComCreateObject Class Reference

Creates new object of class name on client side.Object will be kept in directory which matches to its base type, e.g in condition directory if it inherits from condition, in data index dir if inherits from TGo4EventDataIndex, etc. More...

#include <TGo4ComCreateObject.h>

Inheritance diagram for TGo4ComCreateObject:

TGo4AnalysisObjectCommand TGo4AnalysisCommand TGo4Command TGo4ComCreateCondition TGo4ComCreateHistogram List of all members.

Public Methods

 TGo4ComCreateObject ()
 TGo4ComCreateObject (const char *obname, const char *classname)
virtual ~TGo4ComCreateObject ()
Int_t ExeCom ()
 Do the command action. More...

const char * GetObjectClassName () const
 access to the object class name from subclasses. More...

void SetObjectClassName (const char *name)
 set the target object name under command. More...


Protected Methods

TNamed * CreateObject ()
 Create object of given classname using root TClass mechanism. More...


Private Attributes

TString fxObjectClassName
 Classname of the object to be created. More...


Detailed Description

Creates new object of class name on client side.Object will be kept in directory which matches to its base type, e.g in condition directory if it inherits from condition, in data index dir if inherits from TGo4EventDataIndex, etc.

Histograms (TH1) and all unknown objects are added to histogram dir. There is no dynamic list entry created for the new object.

Author:
J. Adamczewski
Since:
06-Jun-2001

Definition at line 34 of file TGo4ComCreateObject.h.


Constructor & Destructor Documentation

TGo4ComCreateObject::TGo4ComCreateObject  
 

Definition at line 39 of file TGo4ComCreateObject.cxx.

References kGo4ComModeController, SetObjectClassName(), TGo4Command::SetProtection(), TGo4Command::SetReceiverName(), and TRACE.

TGo4ComCreateObject::TGo4ComCreateObject const char *    obname,
const char *    classname
 

Definition at line 26 of file TGo4ComCreateObject.cxx.

References kGo4ComModeController, SetObjectClassName(), TGo4Command::SetProtection(), TGo4Command::SetReceiverName(), and TRACE.

TGo4ComCreateObject::~TGo4ComCreateObject   [virtual]
 

Definition at line 51 of file TGo4ComCreateObject.cxx.

References TRACE.


Member Function Documentation

Int_t TGo4ComCreateObject::ExeCom   [virtual]
 

Do the command action.

Reimplemented from TGo4Command.

Reimplemented in TGo4ComCreateCondition, and TGo4ComCreateHistogram.

Definition at line 56 of file TGo4ComCreateObject.cxx.

References TGo4Analysis::AddObject(), CreateObject(), TGo4Log::Debug(), TGo4AnalysisObjectCommand::GetObjectName(), TGo4Analysis::Instance(), TGo4Slave::SendStatusMessage(), and TRACE.

Referenced by TGo4ComCreateCondition::ExeCom().

const char* TGo4ComCreateObject::GetObjectClassName   const [inline]
 

access to the object class name from subclasses.

Definition at line 46 of file TGo4ComCreateObject.h.

References fxObjectClassName.

Referenced by CreateObject().

void TGo4ComCreateObject::SetObjectClassName const char *    name [inline]
 

set the target object name under command.

Definition at line 49 of file TGo4ComCreateObject.h.

References fxObjectClassName.

Referenced by TGo4CreateNewHistogramSlots::CreateRemoteHis(), and TGo4ComCreateObject().

TNamed * TGo4ComCreateObject::CreateObject   [protected]
 

Create object of given classname using root TClass mechanism.

Definition at line 98 of file TGo4ComCreateObject.cxx.

References GetObjectClassName(), TGo4AnalysisObjectCommand::GetObjectName(), and TRACE.

Referenced by ExeCom(), and TGo4ComCreateHistogram::ExeCom().


Member Data Documentation

TString TGo4ComCreateObject::fxObjectClassName [private]
 

Classname of the object to be created.

Definition at line 59 of file TGo4ComCreateObject.h.

Referenced by GetObjectClassName(), and SetObjectClassName().


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:56:31 2005 for Go4-v2.10-5 by doxygen1.2.15