int cdds_dict(names, mode);
dictionary nominal initialization.
filename Definitions read from filename.
stdin: Definitions read from standard input.
stdout: Definitions read from standard output.
cmd: Command line definitions.
par: Command line and "par= file ..." definitions.
env: All environment variables.
fdn: File descriptor n.
tmpxxx: Empty, temporary dictionary xxx.
mode determines the subsequent mode of the named dictionary(s).
It also controls initialization, when a dictionary is first selected.
If mode is "scan", "suspend" or "reset",
then existing (nominal) contents are preserved; if mode is
"print", then existing (nominal) contents are discarded
(empty). Initialization is only performed when
changing a dictionary from reset (closed) to another mode.
Dictionaries may also be closed, when no longer needed. This
implies initialization if accessed again.
If mode is "scan", the named dictionaries are opened
for scanning by the cdds_scan... routines.
If mode is "print", the named dictionary is opened
for appending new definitions into the dictionary by the
cdds_print... routines.
If mode is "suspend", the named dictionaries are
explicitly suspended from their current mode. Their contents are
preserved for subsequent selection. This is done automatically if
the dictionary has not been referenced by the most recent
"scan" or "print" mode.
If mode is "reset", the named dictionaries are
explicitly reset. If they are subsequently selected, their contents
are re-initialized. All dictionaries are implicitly reset, when a
process terminates normally. The "close" keyword for
mode is deprecated because its less intuitive than "reset".
If mode is "freeze", the named dictionaries are
frozen from any further modification. This is done internally by
DDS to prevent redefining the binary after the dataset is opened.
mode access initialization
"scan" input preserve contents
"print" output discard contents
"suspend" none temporary suspend
"reset" none close dictionary
"close" none same as "reset"
"freeze" none freeze contents
int j;
/* select "foo_dict" dictionary for printing */
j = cdds_dict("foo_dict", "print");
/* select two dictionaries for scanning */
j = cdds_dict("par: bar_dict", "scan");
cdds_in Initialize dictionary for input data
cdds_out Initialize dictionary for output data
cdds_mod Initialize dictionary for modify data