SDDSlib
|
This file contains routines for getting the meta data for the SDDS objects. More...
Go to the source code of this file.
Functions | |
int32_t | SDDS_GetColumnInformation (SDDS_DATASET *SDDS_dataset, char *field_name, void *memory, int32_t mode,...) |
Retrieves information about a specified column in the SDDS dataset. | |
int32_t | SDDS_GetParameterInformation (SDDS_DATASET *SDDS_dataset, char *field_name, void *memory, int32_t mode,...) |
Retrieves information about a specified parameter in the SDDS dataset. | |
int32_t | SDDS_GetArrayInformation (SDDS_DATASET *SDDS_dataset, char *field_name, void *memory, int32_t mode,...) |
Retrieves information about a specified array in the SDDS dataset. | |
int32_t | SDDS_GetAssociateInformation (SDDS_DATASET *SDDS_dataset, char *field_name, void *memory, int32_t mode,...) |
Retrieves information about a specified associate in the SDDS dataset. | |
int32_t | SDDS_ChangeColumnInformation (SDDS_DATASET *SDDS_dataset, char *field_name, void *memory, int32_t mode,...) |
Modifies a specific field in a column definition within the SDDS dataset. | |
int32_t | SDDS_ChangeParameterInformation (SDDS_DATASET *SDDS_dataset, char *field_name, void *memory, int32_t mode,...) |
Modifies a specific field in a parameter definition within the SDDS dataset. | |
int32_t | SDDS_ChangeArrayInformation (SDDS_DATASET *SDDS_dataset, char *field_name, void *memory, int32_t mode,...) |
Modifies a specific field in an array definition within the SDDS dataset. | |
This file contains routines for getting the meta data for the SDDS objects.
This file provides functions for getting information about the SDDS columns, parameters and arrays.
Definition in file SDDS_info.c.
int32_t SDDS_ChangeArrayInformation | ( | SDDS_DATASET * | SDDS_dataset, |
char * | field_name, | ||
void * | memory, | ||
int32_t | mode, | ||
... ) |
Modifies a specific field in an array definition within the SDDS dataset.
This function allows you to change a particular field of an array definition, identified either by its name or index. The new value for the field can be provided either as a direct value or as a string, depending on the field type.
[in] | SDDS_dataset | Pointer to the SDDS_DATASET structure representing the dataset. |
[in] | field_name | A null-terminated string specifying the name of the field to be modified. |
[in] | memory | Pointer to the new value for the field. The type of this pointer should correspond to the data type of the field being modified:
|
[in] | mode | A bitwise combination of the following constants to specify how to identify the array and how to pass the new value:
|
The valid combinations of mode
are:
SDDS_SET_BY_INDEX | SDDS_PASS_BY_VALUE
: SDDS_SET_BY_NAME | SDDS_PASS_BY_VALUE
: SDDS_SET_BY_INDEX | SDDS_PASS_BY_STRING
: SDDS_SET_BY_NAME | SDDS_PASS_BY_STRING
: mode
parameter.Definition at line 597 of file SDDS_info.c.
int32_t SDDS_ChangeColumnInformation | ( | SDDS_DATASET * | SDDS_dataset, |
char * | field_name, | ||
void * | memory, | ||
int32_t | mode, | ||
... ) |
Modifies a specific field in a column definition within the SDDS dataset.
This function allows you to change a particular field of a column definition, identified either by its name or index. The new value for the field can be provided either as a direct value or as a string, depending on the field type.
[in] | SDDS_dataset | Pointer to the SDDS_DATASET structure representing the dataset. |
[in] | field_name | A null-terminated string specifying the name of the field to be modified. |
[in] | memory | Pointer to the new value for the field. The type of this pointer should correspond to the data type of the field being modified:
|
[in] | mode | A bitwise combination of the following constants to specify how to identify the column and how to pass the new value:
|
The valid combinations of mode
are:
SDDS_SET_BY_INDEX | SDDS_PASS_BY_VALUE
: SDDS_SET_BY_NAME | SDDS_PASS_BY_VALUE
: SDDS_SET_BY_INDEX | SDDS_PASS_BY_STRING
: SDDS_SET_BY_NAME | SDDS_PASS_BY_STRING
: mode
parameter.Definition at line 364 of file SDDS_info.c.
int32_t SDDS_ChangeParameterInformation | ( | SDDS_DATASET * | SDDS_dataset, |
char * | field_name, | ||
void * | memory, | ||
int32_t | mode, | ||
... ) |
Modifies a specific field in a parameter definition within the SDDS dataset.
This function allows you to change a particular field of a parameter definition, identified either by its name or index. The new value for the field can be provided either as a direct value or as a string, depending on the field type.
[in] | SDDS_dataset | Pointer to the SDDS_DATASET structure representing the dataset. |
[in] | field_name | A null-terminated string specifying the name of the field to be modified. |
[in] | memory | Pointer to the new value for the field. The type of this pointer should correspond to the data type of the field being modified:
|
[in] | mode | A bitwise combination of the following constants to specify how to identify the parameter and how to pass the new value:
|
The valid combinations of mode
are:
SDDS_SET_BY_INDEX | SDDS_PASS_BY_VALUE
: SDDS_SET_BY_NAME | SDDS_PASS_BY_VALUE
: SDDS_SET_BY_INDEX | SDDS_PASS_BY_STRING
: SDDS_SET_BY_NAME | SDDS_PASS_BY_STRING
: mode
parameter.Definition at line 485 of file SDDS_info.c.
int32_t SDDS_GetArrayInformation | ( | SDDS_DATASET * | SDDS_dataset, |
char * | field_name, | ||
void * | memory, | ||
int32_t | mode, | ||
... ) |
Retrieves information about a specified array in the SDDS dataset.
This function is the preferred alternative to SDDS_GetArrayDefinition
. It allows you to obtain information about a specific field of an array, either by the array's name or index.
[in] | SDDS_dataset | Pointer to the SDDS_DATASET structure representing the dataset. |
[in] | field_name | A null-terminated string specifying the name of the field for which information is requested. |
[out] | memory | Pointer to a variable where the retrieved information will be stored. The variable should be of type data_type* , where data_type corresponds to the type of the requested information. For STRING information, use char* . If memory is NULL , the function will verify the existence and type of the information, returning the data type without storing any data. |
[in] | mode | Specifies how to identify the array. Valid values are:
|
mode
parameter.Definition at line 192 of file SDDS_info.c.
int32_t SDDS_GetAssociateInformation | ( | SDDS_DATASET * | SDDS_dataset, |
char * | field_name, | ||
void * | memory, | ||
int32_t | mode, | ||
... ) |
Retrieves information about a specified associate in the SDDS dataset.
This function allows you to obtain information about a specific field of an associate, either by the associate's name or index.
[in] | SDDS_dataset | Pointer to the SDDS_DATASET structure representing the dataset. |
[in] | field_name | A null-terminated string specifying the name of the field for which information is requested. |
[out] | memory | Pointer to a variable where the retrieved information will be stored. The variable should be of type data_type* , where data_type corresponds to the type of the requested information. For STRING information, use char* . If memory is NULL , the function will verify the existence and type of the information, returning the data type without storing any data. |
[in] | mode | Specifies how to identify the associate. Valid values are:
|
mode
parameter.Definition at line 267 of file SDDS_info.c.
int32_t SDDS_GetColumnInformation | ( | SDDS_DATASET * | SDDS_dataset, |
char * | field_name, | ||
void * | memory, | ||
int32_t | mode, | ||
... ) |
Retrieves information about a specified column in the SDDS dataset.
This function is the preferred alternative to SDDS_GetColumnDefinition
. It allows you to obtain information about a specific field of a column, either by the column's name or index.
[in] | SDDS_dataset | Pointer to the SDDS_DATASET structure representing the dataset. |
[in] | field_name | A null-terminated string specifying the name of the field for which information is requested. |
[out] | memory | Pointer to a variable where the retrieved information will be stored. The variable should be of type data_type* , where data_type corresponds to the type of the requested information. For STRING information, use char* . If memory is NULL , the function will verify the existence and type of the information, returning the data type without storing any data. |
[in] | mode | Specifies how to identify the column. Valid values are:
|
mode
parameter.Definition at line 41 of file SDDS_info.c.
int32_t SDDS_GetParameterInformation | ( | SDDS_DATASET * | SDDS_dataset, |
char * | field_name, | ||
void * | memory, | ||
int32_t | mode, | ||
... ) |
Retrieves information about a specified parameter in the SDDS dataset.
This function is the preferred alternative to SDDS_GetParameterDefinition
. It allows you to obtain information about a specific field of a parameter, either by the parameter's name or index.
[in] | SDDS_dataset | Pointer to the SDDS_DATASET structure representing the dataset. |
[in] | field_name | A null-terminated string specifying the name of the field for which information is requested. |
[out] | memory | Pointer to a variable where the retrieved information will be stored. The variable should be of type data_type* , where data_type corresponds to the type of the requested information. For STRING information, use char* . If memory is NULL , the function will verify the existence and type of the information, returning the data type without storing any data. |
[in] | mode | Specifies how to identify the parameter. Valid values are:
|
mode
parameter.Definition at line 117 of file SDDS_info.c.