#include <module.h>
Inheritance diagram for Module_v1:
Public Member Functions | |
virtual | ~Module_v1 () |
Destroys the module, performing any cleanup necessary. | |
virtual BOOL | Init () |
Called after module's constructor to ask it whether it wants to exist or not. Each module is asked in two passes, so that its existence can depend on another module. If a module does not want to exist, it should return FALSE, whereupon it will be deleted. | |
virtual UINT32 | GetInterfaceVersion () |
virtual void | Describe (void *Info) |
Asks a module for more information. The pointer points to a struct such as ModInfo_v1 which the module should fill in. All fields should be filled (NULL is OK for char* variables). The type of the pointer is not explicitly defined so the structure can evolve while keeping backward compatibility. | |
virtual void * | CreateTool (UINT32 ToolID) |
Provide a clean interface from module to kernel code for the creation of tools. | |
Private Member Functions | |
CC_DECLARE_MEMDUMP (Module_v1) |
Definition at line 188 of file module.h.
|
Destroys the module, performing any cleanup necessary.
Definition at line 410 of file module.cpp.
|
|
|
|
Provide a clean interface from module to kernel code for the creation of tools.
Reimplemented in PushModule, and ViewModule. Definition at line 461 of file module.cpp. 00462 { 00463 return NULL; // Should never call this for the base class 00464 }
|
|
Asks a module for more information. The pointer points to a struct such as ModInfo_v1 which the module should fill in. All fields should be filled (NULL is OK for char* variables). The type of the pointer is not explicitly defined so the structure can evolve while keeping backward compatibility.
Reimplemented in PushModule, and ViewModule. Definition at line 432 of file module.cpp. 00433 { 00434 // Cast structure into the latest one we understand. 00435 ModInfo_v1 *Info = (ModInfo_v1 *) InfoPtr; 00436 00437 Info->InterfaceVersion = GetInterfaceVersion(); // You should always have this line. 00438 00439 // These are all garbage as we should never try to create one of these... 00440 Info->Version = 1; 00441 Info->ID = MODULEID_INVALID; // so we never get instantiated 00442 Info->NumTools = 0; 00443 Info->Name = Info->Purpose = Info->Author = NULL; 00444 }
|
|
Reimplemented in PushModule, and ViewModule. Definition at line 199 of file module.h.
|
|
Called after module's constructor to ask it whether it wants to exist or not. Each module is asked in two passes, so that its existence can depend on another module. If a module does not want to exist, it should return FALSE, whereupon it will be deleted.
Reimplemented in PushModule, and ViewModule. Definition at line 389 of file module.cpp. 00390 { 00391 return FALSE; // Should never try to instantiate a module base class 00392 }
|