この関数のグループは、指定した構文エレメントの値を検索します。
検索するデータのタイプに一致する適切な関数をこのグループから指定します。
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);
エレメントの値が戻されます。
場合によっては、バッファーの大きさが不十分でデータを受け取れない場合、このデータはバッファーに書き込まれません。 必要なバッファーのサイズが戻り値として渡され、returnCode は CCI_BUFFER_TOO_SMALL に設定されます。 例えば、cpiElementCharacterValue または cpiElementDecimalValue などでこの技法を使用します。
エラーが発生した場合、returnCode がエラーの理由を示します。