Use uma ou mais das funções neste grupo para recuperar o valor do elemento da sintaxe especificado.
Especifique a função apropriada neste grupo que corresponda ao tipo de dado a ser recuperado:
CciSize cniElementBitArrayValue(
int* returnCode,
CciElement* targetElement,
const struct CciBitArray* value);
CciBool
cniElementBooleanValue(
int* returnCode,
CciElement* targetElement);
CciSize
cniElementByteArrayValue(
int* returnCode,
CciElement* targetElement,
const struct CciByteArray* value);
CciSize
cniElementCharacterValue(
int* returnCode,
CciElement* targetElement,
const CciChar* value,
CciSize length);
struct CciDate
cniElementDateValue(
int* returnCode,
CciElement* targetElement);
CciSize
cniElementDecimalValue(
int* returnCode,
CciElement* targetElement,
const CciChar* value,
CciSize length);
struct CciTimestamp
cniElementGmtTimestampValue(
int* returnCode,
CciElement* targetElement);
struct CciTime
cniElementGmtTimeValue(
int* returnCode,
CciElement* targetElement);
CciInt
cniElementIntegerValue(
int* returnCode,
CciElement* targetElement);
CciReal
cniElementRealValue(
int* returnCode,
CciElement* targetElement);
struct CciTimestamp
cniElementTimestampValue(
int* returnCode,
CciElement* targetElement);
struct CciTime
cniElementTimeValue(
int* returnCode,
CciElement* targetElement);
numberOfChars = cniElementCharacterValue(
&rc, firstChild, (CciChar*)&elementValue,
sizeof(elementValue)
);
if (rc==CCI_BUFFER_TOO_SMALL) {
free(elementValue);
elementValue = (CciChar*)malloc(numberOfChars * sizeof(CciChar));
numberOfChars = cniElementCharacterValue(
&rc, firstChild, (CciChar*)&elementValue, sizeof(elementValue));
}