DCC-EX Simple Throttle
Simple throttle for a DCC-EX CommandStation
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
LocoMenuItem Class Reference

Extension of the BaseMenuItem class to allow users to select a Loco. More...

#include <LocoMenuItem.h>

Inheritance diagram for LocoMenuItem:
Inheritance graph
[legend]
Collaboration diagram for LocoMenuItem:
Collaboration graph
[legend]

Public Member Functions

 LocoMenuItem (Loco *loco)
 Constructor for the loco menu item objects.
 
Loco * getLoco ()
 Get the Loco object associated with this menu item.
 
- Public Member Functions inherited from BaseMenuItem
 BaseMenuItem (const char *name)
 Constructor for each MenuItem object.
 
const char * getName ()
 Get menu item name.
 
void setNext (BaseMenuItem *item)
 Set the next menu item.
 
BaseMenuItemgetNext ()
 Get the next menu item.
 
void setIndex (uint8_t index)
 Set the index of this menu item.
 
uint8_t getIndex ()
 Get the index of this item.
 

Private Attributes

Loco * _loco
 

Detailed Description

Extension of the BaseMenuItem class to allow users to select a Loco.

Constructor & Destructor Documentation

◆ LocoMenuItem()

LocoMenuItem::LocoMenuItem ( Loco *  loco)

Constructor for the loco menu item objects.

Parameters
objectPointer to the Loco object to associate with this menu item

Member Function Documentation

◆ getLoco()

Loco * LocoMenuItem::getLoco ( )

Get the Loco object associated with this menu item.

Returns
Pointer to the Loco object
Here is the caller graph for this function:

Member Data Documentation

◆ _loco

Loco* LocoMenuItem::_loco
private

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