NCBI C++ ToolKit
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CPrimeNumberClient Class Reference

Search Toolkit Book for CPrimeNumberClient

CPrimeNumberClient. More...

#include <gui/wx_demo/test_client.hpp>

+ Inheritance diagram for CPrimeNumberClient:
+ Collaboration diagram for CPrimeNumberClient:

Public Member Functions

 CPrimeNumberClient (CAppJobDispatcher &disp)
 CPrimeNumberClient. More...
 
void StartJobs (int n)
 
void CancelJobs ()
 
void CheckStatus ()
 
void CheckProgress ()
 
 CPrimeNumberClient (CAppJobDispatcher &disp)
 
void StartJobs (int n)
 
void CancelJobs ()
 
void CheckStatus ()
 
void CheckProgress ()
 
- Public Member Functions inherited from CEventHandler
 CEventHandler ()
 CEventHandler. More...
 
virtual ~CEventHandler ()
 
virtual void AddListener (CEventHandler *listener, int pool_name=ePool_Default)
 Add a listener. More...
 
virtual void RemoveListener (CEventHandler *listener)
 Remove a listener. More...
 
virtual void RemoveAllListeners (void)
 
virtual bool HasListener (CEventHandler *listener, int pool_name=ePool_Default) const
 returns "true" if the given listener belongs to the specified pool More...
 
virtual const TListenersGetListeners (int pool_name=ePool_Default) const
 returns a set of listeners fro the specified pool More...
 
virtual bool OnEvent (CEvent *evt)
 Processes en event. Returns "true" if event has been processed. More...
 
virtual bool Dispatch (CEvent *evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)
 Dispatches an event to the listeners (but does not handle it). More...
 
virtual bool Send (CEvent *evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)
 Sends an event synchronously. More...
 
virtual bool Send (CEvent *evt, int pool_name)
 
void Post (CRef< CEvent > evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)
 Handles an event asynchronously (process and/or dispatch). More...
 

Protected Member Functions

 DECLARE_EVENT_MAP ()
 
void OnAppJobNotification (CEvent *evt)
 Job Dispatcher notification handler. More...
 
 DECLARE_EVENT_MAP ()
 
void OnAppJobNotification (CEvent *evt)
 Job Dispatcher notification handler. More...
 
- Protected Member Functions inherited from CEventHandler
virtual const SEvtMapGetEventMap () const
 
void x_DeclareDead ()
 Removes itself unavailable for async event delivery. More...
 
void x_AddListenerToPool (CEventHandler *listener, int pool_name)
 

Protected Attributes

CAppJobDispatcherm_Disp
 
int m_LastNumber
 
set< intm_JobIDs
 
- Protected Attributes inherited from CEventHandler
TPools m_Pools
 

Additional Inherited Members

- Public Types inherited from CEventHandler
enum  EDispatch { eDispatch_SelfOnly , eDispatch_AllHandlers , eDispatch_FirstHandler , eDispatch_Default = eDispatch_AllHandlers }
 enum controlling dispatching strategies More...
 
enum  EPoolName {
  ePool_Default = 0 , ePool_Parent , ePool_Child , ePool_Sibling ,
  ePool_NextAvailable
}
 Identifiers for standard pools. More...
 
typedef vector< CEventHandler * > TListeners
 
typedef map< int, TListenersTPools
 
typedef list< AutoPtr< SPostRequest > > TPostRequests
 
typedef std::map< CEventHandler *, intTHandlerToCount
 
typedef void(* FOnPostCallback) ()
 
- Static Public Member Functions inherited from CEventHandler
static bool HandlePostRequest ()
 
static void ClearPostQueue ()
 erases all events from the queue More...
 
static void DestroyPostQueue ()
 
- Static Protected Attributes inherited from CEventHandler
static const SEvtMap sm_EvtMap
 

Detailed Description

CPrimeNumberClient.

Definition at line 78 of file test_client.hpp.

Constructor & Destructor Documentation

◆ CPrimeNumberClient() [1/2]

CPrimeNumberClient::CPrimeNumberClient ( CAppJobDispatcher disp)

CPrimeNumberClient.

Definition at line 217 of file test_client.cpp.

◆ CPrimeNumberClient() [2/2]

CPrimeNumberClient::CPrimeNumberClient ( CAppJobDispatcher disp)

Member Function Documentation

◆ CancelJobs() [1/2]

void CPrimeNumberClient::CancelJobs ( )

Definition at line 247 of file test_client.cpp.

Referenced by CAppJobTestApplication::Run().

◆ CancelJobs() [2/2]

void CPrimeNumberClient::CancelJobs ( )

◆ CheckProgress() [1/2]

void CPrimeNumberClient::CheckProgress ( )

◆ CheckProgress() [2/2]

void CPrimeNumberClient::CheckProgress ( )

◆ CheckStatus() [1/2]

void CPrimeNumberClient::CheckStatus ( void  )

◆ CheckStatus() [2/2]

void CPrimeNumberClient::CheckStatus ( )

◆ DECLARE_EVENT_MAP() [1/2]

CPrimeNumberClient::DECLARE_EVENT_MAP ( )
protected

◆ DECLARE_EVENT_MAP() [2/2]

CPrimeNumberClient::DECLARE_EVENT_MAP ( )
protected

◆ OnAppJobNotification() [1/2]

void CPrimeNumberClient::OnAppJobNotification ( CEvent evt)
protected

Job Dispatcher notification handler.

◆ OnAppJobNotification() [2/2]

void CPrimeNumberClient::OnAppJobNotification ( CEvent evt)
protected

Job Dispatcher notification handler.

◆ StartJobs() [1/2]

void CPrimeNumberClient::StartJobs ( int  n)

◆ StartJobs() [2/2]

void CPrimeNumberClient::StartJobs ( int  n)

Member Data Documentation

◆ m_Disp

CAppJobDispatcher & CPrimeNumberClient::m_Disp
protected

Definition at line 96 of file test_client.hpp.

Referenced by CheckProgress(), CheckStatus(), and StartJobs().

◆ m_JobIDs

set< int > CPrimeNumberClient::m_JobIDs
protected

Definition at line 98 of file test_client.hpp.

Referenced by CheckProgress(), CheckStatus(), and StartJobs().

◆ m_LastNumber

int CPrimeNumberClient::m_LastNumber
protected

Definition at line 97 of file test_client.hpp.


The documentation for this class was generated from the following files:
Modified on Sat May 18 11:35:57 2024 by modify_doxy.py rev. 669887