Optional function to advise a parser of the next parser in the chain. It is called during finalize processing, and returns to the user-defined parser a string containing the name of the next parser class in the chain. It allows a parser to take action during the finalize phase to modify the syntax element tree before the phase that causes serialization of the bit stream.
If you specify the name of a parser supplied with WebSphere Message Broker, you must use the correct class name of the parser.
Defined In | Type | Member |
CPI_VFT | Optional | iFpSetNextParserClassName |
void cpiSetNextParserClassName( CciParser* parser, CciContext* context, CciChar* name, CciBool parserType);
None.
This example is taken from the sample parser file BipSampPluginParser.c (lines 763 to 787):
void cpiSetNextParserClassName( CciParser* parser, CciContext* context, CciChar* name, CciBool isHeaderParser ){ PARSER_CONTEXT_ST* pc = (PARSER_CONTEXT_ST *)context ; int rc = 0; /* Save the name in my context */ CciCharNCpy(pc->iNextParserClassName, name, CciCharLen(name)); if (pc->trace) { fprintf(pc->tracefile, "PLUGIN: <- cpiSetNextParserClassName()\n"); fflush(pc->tracefile); } return; }
Notices |
Trademarks |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
as08200_ |