GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
TWebMenuItems Class Reference

#include <TWebMenuItem.h>

Public Member Functions

 TWebMenuItems ()=default
 
 TWebMenuItems (const std::string &snapid)
 
void Add (TWebMenuItem *item)
 
void AddMenuItem (const std::string &name, const std::string &title, const std::string &exec, TClass *cl=nullptr)
 
void AddChkMenuItem (const std::string &name, const std::string &title, bool checked, const std::string &toggle, TClass *cl=nullptr)
 
std::size_t Size () const
 
void PopulateObjectMenu (void *obj, TClass *cl)
 

Protected Attributes

std::string fId
 object identifier More...
 
std::vector< std::unique_ptr
< TWebMenuItem > > 
fItems
 list of items in the menu More...
 

Detailed Description

Definition at line 113 of file TWebMenuItem.h.

Constructor & Destructor Documentation

TWebMenuItems::TWebMenuItems ( )
default
TWebMenuItems::TWebMenuItems ( const std::string &  snapid)
inline

Definition at line 119 of file TWebMenuItem.h.

Member Function Documentation

void TWebMenuItems::Add ( TWebMenuItem item)
inline

Definition at line 121 of file TWebMenuItem.h.

Referenced by AddChkMenuItem(), AddMenuItem(), and PopulateObjectMenu().

void TWebMenuItems::AddChkMenuItem ( const std::string &  name,
const std::string &  title,
bool  checked,
const std::string &  toggle,
TClass *  cl = nullptr 
)
inline

Definition at line 131 of file TWebMenuItem.h.

References Add(), TWebMenuItem::SetClassName(), and TWebMenuItem::SetExec().

Referenced by PopulateObjectMenu().

void TWebMenuItems::AddMenuItem ( const std::string &  name,
const std::string &  title,
const std::string &  exec,
TClass *  cl = nullptr 
)
inline

Definition at line 123 of file TWebMenuItem.h.

References Add(), TWebMenuItem::SetClassName(), and TWebMenuItem::SetExec().

Referenced by PopulateObjectMenu().

void TWebMenuItems::PopulateObjectMenu ( void *  obj,
TClass *  cl 
)
std::size_t TWebMenuItems::Size ( ) const
inline

Definition at line 139 of file TWebMenuItem.h.

Member Data Documentation

std::string TWebMenuItems::fId
protected

object identifier

Definition at line 115 of file TWebMenuItem.h.

std::vector<std::unique_ptr<TWebMenuItem> > TWebMenuItems::fItems
protected

list of items in the menu

Definition at line 116 of file TWebMenuItem.h.

Referenced by PopulateObjectMenu().


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