Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

src/ConfigurationHandler/Controls/SetpointControl.h

Committer:
jmarkel44
Date:
2016-09-08
Revision:
20:653923c2f37a
Parent:
19:9bc8fabeddfa
Child:
28:c410a61238bb

File content as of revision 20:653923c2f37a:

/******************************************************************************
 *
 * File:                SetpointControl.h
 * Desciption:          ICE Timer Control Class
 *
 *****************************************************************************/
#ifndef SETPOINTCONTROL_H
#define SETPOINTCONTROL_H

#include <string>
using namespace std;

class SetpointControl
{
private:
    string          controlFile;        // name of the control file
    string          id;                 // control identifier
    string          name;               // friendly name
    unsigned int    priority;           // control priority
    string          input;              // control input
    string          output;             // control output 
    float           productFactor;      
    float           highAlert;
    float           highFailsafe;
    float           lowFailsafe;
    float           tol;
    
public:
    // constructor
    SetpointControl() {};
    ~SetpointControl() {
        printf("\r%s destructor invoked\n", __func__);
    } 
    
    // Load a control from the control file 
    bool Load(string filename); 
    
    string getControlFile(void) {
        return controlFile;
    }
    void setControLFile(string _controlFile) {
        controlFile = _controlFile;
    }
};

#endif