qpcpp/doxygen/snippets/qep_qhsm.cpp

23 lines
463 B
C++
Raw Normal View History

2015-12-31 14:56:37 -05:00
class Calc : public QHsm { // derived from QHsm
2012-08-14 18:00:48 -04:00
private:
double m_operand1;
double m_operand2;
char m_display[DISP_WIDTH + 1];
uint8_t m_len;
uint8_t m_opKey;
public:
2019-03-28 11:59:31 -04:00
Calc() // constructor
: QHsm(Calc)) { // superclass' constructor
2012-08-14 18:00:48 -04:00
}
protected:
2019-03-28 11:59:31 -04:00
Q_STATE_DECL(initial);
Q_STATE_DECL(on);
Q_STATE_DECL(error);
Q_STATE_DECL(ready);
Q_STATE_DECL(result);
Q_STATE_DECL(begin);
2013-10-10 20:01:51 -04:00
. . .
2012-08-14 18:00:48 -04:00
};