Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

operation/OperationSupport.h

Committer:
xinlei
Date:
2016-08-08
Revision:
138:f8ab852e83e7
Parent:
107:f1ee3e1eb126

File content as of revision 138:f8ab852e83e7:

#ifndef OPERATIONSUPPORT_H
#define OPERATIONSUPPORT_H

#include "Operation.h"
#include "SmartRestConf.h"
#include "SmartRestTemplate.h"

class OperationSupport
{
public:
    OperationSupport(SmartRestTemplate& tpl, OperationPool& pool):
    _init(false), _tpl(tpl), opool(pool) {}

    bool init();
    bool executePendingOperations();

private:
    bool _init;
    SmartRestTemplate& _tpl;
    OperationPool& opool;
};

#endif