Define uma classe de nó, conforme especificado pelo parâmetro name, o qual é suportado pela fábrica de nós especificada como o parâmetro factoryObject. Esta função é chamada pelo nó durante a execução de bipGetMessageFlowNodeFactory, quando a LIL é carregada.
Se cniGetAttribute e cniGetAttribute2 ou cniGetAttributeName e cniGetAttributeName2 forem implementados, cniDefineNodeClass falhará com CCI_INV_IMPL_FUNCTION.
void cniDefineNodeClass( int* returnCode, CciFactory* factoryObject, CciChar* name, CNI_VFT* functbl);
vftable.iFpCreateNodeContext = _Transform_createNodeContext; vftable.iFpDeleteNodeContext = _deleteNodeContext; vftable.iFpGetAttributeName2 = _getAttributeName2; vftable.iFpSetAttribute = _setAttribute; vftable.iFpGetAttribute2 = _getAttribute2; vftable.iFpEvaluate = _Transform_evaluate; /* if not an input node */ vftable.iFRun = _run /* if an input node */
Em geral você deve definir somente uma das últimas 2 entradas, ou seja, você define vftable.iFpEvaluate = _Transform_evaluate; para um nó de processamento de mensagem, ou define vftable.iFpRun = _run; para um nó input.