MenuEntry Struct Reference

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

+ Inheritance diagram for MenuEntry:

Public Member Functions

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

Static Public Member Functions

static MenuEntry fromIce (const data::MenuEntryPtr &ice)
 

Public Attributes

std::vector< MenuEntryentries
 
std::string id
 
std::string text
 

Detailed Description

Definition at line 13 of file actions.h.

Constructor & Destructor Documentation

◆ MenuEntry()

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

Definition at line 8 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 16 of file actions.cpp.

◆ fromIce()

MenuEntry fromIce ( const data::MenuEntryPtr &  ice)
static

Definition at line 40 of file actions.cpp.

+ Here is the caller graph for this function:

◆ toIce()

data::MenuEntryPtr toIce ( ) const

Definition at line 24 of file actions.cpp.

Member Data Documentation

◆ entries

std::vector<MenuEntry> entries

Definition at line 30 of file actions.h.

◆ id

std::string id

Definition at line 28 of file actions.h.

◆ text

std::string text

Definition at line 29 of file actions.h.


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