00001 /********************************************************************* 00002 *< 00003 FILE: evuser.h 00004 00005 DESCRIPTION: Event user functionality 00006 00007 CREATED BY: Tom Hudson 00008 00009 HISTORY: Created 16 June 1995 00010 00011 *> Copyright (c) 1995, All Rights Reserved. 00012 **********************************************************************/ 00013 00014 /********************************************************************** 00015 How to use: 00016 00017 This is a set of classes which form a generic notification system. To 00018 use: 00019 00020 * Create an EventUser object. 00021 00022 * Register the EventUser object with the appropriate router. 00023 00024 * The EventRouter will call your EventUser's Notify() method when 00025 the event occurs. 00026 00027 * When you're done with the EventUser object, call the EventRouter's 00028 UnRegister() method. This will delete the EventUser from the router's 00029 notification system. 00030 00031 * If your code is part of a window proc, call the router's Register 00032 and UnRegister methods when the window receives WM_ACTIVATE messages. 00033 This will properly uncouple the notification system when the window is 00034 deactivated. 00035 00036 **********************************************************************/ 00037 00038 #pragma once 00039 #include "maxheap.h" 00040 00061 class EventUser: public MaxHeapOperators { 00062 public: 00065 virtual void Notify()=0; 00066 }; 00067