BIN_TAG function cddx_in2(alias, value, title);
After opening a file for input with "cddx_in2" the input buffer Dictionary will be left open for scanning. The open process will look for "alias" for the Dictionary (or usp, segy or su binary on input), "alias_data" for overriding the binary, and "alias_format" for overriding the format. The input parameter, "value", is the default value (eg. "stdin:") used for a fallback in cases where "alias" is not specified by the user. The input parameter, "title", should be a brief one line description of the application program. It will return a binary tag associated with the internal binary upon successful opening, a value of -2 if the dataset is not specified and no default value is given, otherwise a value of -1 to signify an open failure.
int n1, ier, headerSize, bufferSize; BIN_TAG in_bin = cddx_in2("in", "stdin:", title); ier = cdds_scanf("size.axis(1)", "%d", &n1); headerSize = cddx_index(in_bin, 'Samples', DDS_FLOAT); bufferSize = n1 + headerSize; float *trace = new float[bufferSize]; ier = cddx_read(in_bin, trace, 1);