Previous: Accessing Data Stored in a SDDS File
Up: Two Templates for SDDS Application Organization
Previous Page: Accessing Data Stored in a SDDS File
Next Page: Commandline Tools for Use with SDDS Files

SDDS Output of Internally-Generated Data

SDDS_TABLE SDDS_table;

/* open the file and set a few data set properites */ SDDS_InitializeOutput(&SDDS_table, ...)

/* define columns */ SDDS_DefineColumn(&SDDS_table, column_name, ...); ...

/* define arrays */ SDDS_DefineArray(&SDDS_table, array_name, ...); ...

/* define parameters */ SDDS_DefineParameter(&SDDS_table, parameter_name, ...); ...

/* define associate files */ SDDS_DefineAssociate(&SDDS_table, associate_name, ...); ...

/* write the header */ SDDS_WriteLayout(&SDDS_table);

/* generate and output the data */ while (DataGenerated(my_data_structure)) { /* start a new SDDS data table */ SDDS_StartTable(&SDDS_table);

/* put data into SDDS parameters and columns */ SDDS_SetParameters(&SDDS_table, ...); ... SDDS_SetArrays(&SDDS_table, ...); ... SDDS_SetRowValues(&SDDS_table, ...); ...

/* write the new data table */ SDDS_WriteTable(&SDDS_table);

}

SDDS_Terminate(&SDDS_table);

borland@aps.anl.gov
Mon Jan 10 14:46:05 CST 1994