Olivier Smeesters
/
DtmfKit
A DTMF sequence editor and player for HAM radio equipment command & control.
Diff: state_base.cpp
- Revision:
- 0:1324e7d9d471
diff -r 000000000000 -r 1324e7d9d471 state_base.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/state_base.cpp Mon Mar 07 22:51:19 2011 +0000 @@ -0,0 +1,10 @@ +#include "system_states.hpp" +#include "system.hpp" + +StateBase::StateBase(System::StateId id, System *system) : system_(system) { + this->system_->registerState(id, this); +} + +StateBase::~StateBase() { + this->system_->unregisterState(this); +}