![]() |
Diffusion C API 6.11.5
|
Schema Field for RecordV2. More...
Typedefs | |
typedef struct DIFFUSION_RECORDV2_SCHEMA_FIELD_T | DIFFUSION_RECORDV2_SCHEMA_FIELD_T |
Opaque recordv2 schema field data type. | |
Functions | |
bool | diffusion_recordv2_schema_field_get_type (const DIFFUSION_RECORDV2_SCHEMA_FIELD_T *schema_field, DIFFUSION_RECORDV2_FIELD_TYPE_T *field_type, DIFFUSION_API_ERROR *error) |
Retrieves the field type. | |
bool | diffusion_recordv2_schema_field_get_scale (const DIFFUSION_RECORDV2_SCHEMA_FIELD_T *schema_field, int *scale, DIFFUSION_API_ERROR *error) |
Retrieves the scale of a DIFFUSION_RECORDV2_FIELD_TYPE_T decimal field or 0 for other types. | |
bool | diffusion_recordv2_schema_field_get_name (const DIFFUSION_RECORDV2_SCHEMA_FIELD_T *schema_field, char **field_name, DIFFUSION_API_ERROR *error) |
Retrieves the field name. | |
bool | diffusion_recordv2_schema_field_get_min (const DIFFUSION_RECORDV2_SCHEMA_FIELD_T *schema_field, int *min, DIFFUSION_API_ERROR *error) |
Retrieves minimum number of occurrences. | |
bool | diffusion_recordv2_schema_field_get_max (const DIFFUSION_RECORDV2_SCHEMA_FIELD_T *schema_field, int *max, DIFFUSION_API_ERROR *error) |
Retrieves the maximum number of occurrences. | |
bool | diffusion_recordv2_schema_field_is_variable (const DIFFUSION_RECORDV2_SCHEMA_FIELD_T *schema_field, bool *is_variable, DIFFUSION_API_ERROR *error) |
Retrieves the field's variable multiplicity. | |
void | diffusion_recordv2_schema_field_free (DIFFUSION_RECORDV2_SCHEMA_FIELD_T *schema_field) |
Free a schema field. | |
Schema Field for RecordV2.
void diffusion_recordv2_schema_field_free | ( | DIFFUSION_RECORDV2_SCHEMA_FIELD_T * | schema_field | ) |
Free a schema field.
schema_field | schema field to be freed |
bool diffusion_recordv2_schema_field_get_max | ( | const DIFFUSION_RECORDV2_SCHEMA_FIELD_T * | schema_field, |
int * | max, | ||
DIFFUSION_API_ERROR * | error | ||
) |
Retrieves the maximum number of occurrences.
This will be a positive value greater than or equal to the "min" value, or -1 to indicate an unlimited number.
schema_field | the schema field |
max | populated with the field's maximum number of occurrences. |
error | populated if an error occurs. Can be NULL. |
bool diffusion_recordv2_schema_field_get_min | ( | const DIFFUSION_RECORDV2_SCHEMA_FIELD_T * | schema_field, |
int * | min, | ||
DIFFUSION_API_ERROR * | error | ||
) |
Retrieves minimum number of occurrences.
This may be 0 for a variable multiplicity field; otherwise, it will be a positive value.
schema_field | the schema field |
min | populated with the field's minimum number of occurrences. |
error | populated if an error occurs. Can be NULL. |
bool diffusion_recordv2_schema_field_get_name | ( | const DIFFUSION_RECORDV2_SCHEMA_FIELD_T * | schema_field, |
char ** | field_name, | ||
DIFFUSION_API_ERROR * | error | ||
) |
Retrieves the field name.
schema_field | the schema field |
field_name | populated with a pointer to the field's name. Must be freed after use. |
error | populated if an error occurs. Can be NULL. |
bool diffusion_recordv2_schema_field_get_scale | ( | const DIFFUSION_RECORDV2_SCHEMA_FIELD_T * | schema_field, |
int * | scale, | ||
DIFFUSION_API_ERROR * | error | ||
) |
Retrieves the scale of a DIFFUSION_RECORDV2_FIELD_TYPE_T
decimal field or 0 for other types.
The scale represents the number of places to the right of the decimal point in a decimal number.
schema_field | the schema field |
scale | populated with the field's scale |
error | populated if an error occurs. Can be NULL. |
bool diffusion_recordv2_schema_field_get_type | ( | const DIFFUSION_RECORDV2_SCHEMA_FIELD_T * | schema_field, |
DIFFUSION_RECORDV2_FIELD_TYPE_T * | field_type, | ||
DIFFUSION_API_ERROR * | error | ||
) |
Retrieves the field type.
schema_field | the schema field |
field_type | populated with the field's type |
error | populated if an error occurs. Can be NULL. |
bool diffusion_recordv2_schema_field_is_variable | ( | const DIFFUSION_RECORDV2_SCHEMA_FIELD_T * | schema_field, |
bool * | is_variable, | ||
DIFFUSION_API_ERROR * | error | ||
) |
Retrieves the field's variable multiplicity.
True if the field has variable multiplicity. i.e. min != max.
schema_field | the schema field |
is_variable | populated with a bool stating if the field has variable multiplicity. |
error | populated if an error occurs. Can be NULL. |