Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

src/ConfigurationHandler/Controls/TimerControl.h

Committer:
jmarkel44
Date:
2016-09-07
Revision:
11:0695c1091129

File content as of revision 11:0695c1091129:

/******************************************************************************
 *
 * File:                TimerControl.h
 * Desciption:          ICE Timer Control Class
 *
 *****************************************************************************/
#ifndef TIMERCONTROL_H
#define TIMERCONTROL_H

#include <string>

class TimerControl
{
private:
    // TODO: add the correct data here
    string          controlFile;        // name of the control file
    unsigned int    interval;           // interval at which we run
    unsigned int    priority;           // priority at which we run
public:
    TimerControl(const char* filename) : controlFile(filename) {
        printf("\r%s instantiated with controlFile %s\n",
               __func__, controlFile.c_str());
    }
    ~TimerControl() {
        printf("\r%s invoked!\n", __func__);
    }
    string getControlFile(void) {
        return controlFile;
    }
};

#endif