Public Member Functions | Private Member Functions | Private Attributes
vssp::VsspDriver Class Reference

#include <vssp.h>

List of all members.

Public Member Functions

void connect (const char *ip, const unsigned int port, decltype(cb_connect_) cb)
bool poll ()
void receivePackets ()
void registerAuxCallback (decltype(cb_aux_) cb)
void registerCallback (decltype(cb_point_) cb)
void registerErrorCallback (decltype(cb_error_) cb)
void registerPingCallback (decltype(cb_ping_) cb)
void requestAuxData (const bool start=1)
void requestData (const bool intensity=1, const bool start=1)
void requestHorizontalTable ()
void requestPing ()
void requestVerticalTable ()
void setInterlace (const int itl)
void setTimeout (const double to)
 VsspDriver ()

Private Member Functions

void onConnect (const boost::system::error_code &error)
void onRead (const boost::system::error_code &error)
void onSend (const boost::system::error_code &error, boost::shared_ptr< std::string > data)
void onTimeout (const boost::system::error_code &error)
void onTimeoutConnect (const boost::system::error_code &error)
template<class DATA_TYPE >
void rangeToXYZ (const vssp::RangeHeader &RangeHeader, const vssp::RangeIndex &RangeIndex, const boost::shared_array< const uint16_t > &index, const boost::shared_array< vssp::XYZI > &points)
void send (const std::string cmd)

Private Attributes

