PlasCom2  1.0
XPACC Multi-physics simluation application
MenuObject< ConfigType, ParamType > Class Template Reference

Detailed Description

template<typename ConfigType = util::ConfigurationObject, typename ParamType = util::ConfigParameters>
class ix::util::MenuObject< ConfigType, ParamType >

Definition at line 19 of file Menu.H.

#include <Menu.H>

Public Member Functions

 MenuObject ()
 
std::string LastSection () const
 
std::string hRule ()
 
std::string centerString (const std::string &message)
 
virtual std::string menuString (ConfigType &config, const std::string &section)
 
std::string navigationString (ConfigType &config, const std::string &section)
 
void SetExternalBorder (const std::string &eb)
 
std::string Border () const
 
void SetHeader (const std::string &hdr)
 
std::string Header () const
 
void SetHRule (const std::string &hrule)
 
void SetVRule (const std::string &vrule)
 
void SetFieldSeparator (const std::string &sep)
 
void SetMenuWidth (unsigned int wid)
 
void SetColumnLength (unsigned int colen)
 

Private Attributes

std::string _header
 
std::string _external_border
 
std::string _vertical_rule
 
std::string _horizontal_rule
 
std::string _field_separator
 
strsize _menu_width
 
int _column_length
 
std::string _last_section
 
std::string _next_section
 
std::string _up_section
 
Collaboration diagram for MenuObject< ConfigType, ParamType >:

Constructor & Destructor Documentation

◆ MenuObject()

MenuObject ( )
inline

Definition at line 22 of file Menu.H.

Member Function Documentation

◆ Border()

std::string Border ( ) const
inline

Definition at line 219 of file Menu.H.

References MenuObject< ConfigType, ParamType >::_external_border.

◆ centerString()

std::string centerString ( const std::string &  message)
inline

◆ Header()

std::string Header ( ) const
inline

Definition at line 225 of file Menu.H.

References MenuObject< ConfigType, ParamType >::_header.

◆ hRule()

◆ LastSection()

std::string LastSection ( ) const
inline

Definition at line 24 of file Menu.H.

References MenuObject< ConfigType, ParamType >::_last_section.

◆ menuString()

◆ navigationString()

◆ SetColumnLength()

void SetColumnLength ( unsigned int  colen)
inline

Definition at line 240 of file Menu.H.

References MenuObject< ConfigType, ParamType >::_column_length.

◆ SetExternalBorder()

void SetExternalBorder ( const std::string &  eb)
inline

Definition at line 216 of file Menu.H.

References MenuObject< ConfigType, ParamType >::_external_border.

◆ SetFieldSeparator()

void SetFieldSeparator ( const std::string &  sep)
inline

Definition at line 234 of file Menu.H.

References MenuObject< ConfigType, ParamType >::_field_separator.

◆ SetHeader()

void SetHeader ( const std::string &  hdr)
inline

Definition at line 222 of file Menu.H.

References MenuObject< ConfigType, ParamType >::_header.

◆ SetHRule()

void SetHRule ( const std::string &  hrule)
inline

Definition at line 228 of file Menu.H.

References MenuObject< ConfigType, ParamType >::_horizontal_rule.

◆ SetMenuWidth()

void SetMenuWidth ( unsigned int  wid)
inline

Definition at line 237 of file Menu.H.

References MenuObject< ConfigType, ParamType >::_menu_width.

◆ SetVRule()

void SetVRule ( const std::string &  vrule)
inline

Definition at line 231 of file Menu.H.

References MenuObject< ConfigType, ParamType >::_vertical_rule.

Member Data Documentation

◆ _column_length

◆ _external_border

◆ _field_separator

◆ _header

◆ _horizontal_rule

std::string _horizontal_rule
private

◆ _last_section

std::string _last_section
private

◆ _menu_width

◆ _next_section

std::string _next_section
private

Definition at line 252 of file Menu.H.

◆ _up_section

std::string _up_section
private

Definition at line 253 of file Menu.H.

◆ _vertical_rule


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