message.h

来自「粗糙集应用软件」· C头文件 代码 · 共 44 行

H
44
字号
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........: 960307
// Description...:
// Revisions.....:
//===================================================================

#ifndef __MESSAGE_H__
#define __MESSAGE_H__

#include <copyright.h>

#include <kernel/basic/string.h>

//-------------------------------------------------------------------
// Class.........: Message
// Author........: Aleksander 豩rn
// Date..........:
// Description...: Simple class that relays progress messages to the
//                 user.
//
//                 Intended use, example:
//
//                    // Declare a local message object.
//                    Message message;
//
//                    // The Notify method is used for general progress messages.
//                    message.Notify("A long operation is about to be executed...");
//
//                    // A long operation might, e.g., take place in a loop.
//                    for (int i = 0; i < 1000; i++) {
//
//                      // The Progress method is used to provide a cancellation facility.
//                      if (!message.Progress("Executing...", i, 1000))
//                         break;
//
//                    }
//
//                    // For warnings and errors the static methods may be used.
//                    Message::Warning("This is a warning message.");
//                    Message::Warning("This is a less important warning message.", false);
//
// Comments......:
// Revisions.....: A

⌨️ 快捷键说明

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