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

TGo4ExampleClient Class Reference

Example class for a client application; this may be the analysis client later on which keeps the analysis class itself as aggregate and provides threads to work on analysis. More...

#include <TGo4ExampleClient.h>

Inheritance diagram for TGo4ExampleClient:

TGo4ClientTask TGo4Task TGo4ThreadManager TGo4CommandReceiver List of all members.

Public Methods

 TGo4ExampleClient (const char *name, const char *host="localhost", UInt_t negport=0, Bool_t blockingmode=kTRUE)
virtual ~TGo4ExampleClient ()
TGo4ExampleApplicationGetApplication ()
virtual void Start ()
 General start method of client application to be called from remote command; should be re-implemented by application. More...

virtual void Stop ()
 General stop method of client application to be called from remote command; should be re-implemented by application. More...

virtual TGo4TaskStatusCreateStatus ()
 create a status object with information on the current client state. More...


Static Public Attributes

const Text_t fgcMAINTHREAD [] = "MAIN-"
 Suffix for main thread name. More...

const Text_t fgcWATCHTHREAD [] = "WATCH-"
 Suffix for watch thread name. More...


Protected Methods

virtual void UpdateStatus (TGo4ClientStatus *state)
 method needed by method CreateStatus of any status subclasses to set the values of the clienttask specific part of the status object. More...


Private Methods

 TGo4ExampleClient ()

Private Attributes

TGo4ExampleApplicationfxApplication
  More...

Text_t * fcMainName
 Remember name of main thread. More...

Text_t * fcWatchName
 Remember name of watch thread. More...


Detailed Description

Example class for a client application; this may be the analysis client later on which keeps the analysis class itself as aggregate and provides threads to work on analysis.

Definition at line 30 of file TGo4ExampleClient.h.


Constructor & Destructor Documentation

TGo4ExampleClient::TGo4ExampleClient const char *    name,
const char *    host = "localhost",
UInt_t    negport = 0,
Bool_t    blockingmode = kTRUE
 

Definition at line 32 of file TGo4ExampleClient.cxx.

References TGo4Log::Debug(), fcMainName, fcWatchName, fgcMAINTHREAD, fgcWATCHTHREAD, TGo4ThreadManager::fguTEXTLENGTH, fxApplication, TGo4ThreadManager::fxWorkHandler, TGo4ClientTask::GetDataQueue(), TGo4ClientTask::GetTaskHandler(), TGo4ThreadManager::Launch(), TGo4ThreadHandler::NewThread(), TGo4Task::SetMaster(), and TRACE.

TGo4ExampleClient::~TGo4ExampleClient   [virtual]
 

Definition at line 57 of file TGo4ExampleClient.cxx.

References TGo4ThreadHandler::CancelAll(), fcMainName, fcWatchName, fxApplication, TGo4ThreadManager::fxWorkHandler, and TRACE.

TGo4ExampleClient::TGo4ExampleClient   [private]
 


Member Function Documentation

TGo4ExampleApplication * TGo4ExampleClient::GetApplication  
 

Definition at line 100 of file TGo4ExampleClient.cxx.

References fxApplication, and TRACE.

Referenced by UpdateStatus().

void TGo4ExampleClient::Start   [virtual]
 

General start method of client application to be called from remote command; should be re-implemented by application.

Reimplemented from TGo4Task.

Definition at line 92 of file TGo4ExampleClient.cxx.

References TGo4Log::Debug(), fcMainName, TGo4ThreadManager::fxWorkHandler, TGo4ThreadHandler::Start(), and TRACE.

void TGo4ExampleClient::Stop   [virtual]
 

General stop method of client application to be called from remote command; should be re-implemented by application.

Reimplemented from TGo4Task.

Definition at line 84 of file TGo4ExampleClient.cxx.

References TGo4Log::Debug(), fcMainName, TGo4ThreadManager::fxWorkHandler, TGo4ThreadHandler::Stop(), and TRACE.

void TGo4ExampleClient::UpdateStatus TGo4ClientStatus   state [protected, virtual]
 

method needed by method CreateStatus of any status subclasses to set the values of the clienttask specific part of the status object.

Definition at line 74 of file TGo4ExampleClient.cxx.

References fcMainName, fcWatchName, GetApplication(), GetHistogram(), TGo4ExampleClientStatus::SetHistoStatus(), TGo4ExampleClientStatus::SetNames(), TRACE, and TGo4ClientTask::UpdateStatus().

Referenced by CreateStatus().

TGo4TaskStatus * TGo4ExampleClient::CreateStatus   [virtual]
 

create a status object with information on the current client state.

this object may be sent to the server or may be used to restore current status by memento mechanism. Overridden from superclass

Reimplemented from TGo4ClientTask.

Definition at line 66 of file TGo4ExampleClient.cxx.

References TRACE, and UpdateStatus().


Member Data Documentation

const Text_t TGo4ExampleClient::fgcMAINTHREAD = "MAIN-" [static]
 

Suffix for main thread name.

Definition at line 29 of file TGo4ExampleClient.cxx.

Referenced by TGo4ExampleClient().

const Text_t TGo4ExampleClient::fgcWATCHTHREAD = "WATCH-" [static]
 

Suffix for watch thread name.

Definition at line 28 of file TGo4ExampleClient.cxx.

Referenced by TGo4ExampleClient().

TGo4ExampleApplication* TGo4ExampleClient::fxApplication [private]
 

Definition at line 78 of file TGo4ExampleClient.h.

Referenced by GetApplication(), TGo4ExampleClient(), and ~TGo4ExampleClient().

Text_t* TGo4ExampleClient::fcMainName [private]
 

Remember name of main thread.

Definition at line 81 of file TGo4ExampleClient.h.

Referenced by Start(), Stop(), TGo4ExampleClient(), UpdateStatus(), and ~TGo4ExampleClient().

Text_t* TGo4ExampleClient::fcWatchName [private]
 

Remember name of watch thread.

Definition at line 84 of file TGo4ExampleClient.h.

Referenced by TGo4ExampleClient(), UpdateStatus(), and ~TGo4ExampleClient().


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