C++ Samples
Demonstrates how to create a C++ application using the VideoXpert SDK
CppSamples::Common::BackMenu Class Reference

This class represents a default Back menu More...

#include <MenuItem.h>

Public Member Functions

 BackMenu ()
 
 ~BackMenu ()
 
PluginRun (DataModel *dataModel) override
 Move the controller to parent menu. More...
 
- Public Member Functions inherited from CppSamples::Common::Plugin
 Plugin (const std::string description)
 
virtual ~Plugin ()
 
std::string GetDescription () const
 Gets the description of this plugin. More...
 
PluginGetParent () 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...
 

Detailed Description

This class represents a default Back menu

Definition at line 46 of file MenuItem.h.

Inherits CppSamples::Common::Plugin.

Constructor & Destructor Documentation

CppSamples::Common::BackMenu::BackMenu ( )
inline

Definition at line 48 of file MenuItem.h.

48 : Plugin("Back") { }
Plugin(const std::string description)
Definition: Plugin.h:35
CppSamples::Common::BackMenu::~BackMenu ( )
inline

Definition at line 49 of file MenuItem.h.

49 {}

Member Function Documentation

Plugin* CppSamples::Common::BackMenu::Run ( DataModel dataModel)
inlineoverridevirtual

Move the controller to parent menu.

Parameters
dataModelInstance of data model.
Returns
Parent of the current menu.

Implements CppSamples::Common::Plugin.

Definition at line 56 of file MenuItem.h.

56  {
57  Plugin* parent = GetParent();
58  if (parent == nullptr)
59  return nullptr;
60 
61  return parent->GetParent();
62  }
Plugin(const std::string description)
Definition: Plugin.h:35
Plugin * GetParent() const
Gets the reference to the parent of this plugin.
Definition: Plugin.h:46

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