<<
"::OnEventReceipt(this="<<
this<<
81 ", ev="<< ev <<
"): received event id = "<< evt->
GetID());
106 void Fire(
intpool = ePool_Default)
108 TEventevent(TEvent::eEvent_First);
110m_Name <<
"::Fire(this="<<
this<<
111 "): firing "<< &event);
112FireEvent(&event, eDispatch_Default, pool);
117 TEventevent(TEvent::eEvent_First);
119m_Name <<
"::Fire(this="<<
this<<
120 "): firing "<< &event);
121FireEvent(&event, eDispatch_FirstHandler, pool);
128m_Name <<
"::OnEventReceipt(this="<<
this<<
129 ", ev="<< ev <<
"): received event id = "<< evt->
GetID());
149 virtual void Init(
void);
150 virtual int Run(
void);
151 virtual voidExit(
void);
161arg_desc->SetUsageContext(
GetArguments().GetProgramBasename(),
162 "Event dispatching test application");
CEvent - generic event implementation TODO TODO - Attachments.
virtual int Run(void)
Run the application.
virtual void Exit(void)
Cleanup on application exit.
virtual void Init(void)
Initialize the application.
void OnEventReceipt(CEvent *ev)
void Fire(int pool=ePool_Default)
void FireFirst(int pool=ePool_Default)
CTestDispatcher(const string &name)
CTestReceiver(const string &name)
void OnEventReceipt(CEvent *ev)
virtual void FireEvent(CEvent *evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)
virtual const CArgs & GetArgs(void) const
Get parsed command line arguments.
int AppMain(int argc, const char *const *argv, const char *const *envp=0, EAppDiagStream diag=eDS_Default, const char *conf=NcbiEmptyCStr, const string &name=NcbiEmptyString)
Main function (entry point) for the NCBI application.
virtual void SetupArgDescriptions(CArgDescriptions *arg_desc)
Setup the command line argument descriptions.
const CNcbiArguments & GetArguments(void) const
Get the application's cached unprocessed command-line arguments.
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void SetDiagStream(CNcbiOstream *os, bool quick_flush=true, FDiagCleanup cleanup=0, void *cleanup_data=0, const string &stream_name="")
Set diagnostic stream.
void Warning(CExceptionArgs_Base &args)
const TEventID GetID(void) const
Inline Implementation.
TEventID m_ID
Event class - to speed up avoiding extra dynamic casts.
#define ON_EVENT(type, id, handler)
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).
#define END_EVENT_MAP()
Ends definition of Command Map.
#define BEGIN_EVENT_MAP(thisClass, baseClass)
Begins definition of Command Map for CEventHandler-derived class.
EDispatch
enum controlling dispatching strategies
virtual void AddListener(CEventHandler *listener, int pool_name=ePool_Default)
Add a listener.
@ eDispatch_Default
dispatch until handled at least by one handler
void Run(void)
Enter the main loop.
Magic spell ;-) needed for some weird compilers... very empiric.
Defines the CNcbiApplication and CAppException classes for creating NCBI applications.
Defines command line argument related classes.
Defines unified interface to application:
int NcbiSys_main(int argc, ncbi::TXChar *argv[])
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4