SDDSlib
|
Generates an SDDS file with equispaced indices in a column. More...
Go to the source code of this file.
Classes | |
struct | SEQUENCE |
struct | DEFINITION |
Macros | |
#define | SEQ_END_GIVEN 0x0001 |
#define | SEQ_BEGIN_GIVEN 0x0002 |
#define | SEQ_NUMBER_GIVEN 0x0004 |
#define | SEQ_DELTA_GIVEN 0x0008 |
#define | SEQ_INTERVAL_GIVEN 0x0010 |
#define | SEQ_ENDplusDELTA (SEQ_END_GIVEN + SEQ_DELTA_GIVEN) |
#define | SEQ_ENDplusNUMBER (SEQ_END_GIVEN + SEQ_NUMBER_GIVEN) |
#define | SEQ_DELTAplusNUMBER (SEQ_DELTA_GIVEN + SEQ_NUMBER_GIVEN) |
Enumerations | |
enum | option_type { SET_PIPE , SET_DEFINE , SET_SEQUENCE , SET_REPEAT , SET_MAJOR_ORDER , SET_BREAK , N_OPTIONS } |
Functions | |
void | addSequence (char **item, long items, DEFINITION *definition) |
void | addDefinition (char **item, long items, DEFINITION **definition, long *definitions) |
void | generateOutput (SDDS_DATASET *outputTable, DEFINITION *definition, long definitions, long doBreak) |
void | setupOutputFile (SDDS_DATASET *outputTable, char *output, DEFINITION *definition, long definitions, short columnMajorOrder) |
void | createColumn (SDDS_DATASET *outputTable, DEFINITION *definition) |
int | main (int argc, char **argv) |
Variables | |
char * | option [N_OPTIONS] |
static char * | USAGE |
Generates an SDDS file with equispaced indices in a column.
This program creates an SDDS file containing a single page with one or more columns of data. The columns can be defined, and sequences of values can be generated using user-specified parameters. Multiple sequences, repeats, and page breaks are supported.
-define
option.-sequence
option, specifying start, end, delta, and interval values.-repeat
option.-break
option.-majorOrder
option.-define
: Define columns and their attributes.-sequence
: Specify sequences of data with flexible parameters.-repeat
: Repeat sequences a specified number of times.-break
: Insert page breaks between repeats.-majorOrder
: Choose between row-major or column-major data storage.output.sdds
with a column x
containing values 0 to 9.Definition in file sddssequence.c.
#define SEQ_BEGIN_GIVEN 0x0002 |
Definition at line 105 of file sddssequence.c.
#define SEQ_DELTA_GIVEN 0x0008 |
Definition at line 107 of file sddssequence.c.
#define SEQ_DELTAplusNUMBER (SEQ_DELTA_GIVEN + SEQ_NUMBER_GIVEN) |
Definition at line 113 of file sddssequence.c.
#define SEQ_END_GIVEN 0x0001 |
Definition at line 104 of file sddssequence.c.
#define SEQ_ENDplusDELTA (SEQ_END_GIVEN + SEQ_DELTA_GIVEN) |
Definition at line 111 of file sddssequence.c.
#define SEQ_ENDplusNUMBER (SEQ_END_GIVEN + SEQ_NUMBER_GIVEN) |
Definition at line 112 of file sddssequence.c.
#define SEQ_INTERVAL_GIVEN 0x0010 |
Definition at line 108 of file sddssequence.c.
#define SEQ_NUMBER_GIVEN 0x0004 |
Definition at line 106 of file sddssequence.c.
enum option_type |
Definition at line 58 of file sddssequence.c.
void addDefinition | ( | char ** | item, |
long | items, | ||
DEFINITION ** | definition, | ||
long * | definitions ) |
Definition at line 247 of file sddssequence.c.
void addSequence | ( | char ** | item, |
long | items, | ||
DEFINITION * | definition ) |
Definition at line 267 of file sddssequence.c.
void createColumn | ( | SDDS_DATASET * | outputTable, |
DEFINITION * | definition ) |
Definition at line 426 of file sddssequence.c.
void generateOutput | ( | SDDS_DATASET * | outputTable, |
DEFINITION * | definition, | ||
long | definitions, | ||
long | doBreak ) |
Definition at line 341 of file sddssequence.c.
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 138 of file sddssequence.c.
void setupOutputFile | ( | SDDS_DATASET * | outputTable, |
char * | output, | ||
DEFINITION * | definition, | ||
long | definitions, | ||
short | columnMajorOrder ) |
Definition at line 409 of file sddssequence.c.
char* option[N_OPTIONS] |
Definition at line 68 of file sddssequence.c.
|
static |
Definition at line 78 of file sddssequence.c.