Public Member Functions | Private Member Functions | Private Attributes | List of all members
Control Class Reference

#include <device.h>

Inheritance diagram for Control:
Inheritance graph
[legend]

Public Member Functions

 Control (boost::asio::io_service &io_service, const std::string &remote_device_ip)
 
bool initStream ()
 
bool open ()
 
bool startStream ()
 
bool stopStream ()
 
- Public Member Functions inherited from TCP_Session
virtual void close ()
 
virtual bool connect (const std::string &path, const std::string &service)
 
virtual bool connect (const boost::asio::ip::tcp::resolver::endpoint_type &ep)
 
boost::asio::ip::tcp::socket & socket ()
 getter for socket connection More...
 
 TCP_Session (boost::asio::io_service &io_service, SIG_ON_DATA &cb)
 
virtual ~TCP_Session ()
 
- Public Member Functions inherited from Any_Session
 Any_Session (SIG_ON_DATA &cb)
 every session needs a data handler More...
 
virtual ~Any_Session ()
 

Private Member Functions

void on_data (const char *data, const size_t size, Any_Session *writer)
 

Private Attributes

Any_Session::SIG_ON_DATA on_data_
 signal handler for incoming data More...
 
const std::string remote_device_ip_
 
bool stream_started_
 

Additional Inherited Members

- Public Types inherited from Any_Session
typedef boost::signals2::signal< void(const char *data, const size_t size, Any_Session *writer)> SIG_ON_DATA
 incoming data with "data" of size "size" and handler to write back ("writer") More...
 
- Protected Types inherited from TCP_Session
enum  { max_length = 4096 }
 
- Protected Member Functions inherited from TCP_Session
virtual void write (const std::string &buffer)
 write async. to TCP socket (implement abstract) More...
 
virtual void write (const std::vector< char > &buffer)
 
virtual void write (const boost::asio::mutable_buffers_1 &buffer)
 write async. to TCP socket More...
 
- Protected Attributes inherited from TCP_Session
char data_ [max_length]
 data buffer of max. length More...
 
boost::mutex mtx_
 lock operations More...
 
boost::asio::ip::tcp::socket socket_
 TCP socket. More...
 
- Protected Attributes inherited from Any_Session
SIG_ON_DATAon_data_
 signal handler for incoming data More...
 

Detailed Description

Definition at line 74 of file device.h.

Constructor & Destructor Documentation

Control::Control ( boost::asio::io_service &  io_service,
const std::string &  remote_device_ip 
)
inline

Definition at line 84 of file device.h.

Member Function Documentation

bool Control::initStream ( )
inline

Definition at line 108 of file device.h.

void Control::on_data ( const char *  data,
const size_t  size,
Any_Session writer 
)
inlineprivate

Definition at line 79 of file device.h.

bool Control::open ( )
inline

Definition at line 93 of file device.h.

bool Control::startStream ( )
inline

Definition at line 122 of file device.h.

bool Control::stopStream ( )
inline

Definition at line 135 of file device.h.

Member Data Documentation

Any_Session::SIG_ON_DATA Control::on_data_
private

signal handler for incoming data

Definition at line 75 of file device.h.

const std::string Control::remote_device_ip_
private

Definition at line 76 of file device.h.

bool Control::stream_started_
private

Definition at line 77 of file device.h.


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


sick_visionary_t_driver
Author(s): Joshua Hampp
autogenerated on Mon Jun 10 2019 15:09:27