SDDSlib
|
Array Dereferencing Tool for SDDS Data Sets. More...
Go to the source code of this file.
Classes | |
struct | DEREF_REQUEST |
Macros | |
#define | COLUMN_CLASS 0 |
#define | PARAMETER_CLASS 1 |
#define | ARRAY_CLASS 2 |
#define | CONSTANT_CLASS 3 |
#define | CLASS_NAMES 4 |
#define | EXIT_OUTBOUNDS 0x1U |
#define | DELETE_OUTBOUNDS 0x2U |
#define | ARRAY_SOURCE 0x1U |
#define | COLUMN_SOURCE 0x2U |
Enumerations | |
enum | option_type { SET_COLUMN , SET_PARAMETER , SET_PIPE , SET_OUTOFBOUNDS , SET_CONSTANT , SET_MAJOR_ORDER , N_OPTIONS } |
Functions | |
long | DereferenceColumnWithParameter (SDDS_DATASET *outSet, DEREF_REQUEST *deref, unsigned long outOfBounds) |
long | DereferenceColumnWithColumn (SDDS_DATASET *outSet, DEREF_REQUEST *deref, unsigned long outOfBounds) |
long | DereferenceArrayWithParameter (SDDS_DATASET *outSet, DEREF_REQUEST *deref, unsigned long outOfBounds) |
long | DereferenceArrayWithColumn (SDDS_DATASET *outSet, DEREF_REQUEST *deref, unsigned long outOfBounds) |
long | DoDereferencing (SDDS_DATASET *outSet, DEREF_REQUEST *deref, long derefs, unsigned long outOfBounds) |
void | setupOutputFile (SDDS_DATASET *outSet, char *output, SDDS_DATASET *inSet, char *input, DEREF_REQUEST *deref, long derefs, short columnMajorOrder) |
void | addDerefRequest (DEREF_REQUEST **deref, long *derefs, char **argv, long argc, long class) |
int | main (int argc, char **argv) |
Variables | |
static char * | optionName [N_OPTIONS] |
static char * | USAGE |
Array Dereferencing Tool for SDDS Data Sets.
This program performs array dereferencing on SDDS (Self Describing Data Sets) data files. It allows users to create new columns or parameters by indexing into existing array or column data. The program supports various options for handling out-of-bounds indices and specifying the order of data processing (row-major or column-major).
-pipe=[input][,output]
: Use standard input and/or output instead of files.-column=<newName>,{arraySource|columnSource}=<name>,<indexColumnName>[,...]
: Define a new column by dereferencing an existing array or column.-parameter=<newName>,{arraySource|columnSource}=<name>,<indexParameterName>[,...]
: Define a new parameter by dereferencing an existing array or column.-constant=<newName>,{arraySource|columnSource}=<name>,<indexValue>[,<indexValue>]
: Define a new constant by dereferencing an existing array or column.-outOfBounds={exit|delete}
: Specify the behavior when an index is out of bounds (exit
the program or delete
the row).-majorOrder=row|column
: Specify the major order for data processing.Definition in file sddsderef.c.
#define ARRAY_CLASS 2 |
Definition at line 66 of file sddsderef.c.
#define CLASS_NAMES 4 |
Definition at line 68 of file sddsderef.c.
#define COLUMN_CLASS 0 |
Definition at line 64 of file sddsderef.c.
#define CONSTANT_CLASS 3 |
Definition at line 67 of file sddsderef.c.
#define DELETE_OUTBOUNDS 0x2U |
Definition at line 102 of file sddsderef.c.
#define EXIT_OUTBOUNDS 0x1U |
Definition at line 101 of file sddsderef.c.
#define PARAMETER_CLASS 1 |
Definition at line 65 of file sddsderef.c.
enum option_type |
Definition at line 45 of file sddsderef.c.
void addDerefRequest | ( | DEREF_REQUEST ** | deref, |
long * | derefs, | ||
char ** | argv, | ||
long | argc, | ||
long | class ) |
Definition at line 284 of file sddsderef.c.
long DereferenceArrayWithColumn | ( | SDDS_DATASET * | outSet, |
DEREF_REQUEST * | deref, | ||
unsigned long | outOfBounds ) |
Definition at line 480 of file sddsderef.c.
long DereferenceArrayWithParameter | ( | SDDS_DATASET * | outSet, |
DEREF_REQUEST * | deref, | ||
unsigned long | outOfBounds ) |
Definition at line 428 of file sddsderef.c.
long DereferenceColumnWithColumn | ( | SDDS_DATASET * | outSet, |
DEREF_REQUEST * | deref, | ||
unsigned long | outOfBounds ) |
Definition at line 543 of file sddsderef.c.
long DereferenceColumnWithParameter | ( | SDDS_DATASET * | outSet, |
DEREF_REQUEST * | deref, | ||
unsigned long | outOfBounds ) |
Definition at line 386 of file sddsderef.c.
long DoDereferencing | ( | SDDS_DATASET * | outSet, |
DEREF_REQUEST * | deref, | ||
long | derefs, | ||
unsigned long | outOfBounds ) |
Definition at line 343 of file sddsderef.c.
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 104 of file sddsderef.c.
void setupOutputFile | ( | SDDS_DATASET * | outSet, |
char * | output, | ||
SDDS_DATASET * | inSet, | ||
char * | input, | ||
DEREF_REQUEST * | deref, | ||
long | derefs, | ||
short | columnMajorOrder ) |
Definition at line 201 of file sddsderef.c.
|
static |
Definition at line 55 of file sddsderef.c.
|
static |
Definition at line 70 of file sddsderef.c.