Public Member Functions | Protected Member Functions | Protected Attributes | Friends
scip2::Connection Class Reference

#include <connection.h>

Inheritance diagram for scip2::Connection:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Connection ()
void registerCloseCallback (CallbackClose cb)
void registerConnectCallback (CallbackConnect cb)
void registerReceiveCallback (CallbackReceive cb)
virtual void send (const std::string &, CallbackSend=CallbackSend())=0
virtual void spin ()=0
virtual void startWatchdog (const boost::posix_time::time_duration &)=0
virtual void stop ()=0

Protected Member Functions

void close ()
void connect ()
void receive (boost::asio::streambuf &buf, const boost::posix_time::ptime &time_read)

Protected Attributes

CallbackClose cb_close_
CallbackConnect cb_connect_
CallbackReceive cb_receive_

Friends

class Protocol

Detailed Description

Definition at line 28 of file connection.h.


Constructor & Destructor Documentation

Definition at line 82 of file connection.h.


Member Function Documentation

void scip2::Connection::close ( ) [inline, protected]

Definition at line 44 of file connection.h.

void scip2::Connection::connect ( ) [inline, protected]

Definition at line 49 of file connection.h.

void scip2::Connection::receive ( boost::asio::streambuf &  buf,
const boost::posix_time::ptime &  time_read 
) [inline, protected]

Definition at line 54 of file connection.h.

void scip2::Connection::registerCloseCallback ( CallbackClose  cb) [inline]

Definition at line 70 of file connection.h.

void scip2::Connection::registerConnectCallback ( CallbackConnect  cb) [inline]

Definition at line 78 of file connection.h.

void scip2::Connection::registerReceiveCallback ( CallbackReceive  cb) [inline]

Definition at line 74 of file connection.h.

virtual void scip2::Connection::send ( const std::string &  ,
CallbackSend  = CallbackSend() 
) [pure virtual]

Implemented in scip2::ConnectionTcp.

virtual void scip2::Connection::spin ( ) [pure virtual]

Implemented in scip2::ConnectionTcp.

virtual void scip2::Connection::startWatchdog ( const boost::posix_time::time_duration &  ) [pure virtual]

Implemented in scip2::ConnectionTcp.

virtual void scip2::Connection::stop ( ) [pure virtual]

Implemented in scip2::ConnectionTcp.


Friends And Related Function Documentation

friend class Protocol [friend]

Definition at line 30 of file connection.h.


Member Data Documentation

CallbackClose scip2::Connection::cb_close_ [protected]

Definition at line 41 of file connection.h.

CallbackConnect scip2::Connection::cb_connect_ [protected]

Definition at line 40 of file connection.h.

CallbackReceive scip2::Connection::cb_receive_ [protected]

Definition at line 42 of file connection.h.


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


urg_stamped
Author(s): Atsushi Watanabe
autogenerated on Thu Jun 6 2019 18:59:52