4 errors

Dependencies:   KS0108_PCF8574 mbed

Committer:
GuiTwo
Date:
Tue Sep 11 10:21:10 2012 +0000
Revision:
3:ec80bb6ff5da
Parent:
0:936f1c020120
4 errors on vector .cc

Who changed what in which revision?

UserRevisionLine numberNew contents of line
GuiTwo 0:936f1c020120 1 #ifndef _MENBEDMENUPARAM_H_
GuiTwo 0:936f1c020120 2 #define _MENBEDMENUPARAM_H_
GuiTwo 0:936f1c020120 3
GuiTwo 0:936f1c020120 4 class MenbedMenuParam {
GuiTwo 0:936f1c020120 5 public:
GuiTwo 0:936f1c020120 6 // Copy of the initial value;
GuiTwo 0:936f1c020120 7 float initVal;
GuiTwo 0:936f1c020120 8 // Temporary copy of the parameter used to the hold the modified value
GuiTwo 0:936f1c020120 9 // before it is committed.
GuiTwo 0:936f1c020120 10 float tempVal;
GuiTwo 0:936f1c020120 11
GuiTwo 0:936f1c020120 12 MenbedMenuParam (float (*initValFcn)(void), void (*finalValFcn)(float),
GuiTwo 0:936f1c020120 13 bool liveUpdate, float min, float max,
GuiTwo 0:936f1c020120 14 float inc);
GuiTwo 0:936f1c020120 15
GuiTwo 0:936f1c020120 16 float getVal (void);
GuiTwo 0:936f1c020120 17 void setVal (float v);
GuiTwo 0:936f1c020120 18 bool liveUpdate (void) {return _liveUpdate;}
GuiTwo 0:936f1c020120 19 float min (void) {return _min;}
GuiTwo 0:936f1c020120 20 float max (void) {return _max;}
GuiTwo 0:936f1c020120 21 float inc (void) {return _inc;}
GuiTwo 0:936f1c020120 22
GuiTwo 0:936f1c020120 23 protected:
GuiTwo 0:936f1c020120 24 // Pointer to a function returning a float containing the current value of
GuiTwo 0:936f1c020120 25 // the parameter.
GuiTwo 0:936f1c020120 26 float (*initValFcn)(void);
GuiTwo 0:936f1c020120 27 // Pointer to a function taking a float that is called when the parameter
GuiTwo 0:936f1c020120 28 // value is modified.
GuiTwo 0:936f1c020120 29 void (*finalValFcn)(float);
GuiTwo 0:936f1c020120 30 // Boolean indicating whether the finalValFcn should be called each time
GuiTwo 0:936f1c020120 31 // the user makes a change to the variable or whether it should only be
GuiTwo 0:936f1c020120 32 // called once the user confirms the change.
GuiTwo 0:936f1c020120 33 bool _liveUpdate;
GuiTwo 0:936f1c020120 34 // Minimum allowable value.
GuiTwo 0:936f1c020120 35 float _min;
GuiTwo 0:936f1c020120 36 // Maximum allowable value.
GuiTwo 0:936f1c020120 37 float _max;
GuiTwo 0:936f1c020120 38 // Amount by which to increment/decrement the parameter with each presses of
GuiTwo 0:936f1c020120 39 // the up/down button.
GuiTwo 0:936f1c020120 40 float _inc;
GuiTwo 0:936f1c020120 41 };
GuiTwo 0:936f1c020120 42
GuiTwo 0:936f1c020120 43 #endif /* _MENBEDMENUPARAM_H_ */