ModuleListItem Class Reference

Used by the kernel to hold information on a particular module. More...

#include <modlist.h>

Inheritance diagram for ModuleListItem:

ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 ModuleListItem (Module *, OILModule *)
 Create a new ModuleListItem with the module pointer and info fields filled in. The info fields are filled in by interrogating the module.
 ~ModuleListItem ()
 Destroys a ModuleListItem. Deletes the module contained within it.

Public Attributes

BOOL m_Initialised
ModInfo m_ModInfo
Modulem_pModule
OILModulem_pOILModule

Private Member Functions

 CC_DECLARE_MEMDUMP (ModuleListItem)

Detailed Description

Used by the kernel to hold information on a particular module.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
30/6/93
The pOILModule field is a pointer to the OILModule object associated with the Module object in this list item. The OILModule is used to provide OIL specific facilities to a module.

See also:
ModuleList; Module; ModInfo; OILModule

Definition at line 127 of file modlist.h.


Constructor & Destructor Documentation

ModuleListItem::ModuleListItem Module pNewModule,
OILModule pNewOILModule
 

Create a new ModuleListItem with the module pointer and info fields filled in. The info fields are filled in by interrogating the module.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
30/6/93
Parameters:
NewModule - The module to fill in the list item with. [INPUTS] pNewOILModule - pointer to the OILModule object to associate with this module.
- [OUTPUTS]
Returns:
-

Errors: -

Definition at line 131 of file modlist.cpp.

00132 {
00133     m_Initialised = FALSE;
00134     pNewModule->Describe( &m_ModInfo );
00135     m_pModule = pNewModule;
00136     m_pOILModule = pNewOILModule;
00137 }

ModuleListItem::~ModuleListItem  ) 
 

Destroys a ModuleListItem. Deletes the module contained within it.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
7/7/93
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 154 of file modlist.cpp.

00155 {
00156     delete m_pModule;
00157     m_pModule = NULL;
00158     
00159     if( NULL != m_pOILModule )
00160     {
00161 //      PORTNOTETRACE("other","ModuleListItem::~ModuleListItem - m_pOILModule NOT deleted");
00162 //#ifndef EXCLUDE_FROM_XARALX
00163         delete m_pOILModule;
00164 //#endif
00165         m_pOILModule = NULL;
00166     }
00167 }


Member Function Documentation

ModuleListItem::CC_DECLARE_MEMDUMP ModuleListItem   )  [private]
 


Member Data Documentation

BOOL ModuleListItem::m_Initialised
 

Definition at line 139 of file modlist.h.

ModInfo ModuleListItem::m_ModInfo
 

Definition at line 140 of file modlist.h.

Module* ModuleListItem::m_pModule
 

Definition at line 141 of file modlist.h.

OILModule* ModuleListItem::m_pOILModule
 

Definition at line 142 of file modlist.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:56:16 2007 for Camelot by  doxygen 1.4.4