取出指定语法元素的值的函数。
CciSize cpiElementBitArrayValue( int* returnCode, CciElement* targetElement, const struct CciBitArray* value);
CciBool cpiElementBooleanValue( int* returnCode, CciElement* targetElement);
CciSize cpiElementByteArrayValue( int* returnCode, CciElement* targetElement, const struct CciByteArray* value);
CciSize cpiElementCharacterValue( int* returnCode, CciElement* targetElement, const CciChar* value, CciSize length);
struct CciDate cpiElementDateValue( int* returnCode, CciElement* targetElement);
CciSize cpiElementDecimalValue( int* returnCode, CciElement* targetElement, const CciChar* value, CciSize length);
struct CciTimestamp cpiElementGmtTimestampValue( int* returnCode, CciElement* targetElement);
struct CciTime cpiElementGmtTimeValue( int* returnCode, CciElement* targetElement);
CciInt cpiElementIntegerValue( int* returnCode, CciElement* targetElement);
CciReal cpiElementRealValue( int* returnCode, CciElement* targetElement);
struct CciTimestamp cpiElementTimestampValue( int* returnCode, CciElement* targetElement);
struct CciTime cpiElementTimeValue( int* returnCode, CciElement* targetElement);
返回元素值。
在某些情况下,例如,cpiElementCharacterValue 或 cpiElementDecimalValue,如果缓冲区不够大以接收数据,则数据不会写入缓冲区。必需缓冲区大小作为返回值传递,且 returnCode 设置为 CCI_BUFFER_TOO_SMALL。
如果发生错误,则 returnCode 表明错误原因。