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 最后一次更新时间:2006/08/14
as08520_