Logo ROOT  
Reference Guide
ROOT::Experimental::Detail::RArgsMenuItem Class Reference

Menu item which requires extra arguments for invoked class method.

Author
Sergey Linev
Date
2017-06-29
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 125 of file RMenuItems.hxx.

Public Member Functions

 RArgsMenuItem ()=default
 Default constructor. More...
 
 RArgsMenuItem (const std::string &name, const std::string &title)
 
virtual ~RArgsMenuItem ()
 virtual destructor need for vtable, used when vector of RMenuItem* is stored More...
 
void AddArg (const RMenuArgument &arg)
 
- Public Member Functions inherited from ROOT::Experimental::Detail::RMenuItem
 RMenuItem ()=default
 Default constructor. More...
 
 RMenuItem (const std::string &name, const std::string &title)
 Create menu item with the name and title name used to display item in the object context menu, title shown as hint info for that item
More...
 
virtual ~RMenuItem ()=default
 virtual destructor need for vtable, used when vector of RMenuItem* is stored More...
 
const std::string & GetExec () const
 Returns execution string for the menu item. More...
 
const std::string & GetName () const
 Returns menu item name. More...
 
void SetExec (const std::string &exec)
 Set execution string with all required arguments, which will be executed when menu item is selected
More...
 

Protected Attributes

std::vector< RMenuArgumentfArgs
 
- Protected Attributes inherited from ROOT::Experimental::Detail::RMenuItem
std::string fExec
 execute when item is activated More...
 
std::string fName
 name of the menu item More...
 
std::string fTitle
 title of menu item More...
 

#include <ROOT/RMenuItems.hxx>

Inheritance diagram for ROOT::Experimental::Detail::RArgsMenuItem:
[legend]

Constructor & Destructor Documentation

◆ RArgsMenuItem() [1/2]

ROOT::Experimental::Detail::RArgsMenuItem::RArgsMenuItem ( )
default

Default constructor.

◆ RArgsMenuItem() [2/2]

ROOT::Experimental::Detail::RArgsMenuItem::RArgsMenuItem ( const std::string &  name,
const std::string &  title 
)
inline

Definition at line 133 of file RMenuItems.hxx.

◆ ~RArgsMenuItem()

virtual ROOT::Experimental::Detail::RArgsMenuItem::~RArgsMenuItem ( )
inlinevirtual

virtual destructor need for vtable, used when vector of RMenuItem* is stored

Definition at line 136 of file RMenuItems.hxx.

Member Function Documentation

◆ AddArg()

void ROOT::Experimental::Detail::RArgsMenuItem::AddArg ( const RMenuArgument arg)
inline

Definition at line 138 of file RMenuItems.hxx.

Member Data Documentation

◆ fArgs

std::vector<RMenuArgument> ROOT::Experimental::Detail::RArgsMenuItem::fArgs
protected

Definition at line 127 of file RMenuItems.hxx.

Libraries for ROOT::Experimental::Detail::RArgsMenuItem:
[legend]

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