Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
scip2::Protocol Class Reference

#include <protocol.h>

Public Types

using Ptr = std::shared_ptr< Protocol >
 

Public Member Functions

 Protocol (Connection::Ptr connection)
 
template<typename TResponse >
void registerCallback (typename TResponse::Callback cb)
 
void sendCommand (const std::string &command, Connection::CallbackSend cb=Connection::CallbackSend())
 

Protected Member Functions

void cbReceive (boost::asio::streambuf &buf, const boost::posix_time::ptime &time_read)
 

Protected Attributes

Connection::Ptr connection_
 
ResponseProcessor response_processor_
 

Detailed Description

Definition at line 31 of file protocol.h.

Member Typedef Documentation

using scip2::Protocol::Ptr = std::shared_ptr<Protocol>

Definition at line 65 of file protocol.h.

Constructor & Destructor Documentation

scip2::Protocol::Protocol ( Connection::Ptr  connection)
inlineexplicit

Definition at line 67 of file protocol.h.

Member Function Documentation

void scip2::Protocol::cbReceive ( boost::asio::streambuf &  buf,
const boost::posix_time::ptime &  time_read 
)
inlineprotected

Definition at line 37 of file protocol.h.

template<typename TResponse >
void scip2::Protocol::registerCallback ( typename TResponse::Callback  cb)
inline

Definition at line 82 of file protocol.h.

void scip2::Protocol::sendCommand ( const std::string &  command,
Connection::CallbackSend  cb = Connection::CallbackSend() 
)
inline

Definition at line 74 of file protocol.h.

Member Data Documentation

Connection::Ptr scip2::Protocol::connection_
protected

Definition at line 34 of file protocol.h.

ResponseProcessor scip2::Protocol::response_processor_
protected

Definition at line 35 of file protocol.h.


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


urg_stamped
Author(s): Atsushi Watanabe
autogenerated on Thu Jun 6 2019 19:55:59