Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
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 129 of file RMenuItems.hxx.

Public Member Functions

 RArgsMenuItem ()=default
 Default constructor.
 RArgsMenuItem (const std::string &name, const std::string &title)
 ~RArgsMenuItem () override
 virtual destructor need for vtable, used when vector of RMenuItem* is stored
void AddArg (const RMenuArgument &arg)
const std::string & GetExec () const
 Returns execution string for the menu item.
const std::string & GetName () const
 Returns menu item name.
void SetClassName (const std::string &clname)
 Set class name for menu item, will be used to group items together.
void SetExec (const std::string &exec)
 Set execution string with all required arguments, which will be executed when menu item is selected.

Protected Attributes

std::vector< RMenuArgumentfArgs
std::string fClassName
 class to which belongs menu item
std::string fExec
 execute when item is activated
std::string fName
 name of the menu item
std::string fTitle
 title of menu item

#include <ROOT/RMenuItems.hxx>

Inheritance diagram for ROOT::Experimental::Detail::RArgsMenuItem:
ROOT::Experimental::Detail::RMenuItem

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 137 of file RMenuItems.hxx.

◆ ~RArgsMenuItem()

ROOT::Experimental::Detail::RArgsMenuItem::~RArgsMenuItem ( )
inlineoverride

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

Definition at line 140 of file RMenuItems.hxx.

Member Function Documentation

◆ AddArg()

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

Definition at line 142 of file RMenuItems.hxx.

◆ GetExec()

const std::string & ROOT::Experimental::Detail::RMenuItem::GetExec ( ) const
inlineinherited

Returns execution string for the menu item.

Definition at line 61 of file RMenuItems.hxx.

◆ GetName()

const std::string & ROOT::Experimental::Detail::RMenuItem::GetName ( ) const
inlineinherited

Returns menu item name.

Definition at line 58 of file RMenuItems.hxx.

◆ SetClassName()

void ROOT::Experimental::Detail::RMenuItem::SetClassName ( const std::string & clname)
inlineinherited

Set class name for menu item, will be used to group items together.

Definition at line 55 of file RMenuItems.hxx.

◆ SetExec()

void ROOT::Experimental::Detail::RMenuItem::SetExec ( const std::string & exec)
inlineinherited

Set execution string with all required arguments, which will be executed when menu item is selected.

Definition at line 52 of file RMenuItems.hxx.

Member Data Documentation

◆ fArgs

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

Definition at line 131 of file RMenuItems.hxx.

◆ fClassName

std::string ROOT::Experimental::Detail::RMenuItem::fClassName
protectedinherited

class to which belongs menu item

Definition at line 37 of file RMenuItems.hxx.

◆ fExec

std::string ROOT::Experimental::Detail::RMenuItem::fExec
protectedinherited

execute when item is activated

Definition at line 36 of file RMenuItems.hxx.

◆ fName

std::string ROOT::Experimental::Detail::RMenuItem::fName
protectedinherited

name of the menu item

Definition at line 34 of file RMenuItems.hxx.

◆ fTitle

std::string ROOT::Experimental::Detail::RMenuItem::fTitle
protectedinherited

title of menu item

Definition at line 35 of file RMenuItems.hxx.


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