Queste funzioni consentono di ottenere il valore dell'elemento di sintassi specificato.
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);
Viene restituito il valore dell'elemento.
In alcuni casi, ad esempio, cpiElementCharacterValue o cpiElementDecimalValue, se il buffer non è sufficiente a ricevere i dati, questi non vengono scritti nel buffer. La dimensione del buffer richiesto viene passata come valore di restituzione e returnCode è impostato su CCI_BUFFER_TOO_SMALL.
Se si verifica un errore, il parametro returnCode indica il motivo dell'errore.