⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 toolsreportstdout.cpp

📁 C++ image processing.Mainly it occupies some filters to detect some prperties of image. Release.
💻 CPP
字号:
/* 

This "SOFTWARE" is a free software.

You are allowed to download, use, modify and redistribute this software.
The software is provided "AS IS" without warranty of any kind.

Copyright: University of Koblenz-Landau, Dirk Balthasar

*/

#include "ToolsReport.h"

#include <stdio.h>
#include <iostream>


/// CMessageHandler rediction to std output
class CMessageHandlerPrintf : public tools::CMessageHandler
{
public:
	CMessageHandlerPrintf()
	{
	}
	virtual void LogMessage(const char *msg)
	{
		std::cout << msg << std::endl;
		//printf("%s\n",msg);

		// 
		//int len = strlen(msg);
		//printf("len %d\n",len);
		//for (int i = 0; i < len; i++)
		//	std::cout << msg[i];
		//std::cout << std::endl;
	}
};


// static CMessageHandler * g_MsgHandler = NULL; (moved to cmyk_connect.cpp)
tools::CMessageHandler *tools::CMessageHandler::Get()
{
	if(m_MsgHandler == NULL) {
		tools::CMessageHandler::SetMessageHandler(new CMessageHandlerPrintf());
	}
	return m_MsgHandler;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -