nml_oi.hh
来自「Source code for an Numeric Cmputer」· HH 代码 · 共 76 行
HH
76 行
/********************************************************************* Description: nml_oi.cc* Defines Generic NML Message structures used to log errors and* interact with an Operator Interface from within an NML_MODULE.** Derived from a work by Fred Proctor & Will Shackleford** Author:* License: LGPL Version 2* System: Linux* * Copyright (c) 2004 All rights reserved.** Last change: * $Revision: 1.4 $* $Author: paul_c $* $Date: 2005/05/23 16:34:15 $********************************************************************/#ifndef NML_OI_HH#define NML_OI_HH#include "cms.hh" // class CMS#include "nml.hh" // class NML#include "nmlmsg.hh" // class NMLmsg// NML operator interface stuff for errors, text, and graphics display#define NML_ERROR_TYPE ((NMLTYPE) 1)#define NML_TEXT_TYPE ((NMLTYPE) 2)#define NML_DISPLAY_TYPE ((NMLTYPE) 3)// Sizes for strings for the above messages#define NML_ERROR_LEN 256#define NML_TEXT_LEN 256#define NML_DISPLAY_LEN 256class NML_ERROR:public NMLmsg { public: NML_ERROR():NMLmsg(NML_ERROR_TYPE, sizeof(NML_ERROR)) { }; ~NML_ERROR() { }; void update(CMS * cms); char error[NML_ERROR_LEN];};class NML_TEXT:public NMLmsg { public: NML_TEXT():NMLmsg(NML_TEXT_TYPE, sizeof(NML_TEXT)) { }; ~NML_TEXT() { }; void update(CMS * cms); char text[NML_TEXT_LEN];};class NML_DISPLAY:public NMLmsg { public: NML_DISPLAY():NMLmsg(NML_DISPLAY_TYPE, sizeof(NML_DISPLAY)) { }; ~NML_DISPLAY() { }; void update(CMS * cms); char display[NML_DISPLAY_LEN];};// NML format functionextern int nmlErrorFormat(NMLTYPE type, void *buffer, CMS * cms);#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?