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

TGo4CommandInvoker Class Reference

Class that knows Command Object; When Client gets the Command it is passed to the Invoker who sets the CommandClient as receiver and calls its Execute method. More...

#include <TGo4CommandInvoker.h>

List of all members.

Public Methods

virtual void Invoke (TGo4Command *com)
virtual void Invoke ()
virtual ~TGo4CommandInvoker ()

Static Public Methods

TGo4CommandInvoker * Instance ()
void Register (const char *name, TGo4CommandReceiver *p)

Protected Methods

 TGo4CommandInvoker ()

Static Protected Methods

TGo4CommandReceiverLookup (const char *name)

Private Attributes

TGo4CommandfxCommand
  More...


Static Private Attributes

TGo4CommandInvoker * fxInstance = 0
TObjArray * fxArray = 0
TMutex * fxMutex = 0


Detailed Description

Class that knows Command Object; When Client gets the Command it is passed to the Invoker who sets the CommandClient as receiver and calls its Execute method.

Decouples CommandClient and Command object circular dependencies

Definition at line 37 of file TGo4CommandInvoker.h.


Constructor & Destructor Documentation

TGo4CommandInvoker::~TGo4CommandInvoker   [virtual]
 

Definition at line 72 of file TGo4CommandInvoker.cxx.

References fxArray, fxCommand, and TRACE.

TGo4CommandInvoker::TGo4CommandInvoker   [protected]
 

Definition at line 82 of file TGo4CommandInvoker.cxx.

References fxArray, fxCommand, fxMutex, and TRACE.

Referenced by Instance().


Member Function Documentation

TGo4CommandInvoker * TGo4CommandInvoker::Instance   [static]
 

Definition at line 49 of file TGo4CommandInvoker.cxx.

References fxInstance, TGo4CommandInvoker(), and TRACE.

Referenced by TGo4AnalysisClient::Constructor(), TGo4Analysis::Process(), TGo4MainRunnable::Run(), TGo4LocalCommandRunnable::Run(), TGo4AnalysisMainRunnable::Run(), TGo4Analysis::TGo4Analysis(), TGo4CommandRunnable::TGo4CommandRunnable(), TGo4ExampleApplication::TGo4ExampleApplication(), TGo4HistogramServer::TGo4HistogramServer(), TGo4Master::TGo4Master(), TGo4ServerTask::TGo4ServerTask(), TGo4Slave::TGo4Slave(), and TGo4Task::TGo4Task().

void TGo4CommandInvoker::Register const char *    name,
TGo4CommandReceiver   p
[static]
 

Definition at line 57 of file TGo4CommandInvoker.cxx.

References fxArray, fxMutex, p, and TRACE.

Referenced by TGo4AnalysisClient::Constructor(), TGo4Analysis::TGo4Analysis(), TGo4ExampleApplication::TGo4ExampleApplication(), TGo4HistogramServer::TGo4HistogramServer(), TGo4Master::TGo4Master(), TGo4ServerTask::TGo4ServerTask(), TGo4Slave::TGo4Slave(), and TGo4Task::TGo4Task().

void TGo4CommandInvoker::Invoke TGo4Command   com [virtual]
 

Definition at line 90 of file TGo4CommandInvoker.cxx.

References TGo4Log::Debug(), TGo4Command::ExeCom(), fxMutex, TGo4Command::GetMode(), TGo4Command::GetProtection(), TGo4Command::GetReceiverName(), Lookup(), TGo4Command::RefuseCom(), and TGo4Command::SetReceiver().

Referenced by TGo4Analysis::Process(), TGo4MainRunnable::Run(), TGo4LocalCommandRunnable::Run(), and TGo4AnalysisMainRunnable::Run().

void TGo4CommandInvoker::Invoke   [virtual]
 

Definition at line 105 of file TGo4CommandInvoker.cxx.

References TGo4Command::ExeCom(), fxCommand, fxMutex, TGo4Command::GetReceiverName(), Lookup(), TGo4Command::SetReceiver(), and TRACE.

TGo4CommandReceiver * TGo4CommandInvoker::Lookup const char *    name [static, protected]
 

Definition at line 64 of file TGo4CommandInvoker.cxx.

References fxArray, TGo4Pair::GetReceiver(), and TRACE.

Referenced by Invoke().


Member Data Documentation

TGo4Command* TGo4CommandInvoker::fxCommand [private]
 

Definition at line 58 of file TGo4CommandInvoker.h.

Referenced by Invoke(), TGo4CommandInvoker(), and ~TGo4CommandInvoker().

TGo4CommandInvoker * TGo4CommandInvoker::fxInstance = 0 [static, private]
 

Definition at line 46 of file TGo4CommandInvoker.cxx.

Referenced by Instance().

TObjArray * TGo4CommandInvoker::fxArray = 0 [static, private]
 

Definition at line 47 of file TGo4CommandInvoker.cxx.

Referenced by Lookup(), Register(), TGo4CommandInvoker(), and ~TGo4CommandInvoker().

TMutex * TGo4CommandInvoker::fxMutex = 0 [static, private]
 

Definition at line 45 of file TGo4CommandInvoker.cxx.

Referenced by Invoke(), Register(), and TGo4CommandInvoker().


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