cpiSetElementValue グループ

目的

指定した構文エレメントに値を設定するための関数。

構文

void cpiSetElementBitArrayValue(
  int*           returnCode,
  CciElement*            targetElement,
  const struct CciBitArray*   value);
void cpiSetElementByteArrayValue(
  int*           returnCode,
  CciElement*            targetElement,
  const struct CciByteArray*  value);
void cpiSetElementBooleanValue(
  int*           returnCode,
  CciElement*            targetElement,
  CciBool      value);
void cpiSetElementCharacterValue(
  int*           returnCode,
  CciElement*            targetElement,
  const CciChar*  value,
  CciSize         length);
void cpiSetElementDateValue(
  int*           returnCode,
  CciElement*            targetElement,
  const struct CciDate*  value);
void cpiSetElementDecimalValue(
  int*           returnCode,
  CciElement*            targetElement,
  const CciChar*  value);
void cpiSetElementGmtTimestampValue(
  int*           returnCode,
  CciElement*                 targetElement,  const struct CciTimestamp*  value);
void cpiSetElementGmtTimeValue(
  int*           returnCode,
  CciElement*            targetElement,
  const struct CciTime*  value);
void cpiSetElementIntegerValue(
  int*           returnCode,
  CciElement*            targetElement,
  CciInt       value);
void cpiSetElementRealValue(
  int*           returnCode,
  CciElement*            targetElement,
  CciReal      value);
void cpiSetElementTimestampValue(
  int*           returnCode,
  CciElement*            targetElement,
  const struct CciTimestamp*  value);
void cpiSetElementTimeValue(
  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
データ値の長さ。CciChar 文字の数値で表される。 関係のある関数呼び出しにのみ使用されます。

戻り値

なし。エラーが発生した場合、returnCode がエラーの理由を示します。

関連概念
ユーザー定義のパーサー
ユーザー定義拡張機能
関連タスク
C でのパーサーの作成
関連資料
cpiSetElementName
cpiSetElementType
cpiSetElementValueValue
C パーサー・ユーティリティー関数
特記事項 | 商標 | ダウンロード | ライブラリー | サポート | フィードバック
Copyright IBM Corporation 1999, 2006 最終更新: 08/21/2006
as08520_