Public Types | Public Member Functions | Protected Attributes | List of all members
scip2::ResponseStream Class Referenceabstract

#include <stream.h>

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

Public Types

using Callback = boost::function< void(const boost::posix_time::ptime &, const std::string &, const std::string &, const ScanData &)>
 
- Public Types inherited from scip2::Response
using Ptr = std::shared_ptr< Response >
 

Public Member Functions

virtual std::string getCommandCode () const =0
 
virtual void operator() (const boost::posix_time::ptime &, const std::string &, const std::string &, std::istream &)=0
 
bool readTimestamp (const boost::posix_time::ptime &time_read, const std::string &echo_back, const std::string &status, std::istream &stream, ScanData &scan)
 
void registerCallback (Callback cb)
 

Protected Attributes

Callback cb_
 

Detailed Description

Definition at line 40 of file stream.h.

Member Typedef Documentation

using scip2::ResponseStream::Callback = boost::function<void( const boost::posix_time::ptime&, const std::string&, const std::string&, const ScanData&)>

Definition at line 47 of file stream.h.

Member Function Documentation

virtual std::string scip2::ResponseStream::getCommandCode ( ) const
pure virtual

Implements scip2::Response.

Implemented in scip2::ResponseME, and scip2::ResponseMD.

virtual void scip2::ResponseStream::operator() ( const boost::posix_time::ptime &  ,
const std::string &  ,
const std::string &  ,
std::istream &   
)
pure virtual

Implements scip2::Response.

Implemented in scip2::ResponseME, and scip2::ResponseMD.

bool scip2::ResponseStream::readTimestamp ( const boost::posix_time::ptime &  time_read,
const std::string &  echo_back,
const std::string &  status,
std::istream &  stream,
ScanData scan 
)
inline

Definition at line 60 of file stream.h.

void scip2::ResponseStream::registerCallback ( Callback  cb)
inline

Definition at line 95 of file stream.h.

Member Data Documentation

Callback scip2::ResponseStream::cb_
protected

Definition at line 50 of file stream.h.


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


urg_stamped
Author(s): Atsushi Watanabe
autogenerated on Tue May 11 2021 02:14:05