IBM Integration Bus, Version 10.0.0.0 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS


cpiNextParserEncoding

This function returns the encoding of data owned by the next parser class in the chain, if defined.

Defined In Type Member
CPI_VFT Optional iFpNextParserEncoding

Syntax

int cpiNextParserEncoding(
  CciParser*   parser,
  CciContext*  context);

Parameters

parser
The address of the parser object (input).
context
The address of the context owned by the parser object (input).

Return values

The encoding of the data is returned. If it is not known, zero might be returned, and default encoding is assumed.

Sample

This example is taken from the sample parser file BipSampPluginParser.c:

int cpiNextParserEncoding(
  CciParser*  parser,
  CciContext* context
){
  PARSER_CONTEXT_ST* pc = (PARSER_CONTEXT_ST *)context ;
  int                encoding = 0;

  if (pc->trace) {
    fprintf(pc->tracefile, "PLUGIN: -> cpiNextParserEncoding() parser=0x%x context=0x%x\n",
            parser, context);
    fflush(pc->tracefile);
  }

  if (pc->trace) {
    fprintf(pc->tracefile, "PLUGIN: <- cpiNextParserEncoding()\n");
    fflush(pc->tracefile);
  }

  return encoding;
}

as08140_.htm | Last updated 2015-03-27 19:27:21