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, 2009Copyright IBM Corporation 1999, 2009.
最終更新 : 2009-02-20 12:44:36

as07980_