⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 callback.h

📁 用于linux实验的shell编写的调用部分
💻 H
字号:
// callback.h //	Data structure to allow an object to register a "callback".//	On an asynchronous operation, the call to start the operation//	returns immediately.  When the operation completes, the called //	object must somehow notify the caller of the completion.//	In the general case, the called object doesn't know the type//	of the caller.////	We implement this using virtual functions in C++.  An object//	that needs to register a callback is set up as a derived class of//	the abstract base class "CallbackObj".  When we pass a//	pointer to the object to a lower level module, that module//	calls back via "obj->CallBack()", without knowing the//	type of the object being called back.//// 	Note that this isn't a general-purpose mechanism, //	because a class can only register a single callback.////  DO NOT CHANGE -- part of the machine emulation//// Copyright (c) 1992-1996 The Regents of the University of California.// All rights reserved.  See copyright.h for copyright notice and limitation // of liability and disclaimer of warranty provisions.//#ifndef CALLBACK_H#define CALLBACK_H #include "copyright.h"// Abstract base class for objects that register callbacksclass CallBackObj {   public:     virtual void CallBack() = 0;   protected:     CallBackObj() {};	// to prevent anyone from creating				// an instance of this class.  Only				// allow creation of instances of				// classes derived from this class.     virtual ~CallBackObj() {};};#endif

⌨️ 快捷键说明

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