Este grupo de funções recupera o valor do elemento da sintaxe especificado.
Especifique a função apropriada neste grupo que corresponda ao tipo de dado a ser recuperado:
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);
O valor do elemento é retornado.
Em alguns casos, se o buffer não for grande o suficiente para receber os dados, os dados não serão gravados no buffer. O tamanho do buffer necessário é transmitido como o valor de retorno, e returnCode é definido como CCI_BUFFER_TOO_SMALL. Por exemplo, cpiElementCharacterValue ou cpiElementDecimalValue usam esta técnica.
Se ocorrer um erro, returnCode indicará o motivo do erro.