Struct ITelegram
Defined in 文件 Logger.h
Inheritance Relationships
Derived Type
public gwm::Logger(类 Logger)
Struct Documentation
-
struct ITelegram
算法控制器接口
Subclassed by gwm::Logger
Public Types
Public Functions
-
inline virtual ~ITelegram()
-
virtual void print(std::string message, ITelegram::LogLevel level, std::string fun_name, std::string file_name) = 0
调用打印函数输出日志
- 参数:
message -- 日志消息
level -- 日志等级
fun_name -- 调用者名称
file_name -- 调用者位于的文件
-
virtual void progress(std::size_t current, std::size_t total, std::string fun_name, std::string file_name) = 0
报告该算法执行的进度。
- 参数:
current -- 当前进度。
total -- 进度刻度总数。
-
virtual void progress(double percent, std::string fun_name, std::string file_name) = 0
报告该算法执行的进度。
- 参数:
percent -- 当前进度相对于总进度的百分比。
-
virtual bool stop() = 0
告诉算法是否要终止计算。
- 返回:
true 是,停止计算。
- 返回:
false 不,继续计算。
-
inline virtual ~ITelegram()