cpiParseFirstChild

목적

지정된 구문 요소의 첫 번째 하위 요소를 구문 분석합니다. 현재 구문 요소의 첫 번째 하위 요소가 필요할 때 브로커가 호출합니다.

정의 대상 유형 구성원
CPI_VFT 필수 iFpParseFirstChild

구문

void cpiParseFirstChild(
  CciParser*      parser,
  CciContext* context,
  CciElement*  currentElement);

매개변수

parser
구문 분석기 오브젝트의 주소(입력)
context
구문 분석기 오브젝트가 소유하는 컨텍스트의 주소(입력)
currentElement
현재 구문 요소의 주소(입력)

리턴 값

없음

샘플

다음 예는 샘플 구문 분석기 파일 BipSampPluginParser.c에서 발췌한 것입니다(477 - 508행).

void cpiParseFirstChild(
  CciParser*      parser,
  CciContext* context,
  CciElement* element
){
  PARSER_CONTEXT_ST* pc = (PARSER_CONTEXT_ST *)context ;
  int                rc;
if ((!cpiElementCompleteNext(&rc, element)) &&
      (cpiElementType(&rc, element) == CCI_ELEMENT_TYPE_NAME)) {
while ((!cpiElementCompleteNext(&rc, element))     &&
           (!cpiFirstChild(&rc, element)) &&
(pc->iCurrentElement))
{
pc->iCurrentElement = parseNextItem(parser, context, pc->iCurrentElement);
}
}
if (pc->trace) {
fprintf(pc->tracefile, "PLUGIN: <- cpiParseFirstChild()\n");
fflush(pc->tracefile);
}
  return;
}
관련 개념
사용자 정의 구문 분석기
사용자 정의 확장 구성요소
관련 태스크
C로 구문 분석기 작성
관련 참조
cpiParseLastChild
C 구문 분석기 구현 함수
주의사항 | 등록상표 | 다운로드 | 라이브러리 | 지원 | 피드백
Copyright IBM Corporation 1999, 2006 마지막 갱신 날짜: 5월 12, 2006
as08080_