Passing a member function to LocalTasks::registrate

asked 2020-11-06 13:33:47 -0500

Hi There,

I would like to create a class that will incapsulate my FSM node and use member functions from that class as my state task routines (see example below). Is there an example to do something like this.

Thanks

class myFSMClass{

public:

FSM(myFSM) { FSM_STATES { ... } .. }

myFunction(); }

int main(int argc, char **argv){

myFSMClass fsmObj = new myFSMClass(); ... registrate("State1",&myFSMClass::myFunction()); ... }

edit retag flag offensive close merge delete