COSA
An Object-Oriented Platform for Arduino Programming
Menu Class Reference

#include <Menu.hh>

Collaboration diagram for Menu:
Collaboration graph

Classes

class  Action
 
struct  action_t
 
struct  bcd_range_t
 
struct  int_range_t
 
struct  item_list_t
 
struct  item_t
 
class  KeypadController
 
struct  one_of_t
 
class  RotaryController
 
class  Walker
 

Public Types

enum  type_t {
  ITEM, ITEM_LIST, ONE_OF, ZERO_OR_MANY,
  BCD_RANGE, INT_RANGE, ACTION
}
 
typedef const item_titem_P
 
typedef const item_Pitem_vec_P
 
typedef const item_list_titem_list_P
 
typedef const one_of_tone_of_P
 
typedef one_of_t zero_or_many_t
 
typedef const zero_or_many_tzero_or_many_P
 
typedef const bcd_range_tbcd_range_P
 
typedef const int_range_tint_range_P
 
typedef const action_taction_P
 

Static Public Member Functions

static void print (IOStream &outs, one_of_P var)
 
static void print (IOStream &outs, zero_or_many_P var, bool selected, uint8_t bv)
 
static void print (IOStream &outs, int_range_P var, bool selected)
 

Detailed Description

LCD Menu abstraction. Allows definition of menus with sub-menus, items, enumerations, bitsets, range values and actions.

Definition at line 35 of file Menu.hh.

Member Typedef Documentation

typedef const action_t* Menu::action_P

Definition at line 118 of file Menu.hh.

Definition at line 84 of file Menu.hh.

Definition at line 93 of file Menu.hh.

Definition at line 61 of file Menu.hh.

typedef const item_t* Menu::item_P

Definition at line 53 of file Menu.hh.

typedef const item_P* Menu::item_vec_P

Definition at line 54 of file Menu.hh.

typedef const one_of_t* Menu::one_of_P

Definition at line 69 of file Menu.hh.

Definition at line 74 of file Menu.hh.

Zero-or-many variable symbols list, Item header(ZERO_OR_MANY).

Definition at line 73 of file Menu.hh.

Member Enumeration Documentation

Menu type tag code.

Enumerator
ITEM 

Menu item/symbol.

ITEM_LIST 

Menu item/enum list.

ONE_OF 

Menu enumeration variable (one-of).

ZERO_OR_MANY 

Menu bitset variable (zero-or-many).

BCD_RANGE 

Menu bcd(2) range variable.

INT_RANGE 

Menu integer range variable.

ACTION 

Menu action.

Definition at line 38 of file Menu.hh.

Member Function Documentation

void Menu::print ( IOStream outs,
Menu::one_of_P  var 
)
static

Definition at line 24 of file Menu.cpp.

void Menu::print ( IOStream outs,
zero_or_many_P  var,
bool  selected,
uint8_t  bv 
)
static

Definition at line 33 of file Menu.cpp.

void Menu::print ( IOStream outs,
int_range_P  var,
bool  selected 
)
static

Definition at line 46 of file Menu.cpp.


The documentation for this class was generated from the following files: