anim.hpp

来自「一个嵌入式系统的C代码」· HPP 代码 · 共 50 行

HPP
50
字号
//***********************************************************************//  MODULE : ANIM - Animator Device Driver for the RCOS OS simulator    *//  AUTHOR : Ron Chernich                                               *//  PURPOSE: Module to perform all screen animation operations and re-  *//           draw of switched displays.                                 *//  HISTORY:                                                            *//   14-MAY-93  First (MSC/C++ 7.00) version                            *//   18-AUG-94  static func of module made private member               *//   15-MAR-95  Modified to accomodate improved user tty encapsulation  *//   22-MAR-95  (Happy Birthday, Ron!) No of terminals made dynamic     *//***********************************************************************#ifndef _ANIM_RCOS_  #define _ANIM_RCOS_  #include "rcos.hpp"  #include "message.hpp"  #include "timer.hpp"  #include "cpu-disp.hpp"  #include "dev-disp.hpp"  #include "dsk-disp.hpp"  #include "kernel.hpp"  #include "app.hpp"    //////////////////////////////  // This is a device driver merely to facilitate abstract communications  // with it.  It does not respond to normal Open, Read etc messages.  //  class Animate : public port {  private:    UINT16    nTermRb;    AniWin    nCurWin;                  // to inhibit updates of hidden windows    CpuAnim   Cpu;                      // process scheduler animation    TTyAnim  *pDev;                     // TTY and printer animation    DiskAnim *pDiskAnim[MAX_DRIVES];    // Disk Driver animation    void      PutTitle (char*, UINT16 = 0, char* = NULL);  public:    Animate (UINT16, UINT16, Knl*, UINT16);   ~Animate (void);    void   RxPort (PMSG);    void   SetCurWin (INT16, BOOL = FALSE);    INT16  GetCurWin (void)    { return (INT16)nCurWin; }  };#endif/********************************** eof **********************************/

⌨️ 快捷键说明

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