rsesmessage.cpp

来自「粗糙集应用软件」· C++ 代码 · 共 51 行

CPP
51
字号
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........:
// Description...: Global function used by the RSES library.
// Comments......:
// Revisions.....:
//===================================================================

#include <stdafx.h> // Precompiled headers.
#include <copyright.h>

#include <kernel/basic/string.h>
#include <kernel/basic/message.h>

//-------------------------------------------------------------------
// Method........: Message (global)
// Author........: Aleksander 豩rn
// Date..........:
// Description...: Global function used by the RSES library.
// Comments......: Excerpt from the RSES library technical documentation:
//
//                   It has to be written the definition of function
//                   void Message(char *text, char *status) that is
//                   used by some methods to give description what is
//                   actually being done. This function is called in
//                   many different ways:
//
//                   text NOT NULL, status NULL: it is general
//                   description about what is being done e.g.
//                   "Calculating reducts".
//
//                   text NOT NULL, status NOT NULL: more descriptive
//                   information with additional information about
//                   kind of progress of performed operation e.g.
//                   text="Found reducts:", status="20".
//
//                   text NULL, status NOT NULL: the information about
//                   progress is passed only e.g. "17%".
//
//                   According to the needs function Message may take
//                   advantage of passed information. It may display
//                   messages in different windows, etc.
//
//                   This function may additionally control the predefined
//                   variable MESSAGE_LEVEL that is used to filter the
//                   passed information. It is made the assumption that
//                   (1) MESSAGE_LEVEL=0 means that none information is displayed,
//                   (2) MESSAGE_LEVEL=1 means that all information is displayed.
//                   It can be implemented that for example if MESSAGE_LEVEL=2
//                   then only status variable is displayed and if MESSAGE_LEVEL=3
//                   than only the character 

⌨️ 快捷键说明

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