cniSetElementValue 그룹

지정된 구문 요소에 값을 설정하기 위한 함수

구문

void cniSetElementBitArrayValue(
    int*                   returnCode,
    CciElement*            targetElement,
    const struct CciBitArray*   value);
void cniSetElementBooleanValue(
    int*                   returnCode,
    CciElement*            targetElement,
    CciBool      value);
void cniSetElementByteArrayValue(
    int*                   returnCode,
    CciElement*            targetElement,
    const struct CciByteArray*  value);
void cniSetElementCharacterValue(
    int*                   returnCode,
    CciElement*            targetElement,
    const CciChar*             value,
    CciSize        length);
void cniSetElementDateValue(
    int*                   returnCode,
    CciElement*            targetElement,
    const struct CciDate*  value);
void cniSetElementDecimalValue(
    int*                   returnCode,
    CciElement*            targetElement,
    const CciChar*             value);
void cniSetElementGmtTimestampValue(
    int*                   returnCode,
    CciElement*            targetElement,
    const struct CciTimestamp*  value);
void cniSetElementGmtTimeValue(
    int*                   returnCode,
    CciElement*            targetElement,
    const struct CciTime*  value);
void cniSetElementIntegerValue(
    int*                   returnCode,
    CciElement*            targetElement,
    CciInt                     value);
void cniSetElementRealValue(
    int*                   returnCode,
    CciElement*            targetElement,
    CciReal      value);
void cniSetElementTimestampValue(
    int*                   returnCode,
    CciElement*            targetElement,
    const struct CciTimestamp*  value);
void cniSetElementTimeValue(
    int*                   returnCode,
    CciElement*            targetElement,
    const struct CciTime*  value);

매개변수

returnCode
함수의 리턴 코드(출력).
가능한 리턴 코드는 다음과 같습니다.
  • CCI_SUCCESS
  • CCI_EXCEPTION
  • CCI_INV_ELEMENT_OBJECT
  • CCI_INV_DATA_POINTER
  • CCI_INV_DATA_BUFLEN
targetElement
대상 구문 요소 오브젝트의 주소(입력).
value
구문 요소에 저장할 값(입력).
length
데이터 값의 길이(입력). 관련 함수 호출에만 사용됩니다.

리턴 값

없음. 오류가 발생할 경우, returnCode 매개변수는 오류의 이유를 표시합니다.

	static char* functionName = (char *)"_Input_run()";
	void* buffer;
	CciTerminal* terminalObject;
	int buflen = 4096;
	int rc = CCI_SUCCESS;
	int rcDispatch = CCI_SUCCESS;
	char xmlData[] = "<A>data</a>";
	buffer = malloc(buflen);
	memcpy(buffer, &xmlData, sizeof(xmlData));

	cniSetInputBuffer(&rc, message, buffer, buflen);
주의사항 | 등록상표 | 다운로드 | 라이브러리 | 지원 | 피드백
Copyright IBM Corporation 1999, 2006 마지막 갱신 날짜: 2006/08/21
as07980_