AuxFactorArray aux_factor_
boost::asio::streambuf buf_
boost::function< void(const
vssp::Header &, const
vssp::AuxHeader &, const
boost::shared_array< vssp::Aux >
&, const
boost::function< void(bool)> cb_connect_
boost::function< void(const
vssp::Header &, const
std::string &)> 
boost::function< void(const
vssp::Header &, const
boost::chrono::microseconds &)> 
boost::function< void(const
vssp::Header &, const
vssp::RangeHeader &, const
vssp::RangeIndex &, const
boost::shared_array< uint16_t >
&, const boost::shared_array
< vssp::XYZI > &, const
bool closed_
boost::asio::io_service io_service_
boost::asio::ip::tcp::socket socket_
boost::shared_array< const double > tbl_h_
bool tbl_h_loaded_
boost::shared_array< const
bool tbl_v_loaded_
< boost::chrono::system_clock > 
double timeout_
boost::asio::deadline_timer timer_

Detailed Description

Definition at line 51 of file vssp.h.

Constructor & Destructor Documentation

Definition at line 78 of file vssp.h.

Member Function Documentation

void vssp::VsspDriver::connect ( const char *  ip,
const unsigned int  port,
decltype(cb_connect_ cb 
) [inline]

Definition at line 95 of file vssp.h.

void vssp::VsspDriver::onConnect ( const boost::system::error_code &  error) [inline, private]

Definition at line 197 of file vssp.h.

void vssp::VsspDriver::onRead ( const boost::system::error_code &  error) [inline, private]

Definition at line 237 of file vssp.h.

void vssp::VsspDriver::onSend ( const boost::system::error_code &  error,
boost::shared_ptr< std::string >  data 
) [inline, private]

Definition at line 208 of file vssp.h.

void vssp::VsspDriver::onTimeout ( const boost::system::error_code &  error) [inline, private]

Definition at line 189 of file vssp.h.

void vssp::VsspDriver::onTimeoutConnect ( const boost::system::error_code &  error) [inline, private]

Definition at line 181 of file vssp.h.

bool vssp::VsspDriver::poll ( ) [inline]

Definition at line 161 of file vssp.h.

template<class DATA_TYPE >
void vssp::VsspDriver::rangeToXYZ ( const vssp::RangeHeader RangeHeader,
const vssp::RangeIndex RangeIndex,
const boost::shared_array< const uint16_t > &  index,
const boost::shared_array< vssp::XYZI > &  points 
) [inline, private]

Definition at line 217 of file vssp.h.

Definition at line 151 of file vssp.h.

void vssp::VsspDriver::registerAuxCallback ( decltype(cb_aux_ cb) [inline]

Definition at line 112 of file vssp.h.

void vssp::VsspDriver::registerCallback ( decltype(cb_point_ cb) [inline]

Definition at line 108 of file vssp.h.

void vssp::VsspDriver::registerErrorCallback ( decltype(cb_error_ cb) [inline]

Definition at line 104 of file vssp.h.

void vssp::VsspDriver::registerPingCallback ( decltype(cb_ping_ cb) [inline]

Definition at line 116 of file vssp.h.

void vssp::VsspDriver::requestAuxData ( const bool  start = 1) [inline]

Definition at line 136 of file vssp.h.

void vssp::VsspDriver::requestData ( const bool  intensity = 1,
const bool  start = 1 
) [inline]

Definition at line 140 of file vssp.h.

Definition at line 128 of file vssp.h.

void vssp::VsspDriver::requestPing ( ) [inline]

Definition at line 132 of file vssp.h.

Definition at line 124 of file vssp.h.

void vssp::VsspDriver::send ( const std::string  cmd) [inline, private]

Definition at line 175 of file vssp.h.

void vssp::VsspDriver::setInterlace ( const int  itl) [inline]

Definition at line 120 of file vssp.h.

void vssp::VsspDriver::setTimeout ( const double  to) [inline]

Definition at line 91 of file vssp.h.

Member Data Documentation

Definition at line 58 of file vssp.h.

boost::asio::streambuf vssp::VsspDriver::buf_ [private]

Definition at line 75 of file vssp.h.

boost::function<void(const vssp::Header &, const vssp::AuxHeader &, const boost::shared_array<vssp::Aux> &, const boost::chrono::microseconds &delayRead)> vssp::VsspDriver::cb_aux_ [private]

Definition at line 64 of file vssp.h.

boost::function<void(bool)> vssp::VsspDriver::cb_connect_ [private]

Definition at line 67 of file vssp.h.

boost::function<void(const vssp::Header &, const std::string &)> vssp::VsspDriver::cb_error_ [private]

Definition at line 66 of file vssp.h.

boost::function<void(const vssp::Header &, const boost::chrono::microseconds &)> vssp::VsspDriver::cb_ping_ [private]

Definition at line 65 of file vssp.h.

boost::function<void(const vssp::Header &, const vssp::RangeHeader &, const vssp::RangeIndex &, const boost::shared_array<uint16_t> &, const boost::shared_array<vssp::XYZI> &, const boost::chrono::microseconds &delayRead)> vssp::VsspDriver::cb_point_ [private]

Definition at line 62 of file vssp.h.

bool vssp::VsspDriver::closed_ [private]

Definition at line 57 of file vssp.h.

boost::asio::io_service vssp::VsspDriver::io_service_ [private]

Definition at line 54 of file vssp.h.

boost::asio::ip::tcp::socket vssp::VsspDriver::socket_ [private]

Definition at line 55 of file vssp.h.

boost::shared_array<const double> vssp::VsspDriver::tbl_h_ [private]

Definition at line 68 of file vssp.h.

Definition at line 70 of file vssp.h.

boost::shared_array<const TableSincos> vssp::VsspDriver::tbl_v_ [private]

Definition at line 69 of file vssp.h.

Definition at line 71 of file vssp.h.

boost::chrono::time_point<boost::chrono::system_clock> vssp::VsspDriver::time_read_last_ [private]

Definition at line 74 of file vssp.h.

double vssp::VsspDriver::timeout_ [private]

Definition at line 72 of file vssp.h.

boost::asio::deadline_timer vssp::VsspDriver::timer_ [private]

Definition at line 56 of file vssp.h.

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

Author(s): Atsushi Watanabe
autogenerated on Wed Sep 27 2017 02:52:08