Menu Class Reference

#include <RobotAPI/libraries/armem/core/actions.h>

Public Member Functions

MenuEntryadd (const std::string &id, const std::string &text, const std::vector< MenuEntry > &entries={})
 
 Menu (const std::vector< MenuEntry > &entries={})
 
 Menu (std::initializer_list< MenuEntry > entries)
 
data::MenuPtr toIce () const
 

Static Public Member Functions

static Menu fromIce (const data::MenuPtr &ice)
 

Public Attributes

std::vector< MenuEntryentries
 

Detailed Description

Definition at line 51 of file actions.h.

Constructor & Destructor Documentation

◆ Menu() [1/2]

Menu ( std::initializer_list< MenuEntry entries)

Definition at line 76 of file actions.cpp.

◆ Menu() [2/2]

Menu ( const std::vector< MenuEntry > &  entries = {})

Definition at line 80 of file actions.cpp.

Member Function Documentation

◆ add()

MenuEntry & add ( const std::string &  id,
const std::string &  text,
const std::vector< MenuEntry > &  entries = {} 
)

Definition at line 86 of file actions.cpp.

◆ fromIce()

Menu fromIce ( const data::MenuPtr ice)
static

Definition at line 103 of file actions.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toIce()

data::MenuPtr toIce ( ) const

Definition at line 92 of file actions.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ entries

std::vector<MenuEntry> entries

Definition at line 68 of file actions.h.


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