Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes

TGo4ExampleClient Class Reference

#include <TGo4ExampleClient.h>

Inheritance diagram for TGo4ExampleClient:
TGo4ClientTask TGo4Task TGo4ThreadManager TGo4CommandReceiver

List of all members.

Public Member Functions

 TGo4ExampleClient (const char *name, const char *host="localhost", UInt_t negport=0, Bool_t blockingmode=kTRUE)
virtual ~TGo4ExampleClient ()
TGo4ExampleApplicationGetApplication ()
virtual void Start ()
virtual void Stop ()
virtual TGo4TaskStatusCreateStatus ()

Static Public Attributes

static const char * fgcMAINTHREAD = "MAIN-"
static const char * fgcWATCHTHREAD = "WATCH-"

Protected Member Functions

virtual void UpdateStatus (TGo4ClientStatus *state)

Private Member Functions

 TGo4ExampleClient ()

Private Attributes

TGo4ExampleApplicationfxApplication
TString fcMainName
TString fcWatchName

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 29 of file TGo4ExampleClient.h.


Constructor & Destructor Documentation

TGo4ExampleClient::TGo4ExampleClient ( const char *  name,
const char *  host = "localhost",
UInt_t  negport = 0,
Bool_t  blockingmode = kTRUE 
)
TGo4ExampleClient::~TGo4ExampleClient (  )  [virtual]
TGo4ExampleClient::TGo4ExampleClient (  )  [private]

Member Function Documentation

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 58 of file TGo4ExampleClient.cxx.

References GO4TRACE, and UpdateStatus().

TGo4ExampleApplication * TGo4ExampleClient::GetApplication (  ) 
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 84 of file TGo4ExampleClient.cxx.

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

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 76 of file TGo4ExampleClient.cxx.

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

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 66 of file TGo4ExampleClient.cxx.

References fcMainName, fcWatchName, GetApplication(), GetHistogram(), GO4TRACE, TGo4ExampleClientStatus::SetHistoStatus(), and TGo4ExampleClientStatus::SetNames().

Referenced by CreateStatus().


Member Data Documentation

TString TGo4ExampleClient::fcMainName [private]

Remember name of main thread

Definition at line 80 of file TGo4ExampleClient.h.

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

TString TGo4ExampleClient::fcWatchName [private]

Remember name of watch thread

Definition at line 83 of file TGo4ExampleClient.h.

Referenced by TGo4ExampleClient(), and UpdateStatus().

const char * TGo4ExampleClient::fgcMAINTHREAD = "MAIN-" [static]

Suffix for main thread name

Definition at line 46 of file TGo4ExampleClient.h.

Referenced by TGo4ExampleClient().

const char * TGo4ExampleClient::fgcWATCHTHREAD = "WATCH-" [static]

Suffix for watch thread name

Definition at line 49 of file TGo4ExampleClient.h.

Referenced by TGo4ExampleClient().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines