|
BAOS SDK
18.2.0
|
#include <GetTimer.h>
Public Types | |
| using | Timers = std::vector< Timer > |
| the list of timers received from the device More... | |
Public Types inherited from kdrive::baos::ServiceRunner | |
| enum | { Timeout = ProtocolConstants::Timeout } |
| typedef DataPacket::Buffer | Buffer |
Public Member Functions | |
| GetTimer (std::shared_ptr< BaosConnector > connector) | |
| Creates a GetTimer service bound to a connection. More... | |
| virtual | ~GetTimer () |
| Destroys the GetTimer service. More... | |
| void | rpc (unsigned short offset, unsigned short count, unsigned long timeout=ServiceRunner::Timeout) |
| sends a GetTimer.Req and waits for a GetTimer.Res More... | |
| const Timer & | at (int index) const |
| Gets a Timer from the list Throws an exception if index is out of range. More... | |
| const Timer & | find (unsigned short id) const |
| Finds a Timer in the list based on the id. More... | |
| const Timers & | getTimers () const |
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 | |
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 |
| using kdrive::baos::GetTimer::Timers = std::vector<Timer> |
the list of timers received from the device
| GetTimer::GetTimer | ( | std::shared_ptr< BaosConnector > | connector | ) |
Creates a GetTimer service bound to a connection.
|
virtual |
Destroys the GetTimer service.
| const Timer & GetTimer::at | ( | int | index | ) | const |
| const Timer & GetTimer::find | ( | unsigned short | id | ) | const |
Finds a Timer in the list based on the id.
| const GetTimer::Timers & GetTimer::getTimers | ( | ) | const |
| void GetTimer::rpc | ( | unsigned short | offset, |
| unsigned short | count, | ||
| unsigned long | timeout = ServiceRunner::Timeout |
||
| ) |
sends a GetTimer.Req and waits for a GetTimer.Res
1.8.11