BAOS SDK
18.2.0
|
#include <SetTimer.h>
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 Buffer & | getBuffer () 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< BaosConnector > | getConnector (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< DataResponse > | getDataResponse (bool validate=true) const |
SetTimer::SetTimer | ( | std::shared_ptr< BaosConnector > | connector | ) |
Creates a SetTimer service bound to a connection.
|
virtual |
Destroys the SetTimer service.
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