Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
operation/OperationSupport.h
- Committer:
- xinlei
- Date:
- 2015-05-07
- Revision:
- 98:e369fc75c000
- Parent:
- 93:61d44636f020
- Child:
- 106:fc5f25f0e0d5
File content as of revision 98:e369fc75c000:
#ifndef OPERATIONSUPPORT_H #define OPERATIONSUPPORT_H #include "Operation.h" #include "SmartRest.h" #include "SmartRestTemplate.h" class OperationSupport { public: OperationSupport(SmartRest& client, SmartRestTemplate& tpl, OperationPool& pool): _init(false), _firstRun(true), _tpl(tpl), _client(client), opool(pool) {} bool init(); bool run(); protected: bool requestPendingOperations(); bool executePendingOperation(Operation&); bool operationFromRecord(ParsedRecord& record, Operation& op); private: bool _init; bool _firstRun; SmartRestTemplate& _tpl; SmartRest& _client; OperationPool& opool; }; #endif