📄 event.h
字号:
/* event.h - header for Event_T class *//* Copyright 1993-1996 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01g,13nov96,bss clean up.01f,09jul96,bss WIN32 port.01e,02may96,bss added bpEventGen_m().01d,01may96,bss cleaned up exception notification support.01c,26apr96,bss coding convention cleanup.01b,23apr96,bss added support for target exceptions.01a,14mar96,bss written.*/#ifndef __INCEventh#define __INCEventh////////////////////////////////////////////////////////////////////////////////// Event_T class//// This module implements the Event_T class which is// used by the Ace_T back end class to manage target events.// When an event occurs, an Event_T event is created// from the ACE event information, and the Event_T// object is then put on the event queue. When the// target server requests information about an// event, an Event_T object is dequeued.//// The Event_T constructor performs all the work for this class:// it takes an ACE event and converts it into a WDB_EVT_DATA// object, Wind River's event data type.#include "ace/api.h" // Ace API#include "wdb.h" // Definition of WDB event structures#include "bdmExcLib.h"#include "rw/tooldefs.h"#include "rw/collect.h"// Define RW class ID to identify Event_T class.#if 1const RWClassID eventClassID = 0x0001; #endif#define EVENT_T_RW_CLASS_ID 0x0001////////////////////////////////////////////////////////////////////////////////// Event_T Declaration//// Event_T manages target event information.class Event_T : public RWCollectable { // Required by Rogue Wave to declare the following methods: // // virtual RWClassID isA () const; // virtual RWCollectable * newSpecies () const; RWDECLARE_COLLECTABLE (Event_T) public: //////////////////////////////////////////////////////////////////////////// // Constructors and Destructors Event_T (ACE_Event * pEvent); Event_T (); // Should never be called. Must be public for Rogue Wave. ~Event_T (); //////////////////////////////////////////////////////////////////////////// // Member Data WDB_EVT_DATA wdbEvent_; protected: //////////////////////////////////////////////////////////////////////////// // Helper methods void signalEventMake_m (ACE_Event * pEvent); void modeChangeEventMake_m (ACE_Event * pEvent); void bpEventMake_m (ACE_Event * pEvent); void excEventMake_m (ACE_Event * pEvent); void bpEventGen_m (); // Generate dummy BP event. BDM_EXC_INFO * eventTypeGet_m (); };// End of class Event_T////////////////////////////////////////////////////////////////////////////////inline Event_T::~Event_T () { }#endif /* #ifndef __INCEventh */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -