Este grupo de funciones recuperan el valor del elemento de sintaxis especificado.
Especifique la función adecuada de este grupo que coincida con el tipo de datos que se va a recuperar:
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);
Se devuelve el valor del elemento.
En algunos casos, si el almacenamiento intermedio no es lo suficientemente grande como para recibir los datos, los datos no se graban en el almacenamiento intermedio. El tamaño del almacenamiento intermedio necesario se pasa como valor de retorno y returnCode se establece en CCI_BUFFER_TOO_SMALL. Por ejemplo, cpiElementCharacterValue y cpiElementDecimalValue utilizan esta técnica.
Si se produce un error, returnCode indica la razón del error.