VisDiagnostics.h
资源名称:VisSDK.rar [点击查看]
上传用户:weixiumei
上传日期:2008-05-15
资源大小:1769k
文件大小:3k
源码类别:
人物传记/成功经验
开发平台:
Visual C++
- ///////////////////////////////////////////////////////////////////////////
- //
- // NAME
- // VisDiagnostics.h -- diagnostic message handling
- //
- // DESCRIPTION
- // The CVisDiagnostics class is used to print diagnostic and warning
- // messages during program execution.
- //
- // It is up to the application to decide how to handle these messages.
- // For example, a Windows application may wish to print the diagnostics
- // in the status bar, and warnings in a pop-up window.
- // A console (command-line) application may with to print them on stderr.
- //
- // PUBLIC MEMBER FUNTIONS (METHODS)
- //
- // static void Setup((*fn)(const char *msg, TVisDiagnosticLevel level));
- // Set the diagnostic handling function (in application)
- //
- // static void Enable(int enable);
- // Enable diagnostic reporting
- //
- // static void ProgressReport(const char *msg);
- // Issue a progress report
- //
- // static void Warning(const char *msg)
- // Issue a warning
- //
- // static void ProgressReport(const char *format,
- // int a0, int a1 = 0, int a2 = 0, int a3 = 0);
- // Format message with int arguments
- //
- // static void Warning(const char *format,
- // int a0, int a1 = 0, int a2 = 0, int a3 = 0);
- // Format message with int arguments
- //
- // SEE ALSO
- // VisError.h error handling facility (uses throw/catch)
- // VisComposite.h example of class generating diagnostics
- //
- // BUGS
- //
- //
- // DESIGN
- //
- //
- // HISTORY
- // 23-Sep-97 Richard Szeliski (szeliski) at Microsoft
- // Created.
- //
- // Copyright