![]() |
Diffusion C API 6.11.5
|
Schema Record for RecordV2. More...
Typedefs | |
typedef struct DIFFUSION_RECORDV2_SCHEMA_RECORD_T | DIFFUSION_RECORDV2_SCHEMA_RECORD_T |
Opaque recordv2 schema record data type. | |
Functions | |
bool | diffusion_recordv2_schema_record_get_fields (const DIFFUSION_RECORDV2_SCHEMA_RECORD_T *schema_record, LIST_T **fields, DIFFUSION_API_ERROR *error) |
Retrieves a copy of the ordered list of field definitions in the schema. | |
bool | diffusion_recordv2_schema_record_get_name (const DIFFUSION_RECORDV2_SCHEMA_RECORD_T *schema_record, char **record_name, DIFFUSION_API_ERROR *error) |
Retrieves a copy of the node name. | |
bool | diffusion_recordv2_schema_record_get_min (const DIFFUSION_RECORDV2_SCHEMA_RECORD_T *schema_record, int *min, DIFFUSION_API_ERROR *error) |
Retrieves minimum number of occurrences. | |
bool | diffusion_recordv2_schema_record_get_max (const DIFFUSION_RECORDV2_SCHEMA_RECORD_T *schema_record, int *max, DIFFUSION_API_ERROR *error) |
Retrieves maximum number of occurrences. | |
bool | diffusion_recordv2_schema_record_is_variable (const DIFFUSION_RECORDV2_SCHEMA_RECORD_T *schema_record, bool *is_variable, DIFFUSION_API_ERROR *error) |
Retrieves true if the node has variable multiplicity. | |
void | diffusion_recordv2_schema_record_free (DIFFUSION_RECORDV2_SCHEMA_RECORD_T *schema_record) |
Free a schema record. | |
Schema Record for RecordV2.
void diffusion_recordv2_schema_record_free | ( | DIFFUSION_RECORDV2_SCHEMA_RECORD_T * | schema_record | ) |
Free a schema record.
schema_record | schema record to be freed |
bool diffusion_recordv2_schema_record_get_fields | ( | const DIFFUSION_RECORDV2_SCHEMA_RECORD_T * | schema_record, |
LIST_T ** | fields, | ||
DIFFUSION_API_ERROR * | error | ||
) |
Retrieves a copy of the ordered list of field definitions in the schema.
There will be at least one.
schema_record | the schema record |
fields | populated with a memory allocated LIST_T containing the records fields as DIFFUSION_RECORDV2_SCHEMA_FIELD_T s. Must be freed after use. |
error | populated if an error occurs. Can be NULL. |
bool diffusion_recordv2_schema_record_get_max | ( | const DIFFUSION_RECORDV2_SCHEMA_RECORD_T * | schema_record, |
int * | max, | ||
DIFFUSION_API_ERROR * | error | ||
) |
Retrieves 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_record | the schema record |
max | populated with the record's maximum number of occurrences. |
error | populated if an error occurs. Can be NULL. |
bool diffusion_recordv2_schema_record_get_min | ( | const DIFFUSION_RECORDV2_SCHEMA_RECORD_T * | schema_record, |
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_record | the schema record |
min | populated with the record's minimum number of occurrences. |
error | populated if an error occurs. Can be NULL. |
bool diffusion_recordv2_schema_record_get_name | ( | const DIFFUSION_RECORDV2_SCHEMA_RECORD_T * | schema_record, |
char ** | record_name, | ||
DIFFUSION_API_ERROR * | error | ||
) |
Retrieves a copy of the node name.
schema_record | the schema record |
record_name | populated with a pointer to the record's name. Must be freed after use. |
error | populated if an error occurs. Can be NULL. |
bool diffusion_recordv2_schema_record_is_variable | ( | const DIFFUSION_RECORDV2_SCHEMA_RECORD_T * | schema_record, |
bool * | is_variable, | ||
DIFFUSION_API_ERROR * | error | ||
) |
Retrieves true if the node has variable multiplicity.
i.e. min != max.
schema_record | the schema record |
is_variable | populated with a bool stating if the record has variable multiplicity. |
error | populated if an error occurs. Can be NULL. |