
Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
operation/OperationExecutor.h@65:a62dbef2f924, 2014-10-30 (annotated)
- Committer:
- vwochnik
- Date:
- Thu Oct 30 13:38:20 2014 +0000
- Revision:
- 65:a62dbef2f924
- Parent:
- 64:31a640c32399
- Child:
- 66:31c754c36ed7
operation support
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vwochnik | 62:86a04c5bda18 | 1 | #ifndef OPERATIONEXECUTOR_H |
vwochnik | 62:86a04c5bda18 | 2 | #define OPERATIONEXECUTOR_H |
vwochnik | 62:86a04c5bda18 | 3 | |
vwochnik | 62:86a04c5bda18 | 4 | #include "AbstractSmartRest.h" |
vwochnik | 62:86a04c5bda18 | 5 | #include "SmartRestTemplate.h" |
vwochnik | 62:86a04c5bda18 | 6 | #include "OperationStore.h" |
vwochnik | 65:a62dbef2f924 | 7 | #include "DeviceIO.h" |
vwochnik | 62:86a04c5bda18 | 8 | |
vwochnik | 62:86a04c5bda18 | 9 | class OperationExecutor |
vwochnik | 62:86a04c5bda18 | 10 | { |
vwochnik | 62:86a04c5bda18 | 11 | public: |
vwochnik | 65:a62dbef2f924 | 12 | OperationExecutor(AbstractSmartRest&, SmartRestTemplate&, long&, DeviceIO&); |
vwochnik | 62:86a04c5bda18 | 13 | |
vwochnik | 62:86a04c5bda18 | 14 | bool init(); |
vwochnik | 62:86a04c5bda18 | 15 | bool executeOperation(OperationStore::Operation&); |
vwochnik | 64:31a640c32399 | 16 | |
vwochnik | 64:31a640c32399 | 17 | protected: |
vwochnik | 64:31a640c32399 | 18 | bool executeRelayStateUpdate(bool relayState); |
vwochnik | 62:86a04c5bda18 | 19 | |
vwochnik | 62:86a04c5bda18 | 20 | private: |
vwochnik | 62:86a04c5bda18 | 21 | bool _init; |
vwochnik | 62:86a04c5bda18 | 22 | long& _deviceId; |
vwochnik | 62:86a04c5bda18 | 23 | SmartRestTemplate& _tpl; |
vwochnik | 62:86a04c5bda18 | 24 | AbstractSmartRest& _client; |
vwochnik | 65:a62dbef2f924 | 25 | DeviceIO& _io; |
vwochnik | 62:86a04c5bda18 | 26 | }; |
vwochnik | 62:86a04c5bda18 | 27 | |
vwochnik | 62:86a04c5bda18 | 28 | #endif |