FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kPxBlock_Construct ( kPxBlock block,
kType  type,
const kChar name,
k32u  nodeId,
k32u  blockId,
kPxEnviron  pipeEnviron,
kAlloc  allocator 
)

Factory constructor for block objects.

This function should be used to construct all block types.

Parameters
blockReceives constructed block object.
typeBlock class type.
nameDescriptive block instance name.
nodeIdUnique identifier for block owner (typically a node id).
blockIdUnique identifier for block instance.
pipeEnvironOptional object to provide external services to the block.
allocatorMemory allocator (or kNULL for default).
Returns
Operation status.