Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
TWebArgsMenuItem Class Reference

Definition at line 99 of file TWebMenuItem.h.

Public Member Functions

 TWebArgsMenuItem (const std::string &name, const std::string &title)
 ~TWebArgsMenuItem () override=default
 virtual destructor need for vtable, used when vector of TMenuItem* is stored
std::vector< TWebMenuArgument > & GetArgs ()
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, to which method belongs to.
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< TWebMenuArgumentfArgs
std::string fClassName
 class name
std::string fExec
 execute when item is activated
std::string fName
 name of the menu item
std::string fTitle
 title of menu item

#include <TWebMenuItem.h>

Inheritance diagram for TWebArgsMenuItem:
TWebMenuItem

Constructor & Destructor Documentation

◆ TWebArgsMenuItem()

TWebArgsMenuItem::TWebArgsMenuItem ( const std::string & name,
const std::string & title )
inline

Definition at line 105 of file TWebMenuItem.h.

◆ ~TWebArgsMenuItem()

TWebArgsMenuItem::~TWebArgsMenuItem ( )
overridedefault

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

Member Function Documentation

◆ GetArgs()

std::vector< TWebMenuArgument > & TWebArgsMenuItem::GetArgs ( )
inline

Definition at line 110 of file TWebMenuItem.h.

◆ GetExec()

const std::string & TWebMenuItem::GetExec ( ) const
inlineinherited

Returns execution string for the menu item.

Definition at line 53 of file TWebMenuItem.h.

◆ GetName()

const std::string & TWebMenuItem::GetName ( ) const
inlineinherited

Returns menu item name.

Definition at line 50 of file TWebMenuItem.h.

◆ SetClassName()

void TWebMenuItem::SetClassName ( const std::string & clname)
inlineinherited

Set class name, to which method belongs to.

Definition at line 47 of file TWebMenuItem.h.

◆ SetExec()

void TWebMenuItem::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 44 of file TWebMenuItem.h.

Member Data Documentation

◆ fArgs

std::vector<TWebMenuArgument> TWebArgsMenuItem::fArgs
protected

Definition at line 101 of file TWebMenuItem.h.

◆ fClassName

std::string TWebMenuItem::fClassName
protectedinherited

class name

Definition at line 35 of file TWebMenuItem.h.

◆ fExec

std::string TWebMenuItem::fExec
protectedinherited

execute when item is activated

Definition at line 34 of file TWebMenuItem.h.

◆ fName

std::string TWebMenuItem::fName
protectedinherited

name of the menu item

Definition at line 32 of file TWebMenuItem.h.

◆ fTitle

std::string TWebMenuItem::fTitle
protectedinherited

title of menu item

Definition at line 33 of file TWebMenuItem.h.


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