#include <toollist.h>
Inheritance diagram for ToolListItem:
Public Member Functions | |
ToolListItem (Tool *NewTool, UINT32 ParentID) | |
Create a new ToolListItem with the tool pointer and info fields filled in. The info fields are filled in by interrogating the tool. A new OILTool object is created for this tool, and linked in to the list item. The tool is linked to the ToolListItem via the Parent member variable, as this means it is easy to get hold of the tool's info (ToolInfo object) given a pointer to a tool (otherwise you have to do GetID() and call Tool::Find() to get the Tool info, which is a bit daft). | |
~ToolListItem () | |
Destructor. Deletes the associated Tool and OILTool objects. | |
Public Attributes | |
BOOL | m_fInitialised |
ToolInfo | m_ToolInfo |
Tool * | m_pTool |
Private Member Functions | |
CC_DECLARE_MEMDUMP (ToolListItem) |
Definition at line 122 of file toollist.h.
|
Create a new ToolListItem with the tool pointer and info fields filled in. The info fields are filled in by interrogating the tool. A new OILTool object is created for this tool, and linked in to the list item. The tool is linked to the ToolListItem via the Parent member variable, as this means it is easy to get hold of the tool's info (ToolInfo object) given a pointer to a tool (otherwise you have to do GetID() and call Tool::Find() to get the Tool info, which is a bit daft).
Definition at line 133 of file toollist.cpp. 00134 { 00135 m_fInitialised = FALSE; 00136 NewTool->Describe( &m_ToolInfo ); 00137 m_ToolInfo.ParentModuleID = ParentID; 00138 m_pTool = NewTool; 00139 NewTool->Parent = this; 00140 }
|
|
Destructor. Deletes the associated Tool and OILTool objects.
Definition at line 153 of file toollist.cpp. 00154 { 00155 // m_pTool may be NULL if the tool didn't initialise properly, because the Add() function 00156 // will 'de-install' the tool from this list item to stop it being deleted 00157 // prematurely. 00158 delete m_pTool; 00159 00160 // m_pOILTool may be NULL if the 'new' failed so don't assert (and our 00161 // SimpleCCObject::delete can handle 'delete NULL;'). 00162 // delete m_pOILTool; 00163 }
|
|
|
|
Definition at line 134 of file toollist.h. |
|
Definition at line 136 of file toollist.h. |
|
Definition at line 135 of file toollist.h. |