BAOS SDK  18.2.0
Public Member Functions | List of all members
kdrive::baos::SetTimer Class Reference

#include <SetTimer.h>

Inheritance diagram for kdrive::baos::SetTimer:
kdrive::baos::ServiceRunner

Public Member Functions

 SetTimer (std::shared_ptr< BaosConnector > connector)
 Creates a SetTimer service bound to a connection. More...
 
virtual ~SetTimer ()
 Destroys the SetTimer service. More...
 
void rpc (unsigned short offset, const Timer &timer, unsigned long timeout=ServiceRunner::Timeout)
 sends a SetTimer.Req and waits for a SetTimer.Res for a single Timer More...
 
void rpc (unsigned short offset, const std::vector< Timer > &timers, unsigned long timeout=ServiceRunner::Timeout)
 sends a SetTimer.Req and waits for a SetTimer.Res for multiple timers More...
 
- Public Member Functions inherited from kdrive::baos::ServiceRunner
virtual ~ServiceRunner ()
 
unsigned short getOffset () const
 
unsigned short getCount () const
 
const BuffergetBuffer () const
 

Additional Inherited Members

- Public Types inherited from kdrive::baos::ServiceRunner
enum  { Timeout = ProtocolConstants::Timeout }
 
typedef DataPacket::Buffer Buffer
 
- Protected Member Functions inherited from kdrive::baos::ServiceRunner
 ServiceRunner (std::shared_ptr< BaosConnector > connector)
 
std::shared_ptr< BaosConnectorgetConnector (bool validate=true) const
 
void rpc (unsigned char subService, unsigned short offset, unsigned short count, unsigned long timeout)
 
void setDataResponse (std::shared_ptr< DataResponse > dataResponse)
 
std::shared_ptr< DataResponsegetDataResponse (bool validate=true) const
 

Constructor & Destructor Documentation

SetTimer::SetTimer ( std::shared_ptr< BaosConnector connector)

Creates a SetTimer service bound to a connection.

SetTimer::~SetTimer ( )
virtual

Destroys the SetTimer service.

Member Function Documentation

void SetTimer::rpc ( unsigned short  offset,
const Timer timer,
unsigned long  timeout = ServiceRunner::Timeout 
)

sends a SetTimer.Req and waits for a SetTimer.Res for a single Timer

void SetTimer::rpc ( unsigned short  offset,
const std::vector< Timer > &  timers,
unsigned long  timeout = ServiceRunner::Timeout 
)

sends a SetTimer.Req and waits for a SetTimer.Res for multiple timers


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