ParamBlockPLCBEx Class Reference
 
 
 
ParamBlockPLCBEx Class Reference

This reference page is linked to from the following overview topics: New Classes and Methods, Deprecated Types.


#include <iparamb.h>

Inheritance diagram for ParamBlockPLCBEx:
ParamBlockPLCB PostLoadCallback InterfaceServer MaxHeapOperators

Class Description

Extension of the ParamBlockPLCB class.

This class should be used instead of ParamBlockPLCB to register for Post Load Callbacks. This uses a better mechanism for detecting the validity of the ReferenceTarget* member variable targ.

Public Member Functions

CoreExport  ParamBlockPLCBEx (ParamVersionDesc *v, int cnt, ParamVersionDesc *c, ReferenceTarget *t, int refNum)
  Constructor.
CoreExport  ~ParamBlockPLCBEx ()
CoreExport void  proc (ILoad *iload)
  from PostLoadCallback
CoreExport ReferenceTarget GetTarget ()
  Safe method for getting the targ member variable.
CoreExport bool  IsValid ()

Constructor & Destructor Documentation

CoreExport ParamBlockPLCBEx ( ParamVersionDesc v,
int  cnt,
ParamVersionDesc c,
ReferenceTarget t,
int  refNum 
)

Constructor.

CoreExport ~ParamBlockPLCBEx ( )

Member Function Documentation

CoreExport void proc ( ILoad iload ) [virtual]
CoreExport ReferenceTarget* GetTarget ( )

Safe method for getting the targ member variable.

This performs extra checks to ensure that ReferenceTarget pointer ParamBlockPLCB::targ is still valid and hasn't been deleted. Therefore, do not access the targ member variable in class ParamBlockPLCB directly but rather use this method.

Returns:
Returns targ if the ReferenceTarget pointer is still valid, otherwise NULL.
CoreExport bool IsValid ( )