NCBI C++ ToolKit
Classes | Macros | Typedefs
event_handler.hpp File Reference
#include <map>
#include <functional>
#include <corelib/ncbiexpt.hpp>
#include <corelib/ncbimtx.hpp>
#include <gui/utils/event.hpp>
+ Include dependency graph for event_handler.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  std::hash< ncbi::CEventHandler * >
 
struct  SEvtMapEntry
 Command map entry. More...
 
struct  SEvtMap
 Command Map. More...
 
class  CEventHandler
 CEventHandler. More...
 
struct  CEventHandler::SPostRequest
 
class  CEventHandler::CPostQueue
 CPostQueue - singleton queue for asynchronous events all methods are synchronized. More...
 

Macros

#define DECLARE_EVENT_MAP()
 
#define BEGIN_EVENT_MAP(thisClass, baseClass)
 Begins definition of Command Map for CEventHandler-derived class. More...
 
#define END_EVENT_MAP()
 Ends definition of Command Map. More...
 
#define ON_EVENT(type, id, handler)   ON_MESSAGE(type, id, handler)
 Adds a Message as Command Map entry. More...
 
#define ON_MESSAGE(type, id, handler)   { ncbi::CEvent::eEvent_Message, typeid(type).name(), id, id, (FEventHandler) handler },
 
#define ON_EVENT_EX(cls, type, id, handler)   { cls, typeid(type).name(), id, id, (FEventHandler) handler },
 Adds a Command Map entry mapping given command id to given command handler. More...
 
#define ON_CMD(type, id, handler)   { ncbi::CEvent::eEvent_Command, typeid(type).name(), id, id, (FEventHandler) ((FCommandHandler) handler) },
 Adds a Command as Command Map entry. More...
 
#define ON_CMD_RANGE(type, id, id_last, handler)   { ncbi::CEvent::eEvent_Command, typeid(type).name(), id, id_last, (FEventHandler) ((FCommandRangeHandler) handler) },
 Adds a Command Range as Command Map entry. More...
 
#define ON_CMD_UPDATE(type, id, handler)   { CEvent::eEvent_CommandUpdate, typeid(type).name(), id, id, (FEventHandler) ((FCommandUpdateHandler)handler) },
 Adds a Update Command as Command Map entry. More...
 
#define ON_CMD_UPDATE_RANGE(type, id, id_last, handler)   { CEvent::eEvent_CommandUpdate, typeid(type).name(), id, id_last, (FEventHandler) ((FCommandUpdateHandler)handler) },
 Adds a Update Command Range as Command Map entry. More...
 
#define ON_EVENT_RANGE(type, id, id_last, handler)   ON_MESSAGE_RANGE(type, id, id_last, handler)
 Adds a Command Map entry mapping given command range to given command handler. More...
 
#define ON_MESSAGE_RANGE(type, id, id_last, handler)   { CEvent::eEvent_Message, typeid(type).name(), id, id_last, (FEventHandler) handler },
 Adds a Command Map entry mapping given message range to given command handler. More...
 

Typedefs

typedef int TCmdID
 
typedef void(CEventHandler::* FEventHandler) (CEvent *)
 event handler More...
 
typedef void(CEventHandler::* FCommandHandler) (void)
 command handler More...
 
typedef void(CEventHandler::* FCommandRangeHandler) (CEvent::TEventID)
 command range handler More...
 
typedef void(CEventHandler::* FCommandUpdateHandler) (IEventAttachment *)
 update command handler More...
 
Modified on Wed Aug 24 18:30:44 2016 by modify_doxy.py rev. 506947