RSB  0.7.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rsb::patterns::WaitingEventHandler Class Reference
Inheritance diagram for rsb::patterns::WaitingEventHandler:
Inheritance graph
Collaboration diagram for rsb::patterns::WaitingEventHandler:
Collaboration graph

Public Types

typedef boost::recursive_mutex MutexType

Public Member Functions

 WaitingEventHandler (LoggerPtr logger)
string getClassName () const
MutexTypegetMutex ()
void handle (EventPtr event)
 Handle event.
void addCall (const EventId &requestId, RemoteServer::FuturePtr result)
- Public Member Functions inherited from rsb::Handler
std::set< std::string > getMethods () const
 Returns the desired set of methods this handler can handle.
bool acceptsMethod (const std::string &method) const

Private Attributes

LoggerPtr logger
MutexType mutex
map< EventId,
RemoteServer::FuturePtr
inprogress

Additional Inherited Members

- Protected Member Functions inherited from rsb::Handler
 Handler (const std::string &method="")
 Creates a new handler that only accepts events for the specified method.
 Handler (const std::set< std::string > &methods)
 Creates a new handler that only accepts events with the specified methods.
virtual ~Handler ()

Detailed Description

Definition at line 54 of file RemoteServer.cpp.

Member Typedef Documentation

typedef boost::recursive_mutex rsb::patterns::WaitingEventHandler::MutexType

Definition at line 56 of file RemoteServer.cpp.

Constructor & Destructor Documentation

rsb::patterns::WaitingEventHandler::WaitingEventHandler ( LoggerPtr  logger)
inline

Definition at line 65 of file RemoteServer.cpp.

Member Function Documentation

void rsb::patterns::WaitingEventHandler::addCall ( const EventId requestId,
RemoteServer::FuturePtr  result 
)
inline

Definition at line 108 of file RemoteServer.cpp.

string rsb::patterns::WaitingEventHandler::getClassName ( ) const
inline

Reimplemented from rsb::Handler.

Definition at line 69 of file RemoteServer.cpp.

MutexType& rsb::patterns::WaitingEventHandler::getMutex ( )
inline

Definition at line 73 of file RemoteServer.cpp.

void rsb::patterns::WaitingEventHandler::handle ( EventPtr  event)
inlinevirtual

Handle event.

Parameters
eventThe event that should be handled.

Implements rsb::eventprocessing::Handler.

Definition at line 77 of file RemoteServer.cpp.

Member Data Documentation

map<EventId, RemoteServer::FuturePtr> rsb::patterns::WaitingEventHandler::inprogress
private

Definition at line 62 of file RemoteServer.cpp.

LoggerPtr rsb::patterns::WaitingEventHandler::logger
private

Definition at line 58 of file RemoteServer.cpp.

MutexType rsb::patterns::WaitingEventHandler::mutex
private

Definition at line 60 of file RemoteServer.cpp.


The documentation for this class was generated from the following file: