libcopp  2.2.0
Public Member Functions | Static Public Member Functions | Private Attributes
util::cli::shell_font Class Reference

#include <shell_font.h>

Collaboration diagram for util::cli::shell_font:
Collaboration graph

Public Member Functions

 shell_font (int iFlag=0)
 
virtual ~shell_font ()
 
std::string GenerateString (const std::string &strInput)
 
std::string GetStyleCode ()
 

Static Public Member Functions

static std::string GenerateString (const std::string &strInput, int iFlag)
 
static std::string GetStyleCode (int iFlag)
 
static std::string GetStyleCloseCode ()
 

Private Attributes

int m_iFlag
 

Detailed Description

Definition at line 92 of file shell_font.h.

Constructor & Destructor Documentation

◆ shell_font()

util::cli::shell_font::shell_font ( int  iFlag = 0)

字体信息

Parameters
iFlag

Definition at line 75 of file shell_font.cpp.

◆ ~shell_font()

util::cli::shell_font::~shell_font ( )
virtual

Definition at line 77 of file shell_font.cpp.

Member Function Documentation

◆ GenerateString() [1/2]

std::string util::cli::shell_font::GenerateString ( const std::string &  strInput)

生成带样式的文本

Parameters
[in]strInput原始文本
Returns
生成带样式的文本

Definition at line 260 of file shell_font.cpp.

References m_iFlag.

◆ GenerateString() [2/2]

std::string util::cli::shell_font::GenerateString ( const std::string &  strInput,
int  iFlag 
)
static

生成带样式的文本

Parameters
[in]strInput原始文本
[in]iFlag样式
Returns
生成带样式的文本

Definition at line 249 of file shell_font.cpp.

References util::cli::_check_term_color_status(), GetStyleCloseCode(), and GetStyleCode().

◆ GetStyleCloseCode()

std::string util::cli::shell_font::GetStyleCloseCode ( )
static

获取样式的关闭命令

Returns
样式的关闭命令

Definition at line 134 of file shell_font.cpp.

References SHELL_FONT_SET_OPT_END.

Referenced by GenerateString(), and util::cli::shell_stream::shell_stream_opr::reset().

◆ GetStyleCode() [1/2]

std::string util::cli::shell_font::GetStyleCode ( )

获取样式的生成命令

Returns
样式的生成命令

Definition at line 132 of file shell_font.cpp.

References m_iFlag.

Referenced by util::cli::shell_stream::shell_stream_opr::close(), and GenerateString().

◆ GetStyleCode() [2/2]

std::string util::cli::shell_font::GetStyleCode ( int  iFlag)
static

Field Documentation

◆ m_iFlag

int util::cli::shell_font::m_iFlag
private

Definition at line 94 of file shell_font.h.

Referenced by GenerateString(), and GetStyleCode().


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