uFSM  1.0
IoT u-Micro Finite State Machine library
uEventHandler.cpp
Go to the documentation of this file.
1 
21 #include <cstdint>
22 #include <cstdio>
23 #include <cassert>
24 #include <list>
25 #include "uEventHandler.hpp"
26 #include "uFsm.hpp"
27 
32 uEventHandler::uEventHandler(uint32_t numberTransitions) : functions_(NULL)
33 {
34  assert( numberTransitions!= 0);
35  functions_ = new TransitionFunc[numberTransitions];
36  assert( functions_!=NULL );
37 }
38 
43 {
44  if( functions_!=NULL )
45  delete[] functions_;
46 }
virtual ~uEventHandler(void)
uEventHandler(void)
TransitionFunc * functions_
bool(uEventHandler::* TransitionFunc)(void *)