TKernelInfo

List of predecestors:
TObj
Files:
collect.h, collect.cpp
Desc. & Idea Warnings Methods Atributes Operators Specials


Description

This is the basic class for all kernel infos processes by the kernel. It is the most simple local KI containing only its ID number.

Up.gif (1072 bytes)


Warnings

None.

Up.gif (1072 bytes)


Methods

Public:
TKernelInfo(uint iid)
TKernelInfo(BYTE** rawbytes,uint len,BOOL subclass=FALSE)
virtual ~TKernelInfo();

virtual char* Dump()
virtual uint GetSerSize(BOOL subclass=FALSE)
virtual uint Serialize(BYTE **rawbytes,BOOL subclass=FALSE)

uint GetID() see attribute id
void SetOwner(TCollTask& owner) see attribute task
TCollector* GetCollector()

virtual BOOL IsReady()
virtual BOOL Init()
Protected:
Private:


TKernelInfo(uint iid)

Constructor of the class. It just sets the ID number of the KI.

Arguments:

iid ... the ID of this KI

Returns:

nothing

arrow3u.gif (362 bytes) Up.gif (1072 bytes)


TCollector* GetCollector()

This functon returns pointer to the collector layer object owning this KI.

Arguments:

none

Returns:

pointer to the owner or NULL if it does not exist

arrow3u.gif (362 bytes) Up.gif (1072 bytes)


virtual BOOL IsReady()

This method is intended to be used in more complicated descendants that can specify if they are ready to by sent or not. The local KI is always ready.

Arguments:

none

Returns:

always TRUE

arrow3u.gif (362 bytes) Up.gif (1072 bytes)


virtual BOOL Init()

This method is intended to be used in more complicated descendants to initialize them.

Arguments:

none

Returns:

always TRUE

arrow3u.gif (362 bytes) Up.gif (1072 bytes)




Atributes

Public:
Protected:
uint id
TCollTask *task
Private:


uint id

This attribute contains the ID number of this KI.

arrow3u.gif (362 bytes) Up.gif (1072 bytes)


TCollTask *task

This attribute points to the object owning this KI. (see TCollTask )

arrow3u.gif (362 bytes) Up.gif (1072 bytes)




Operators

Public:
Protected:
Private:




Specials

None.

Up.gif (1072 bytes)