SDDSlib
|
This file provides functions for transferring definitions from one SDDS dataset to another. More...
Go to the source code of this file.
Functions | |
int32_t | SDDS_TransferColumnDefinition (SDDS_DATASET *target, SDDS_DATASET *source, char *name, char *newName) |
Transfers a column definition from a source dataset to a target dataset. | |
int32_t | SDDS_TransferParameterDefinition (SDDS_DATASET *target, SDDS_DATASET *source, char *name, char *newName) |
Transfers a parameter definition from a source dataset to a target dataset. | |
int32_t | SDDS_TransferArrayDefinition (SDDS_DATASET *target, SDDS_DATASET *source, char *name, char *newName) |
Transfers an array definition from a source dataset to a target dataset. | |
int32_t | SDDS_TransferAssociateDefinition (SDDS_DATASET *target, SDDS_DATASET *source, char *name, char *newName) |
Transfers an associate definition from a source dataset to a target dataset. | |
int32_t | SDDS_DefineParameterLikeColumn (SDDS_DATASET *target, SDDS_DATASET *source, char *name, char *newName) |
Defines a parameter in the target dataset based on a column definition from the source dataset. | |
int32_t | SDDS_DefineParameterLikeArray (SDDS_DATASET *target, SDDS_DATASET *source, char *name, char *newName) |
Defines a parameter in the target dataset based on an array definition from the source dataset. | |
int32_t | SDDS_DefineColumnLikeParameter (SDDS_DATASET *target, SDDS_DATASET *source, char *name, char *newName) |
Defines a column in the target dataset based on a parameter definition from the source dataset. | |
int32_t | SDDS_DefineColumnLikeArray (SDDS_DATASET *target, SDDS_DATASET *source, char *name, char *newName) |
Defines a column in the target dataset based on an array definition from the source dataset. | |
int32_t | SDDS_TransferAllParameterDefinitions (SDDS_DATASET *SDDS_target, SDDS_DATASET *SDDS_source, uint32_t mode) |
Transfers all parameter definitions from a source dataset to a target dataset. | |
int32_t | SDDS_TransferAllColumnDefinitions (SDDS_DATASET *SDDS_target, SDDS_DATASET *SDDS_source, uint32_t mode) |
Transfers all column definitions from a source dataset to a target dataset. | |
int32_t | SDDS_TransferAllArrayDefinitions (SDDS_DATASET *SDDS_target, SDDS_DATASET *SDDS_source, uint32_t mode) |
Transfers all array definitions from a source dataset to a target dataset. | |
This file provides functions for transferring definitions from one SDDS dataset to another.
This file provides functions for transferring definitions from one SDDS dataset to another.
Definition in file SDDS_transfer.c.
int32_t SDDS_DefineColumnLikeArray | ( | SDDS_DATASET * | target, |
SDDS_DATASET * | source, | ||
char * | name, | ||
char * | newName ) |
Defines a column in the target dataset based on an array definition from the source dataset.
This function creates a column in the target SDDS dataset with properties matching those of a specified array in the source dataset.
target | Pointer to the SDDS_DATASET structure representing the target dataset. |
source | Pointer to the SDDS_DATASET structure representing the source dataset. |
name | The name of the array in the source dataset whose definition is to be used. |
newName | The name of the column in the target dataset. If NULL , the original name is used. |
1
on success; 0
on failure. On failure, an error message is recorded. Definition at line 302 of file SDDS_transfer.c.
int32_t SDDS_DefineColumnLikeParameter | ( | SDDS_DATASET * | target, |
SDDS_DATASET * | source, | ||
char * | name, | ||
char * | newName ) |
Defines a column in the target dataset based on a parameter definition from the source dataset.
This function creates a column in the target SDDS dataset with properties matching those of a specified parameter in the source dataset.
target | Pointer to the SDDS_DATASET structure representing the target dataset. |
source | Pointer to the SDDS_DATASET structure representing the source dataset. |
name | The name of the parameter in the source dataset whose definition is to be used. |
newName | The name of the column in the target dataset. If NULL , the original name is used. |
1
on success; 0
on failure. On failure, an error message is recorded. Definition at line 264 of file SDDS_transfer.c.
int32_t SDDS_DefineParameterLikeArray | ( | SDDS_DATASET * | target, |
SDDS_DATASET * | source, | ||
char * | name, | ||
char * | newName ) |
Defines a parameter in the target dataset based on an array definition from the source dataset.
This function creates a parameter in the target SDDS dataset with properties matching those of a specified array in the source dataset.
target | Pointer to the SDDS_DATASET structure representing the target dataset. |
source | Pointer to the SDDS_DATASET structure representing the source dataset. |
name | The name of the array in the source dataset whose definition is to be used. |
newName | The name of the parameter in the target dataset. If NULL , the original name is used. |
1
on success; 0
on failure. On failure, an error message is recorded. Definition at line 226 of file SDDS_transfer.c.
int32_t SDDS_DefineParameterLikeColumn | ( | SDDS_DATASET * | target, |
SDDS_DATASET * | source, | ||
char * | name, | ||
char * | newName ) |
Defines a parameter in the target dataset based on a column definition from the source dataset.
This function creates a parameter in the target SDDS dataset with properties matching those of a specified column in the source dataset.
target | Pointer to the SDDS_DATASET structure representing the target dataset. |
source | Pointer to the SDDS_DATASET structure representing the source dataset. |
name | The name of the column in the source dataset whose definition is to be used. |
newName | The name of the parameter in the target dataset. If NULL , the original name is used. |
1
on success; 0
on failure. On failure, an error message is recorded. Definition at line 188 of file SDDS_transfer.c.
int32_t SDDS_TransferAllArrayDefinitions | ( | SDDS_DATASET * | SDDS_target, |
SDDS_DATASET * | SDDS_source, | ||
uint32_t | mode ) |
Transfers all array definitions from a source dataset to a target dataset.
This function defines all arrays in the target SDDS dataset to match the array definitions in the source SDDS dataset. Currently, only mode 0
is supported, which results in an error if any array already exists in the target dataset.
SDDS_target | Pointer to the SDDS_DATASET structure representing the target dataset. |
SDDS_source | Pointer to the SDDS_DATASET structure representing the source dataset. |
mode | Flags that determine how to handle existing arrays. Valid value:
|
1
on success; 0
on failure. On failure, an error message is recorded.Definition at line 506 of file SDDS_transfer.c.
int32_t SDDS_TransferAllColumnDefinitions | ( | SDDS_DATASET * | SDDS_target, |
SDDS_DATASET * | SDDS_source, | ||
uint32_t | mode ) |
Transfers all column definitions from a source dataset to a target dataset.
This function defines all columns in the target SDDS dataset to match the column definitions in the source SDDS dataset. It handles existing columns based on the specified mode.
SDDS_target | Pointer to the SDDS_DATASET structure representing the target dataset. |
SDDS_source | Pointer to the SDDS_DATASET structure representing the source dataset. |
mode | Flags that determine how to handle existing columns. Valid flags include:
|
1
on success; 0
on failure. On failure, an error message is recorded. Definition at line 424 of file SDDS_transfer.c.
int32_t SDDS_TransferAllParameterDefinitions | ( | SDDS_DATASET * | SDDS_target, |
SDDS_DATASET * | SDDS_source, | ||
uint32_t | mode ) |
Transfers all parameter definitions from a source dataset to a target dataset.
This function defines all parameters in the target SDDS dataset to match the parameter definitions in the source SDDS dataset. It handles existing parameters based on the specified mode.
SDDS_target | Pointer to the SDDS_DATASET structure representing the target dataset. |
SDDS_source | Pointer to the SDDS_DATASET structure representing the source dataset. |
mode | Flags that determine how to handle existing parameters. Valid flags include:
|
1
on success; 0
on failure. On failure, an error message is recorded. Definition at line 343 of file SDDS_transfer.c.
int32_t SDDS_TransferArrayDefinition | ( | SDDS_DATASET * | target, |
SDDS_DATASET * | source, | ||
char * | name, | ||
char * | newName ) |
Transfers an array definition from a source dataset to a target dataset.
This function defines an array in the target SDDS dataset to match the definition of an array in the source SDDS dataset.
target | Pointer to the SDDS_DATASET structure representing the target dataset. |
source | Pointer to the SDDS_DATASET structure representing the source dataset. |
name | The name of the array in the source dataset to be transferred. |
newName | The name of the array in the target dataset. If NULL , the original name is used. |
1
on success; 0
on failure. On failure, an error message is recorded. Definition at line 111 of file SDDS_transfer.c.
int32_t SDDS_TransferAssociateDefinition | ( | SDDS_DATASET * | target, |
SDDS_DATASET * | source, | ||
char * | name, | ||
char * | newName ) |
Transfers an associate definition from a source dataset to a target dataset.
This function defines an associate in the target SDDS dataset to match the definition of an associate in the source SDDS dataset.
target | Pointer to the SDDS_DATASET structure representing the target dataset. |
source | Pointer to the SDDS_DATASET structure representing the source dataset. |
name | The name of the associate in the source dataset to be transferred. |
newName | The name of the associate in the target dataset. If NULL , the original name is used. |
1
on success; 0
on failure. On failure, an error message is recorded. Definition at line 149 of file SDDS_transfer.c.
int32_t SDDS_TransferColumnDefinition | ( | SDDS_DATASET * | target, |
SDDS_DATASET * | source, | ||
char * | name, | ||
char * | newName ) |
Transfers a column definition from a source dataset to a target dataset.
This function defines a column in the target SDDS dataset to match the definition of a column in the source SDDS dataset.
target | Pointer to the SDDS_DATASET structure representing the target dataset. |
source | Pointer to the SDDS_DATASET structure representing the source dataset. |
name | The name of the column in the source dataset to be transferred. |
newName | The name of the column in the target dataset. If NULL , the original name is used. |
1
on success; 0
on failure. On failure, an error message is recorded. Definition at line 35 of file SDDS_transfer.c.
int32_t SDDS_TransferParameterDefinition | ( | SDDS_DATASET * | target, |
SDDS_DATASET * | source, | ||
char * | name, | ||
char * | newName ) |
Transfers a parameter definition from a source dataset to a target dataset.
This function defines a parameter in the target SDDS dataset to match the definition of a parameter in the source SDDS dataset.
target | Pointer to the SDDS_DATASET structure representing the target dataset. |
source | Pointer to the SDDS_DATASET structure representing the source dataset. |
name | The name of the parameter in the source dataset to be transferred. |
newName | The name of the parameter in the target dataset. If NULL , the original name is used. |
1
on success; 0
on failure. On failure, an error message is recorded. Definition at line 73 of file SDDS_transfer.c.