![]() |
C++ Samples
Demonstrates how to create a C++ application using the VideoXpert SDK
|
MenuItem is a Plugin. It represents a menu. More...
#include <MenuItem.h>
Public Member Functions | |
MenuItem (const std::string description) | |
~MenuItem () | |
CppSamples::Common::Plugin * | Run (CppSamples::Common::DataModel *dataModel) override |
Print all the sub menu under this menu and accept a user input to select submenu to continue. More... | |
void | AddBackMenu () |
A default Back menu will be added as submenu of this. More... | |
void | AddChild (Plugin *plugin) |
The given plugin item will be added as submenu of this. More... | |
void | AddExitMenu () |
A default Exit menu will be added as submenu of this. More... | |
![]() | |
Plugin (const std::string description) | |
virtual | ~Plugin () |
std::string | GetDescription () const |
Gets the description of this plugin. More... | |
Plugin * | GetParent () const |
Gets the reference to the parent of this plugin. More... | |
void | SetParent (Plugin *parent) |
Sets the reference to the parent of this plugin. More... | |
Private Attributes | |
std::vector< Plugin * > | _children |
MenuItem is a Plugin. It represents a menu.
Definition at line 12 of file MenuItem.h.
Inherits CppSamples::Common::Plugin.
|
inline |
Definition at line 14 of file MenuItem.h.
|
inline |
Definition at line 15 of file MenuItem.h.
void MenuItem::AddBackMenu | ( | ) |
A default Back menu will be added as submenu of this.
Definition at line 36 of file MenuItem.cpp.
void MenuItem::AddChild | ( | Plugin * | plugin | ) |
The given plugin item will be added as submenu of this.
plugin | Instance of Plugin to be added. |
Definition at line 41 of file MenuItem.cpp.
void MenuItem::AddExitMenu | ( | ) |
A default Exit menu will be added as submenu of this.
Definition at line 48 of file MenuItem.cpp.
|
overridevirtual |
Print all the sub menu under this menu and accept a user input to select submenu to continue.
dataModel | Instance of data model. |
Implements CppSamples::Common::Plugin.
Definition at line 13 of file MenuItem.cpp.
|
private |
Definition at line 40 of file MenuItem.h.