v2.10-0 (21000JUN2005)

Go4CommandsBase
Class TGo4CommandInvoker


class TGo4CommandInvoker
derived from TObject

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


Field Summary
 private static TObjArray*fxArray
           
 private TGo4Command*fxCommand
           
 private static TGo4CommandInvoker*fxInstance
           
 private static TMutex*fxMutex
           

Constructor Summary
 protected TGo4CommandInvoker()
           

Destructor Summary
 virtual synchronized ~TGo4CommandInvoker()
           

Method Summary
 static TGo4CommandInvoker*Instance()
           
 virtual voidInvoke(TGo4Command* com)
           
 virtual voidInvoke()
           
 protected static TGo4CommandReceiver*Lookup(const char * name)
           
 static voidRegister(const char * name, TGo4CommandReceiver* p)
           

Field Detail

fxArray

private static TObjArray* fxArray

fxCommand

private TGo4Command* fxCommand
link aggregation

fxInstance

private static TGo4CommandInvoker* fxInstance

fxMutex

private static TMutex* fxMutex
Constructor Detail

TGo4CommandInvoker

protected TGo4CommandInvoker()
Method Detail

~TGo4CommandInvoker

public virtual synchronized ~TGo4CommandInvoker()
Method Detail

Instance

public static TGo4CommandInvoker* Instance()

Invoke

public virtual void Invoke(TGo4Command* com)

Invoke

public virtual void Invoke()

Lookup

protected static TGo4CommandReceiver* Lookup(const char * name)

Register

public static void Register(const char * name, TGo4CommandReceiver* p)

Association Links

to Class TGo4Command

Type aggregation

to Class TGo4CommandInvoker

to Class TObjArray

to Class TMutex


J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005