Console Library 8.0.0
A header-only library that makes C++ simple
Loading...
Searching...
No Matches
console::gen::debug_t Class Reference

调试适配器(用于管道操作符)。 More...

#include <gextra.h>

Public Member Functions

 debug_t (std::string msg="DEBUG: ", std::ostream &os=std::cout)
 构造函数。

Private Attributes

std::string message
std::ostream & out

Friends

template<class Gen>
Debug< Gen > operator| (Gen g, debug_t d)
 管道操作符,创建调试生成器。

Detailed Description

调试适配器(用于管道操作符)。

Constructor & Destructor Documentation

◆ debug_t()

console::gen::debug_t::debug_t ( std::string msg = "DEBUG: ",
std::ostream & os = std::cout )
inlineexplicit

构造函数。

Parameters
msg调试消息前缀,默认为"DEBUG: "。
os输出流,默认为std::cout。

◆ operator|

template<class Gen>
Debug< Gen > operator| ( Gen g,
debug_t d )
friend

管道操作符,创建调试生成器。

Template Parameters
Gen源生成器类型。
Parameters
g源生成器。
d调试适配器。
Returns
Debug<Gen> 调试生成器。

Member Data Documentation

◆ message

std::string console::gen::debug_t::message
private

◆ out

std::ostream& console::gen::debug_t::out
private

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