Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
tcCommandExecutiveBase.h File Reference
#include <stdint.h>
#include <string>
#include <vector>
#include <list>
#include "Thread.h"
Include dependency graph for tcCommandExecutiveBase.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tcCommandExecutiveBase
 
struct  tcCommandExecutiveBase::tsCmndFunc
 
class  tcUIThread
 This class forms the user input thread for the menu. More...
 

Macros

#define MENU_FUNCTION_DECL(name)
 

Macro Definition Documentation

◆ MENU_FUNCTION_DECL

#define MENU_FUNCTION_DECL (   name)
Value:
static void name (void* me) { ((tcCommandExecutiveBase*)me)-> name (); } \
void name ();

Okay so I hate typing too, but that's no reason to make all these functions static where they can't access any member variables. This macro makes along with the trampoline parameter me which was added to the menu function table calls lets us use member functions and allows us to avoid a lot of extra typing for each and every function declaration.

tcCommandExecutiveBase
Definition: tcCommandExecutiveBase.h:36