RSB  0.19.0
rsb::introspection::QueryHandler Struct Reference
Inheritance diagram for rsb::introspection::QueryHandler:
Inheritance graph
Collaboration diagram for rsb::introspection::QueryHandler:
Collaboration graph

Public Member Functions

 QueryHandler (IntrospectionSender &sender)
 
void handle (EventPtr query)
 Handle event. More...
 
void handleSurvey (EventPtr query)
 
void handleRequest (EventPtr query)
 
void handlePing (EventPtr query)
 
void sendPong (const ParticipantInfo &participant, EventPtr)
 
- Public Member Functions inherited from rsb::Handler
std::set< std::string > getMethods () const
 Returns the desired set of methods this handler can handle. More...
 
bool acceptsMethod (const std::string &method) const
 

Public Attributes

IntrospectionSendersender
 

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. More...
 
 Handler (const std::set< std::string > &methods)
 Creates a new handler that only accepts events with the specified methods. More...
 
virtual ~Handler ()
 
std::string getClassName () const
 

Detailed Description

Definition at line 49 of file IntrospectionSender.cpp.

Constructor & Destructor Documentation

rsb::introspection::QueryHandler::QueryHandler ( IntrospectionSender sender)
inline

Definition at line 50 of file IntrospectionSender.cpp.

Member Function Documentation

void rsb::introspection::QueryHandler::handle ( EventPtr  event)
inlinevirtual

Handle event.

Parameters
eventThe event that should be handled.

Implements rsb::eventprocessing::Handler.

Definition at line 54 of file IntrospectionSender.cpp.

References handlePing(), handleRequest(), handleSurvey(), rsb::introspection::IntrospectionSender::logger, rsb::introspection::IntrospectionSender::mutex, and sender.

Here is the call graph for this function:

void rsb::introspection::QueryHandler::handlePing ( EventPtr  query)
inline

Definition at line 98 of file IntrospectionSender.cpp.

References rsb::introspection::IntrospectionSender::participants, sender, and sendPong().

Referenced by handle().

Here is the call graph for this function:

Here is the caller graph for this function:

void rsb::introspection::QueryHandler::handleRequest ( EventPtr  query)
inline

Definition at line 83 of file IntrospectionSender.cpp.

References rsb::introspection::IntrospectionSender::participants, sender, and rsb::introspection::IntrospectionSender::sendHello().

Referenced by handle().

Here is the call graph for this function:

Here is the caller graph for this function:

void rsb::introspection::QueryHandler::handleSurvey ( EventPtr  query)
inline

Definition at line 74 of file IntrospectionSender.cpp.

References rsb::introspection::IntrospectionSender::participants, sender, and rsb::introspection::IntrospectionSender::sendHello().

Referenced by handle().

Here is the call graph for this function:

Here is the caller graph for this function:

void rsb::introspection::QueryHandler::sendPong ( const ParticipantInfo participant,
EventPtr   
)
inline

Definition at line 107 of file IntrospectionSender.cpp.

References rsb::introspection::ParticipantInfo::getId(), rsb::introspection::IntrospectionSender::informer, and sender.

Referenced by handlePing().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

IntrospectionSender& rsb::introspection::QueryHandler::sender

Definition at line 115 of file IntrospectionSender.cpp.

Referenced by handle(), handlePing(), handleRequest(), handleSurvey(), and sendPong().


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