next up previous contents index
Next: Needed arguments Up: Module's header Previous: Usage Statement   Contents   Index


Options


'c'- >C_id

(where 'c' is a character) defines a flag option (i.e. an option without value); C_id is a C variable of type pointer to a scalar (e.g. char *). The flag has been set by the user if and only if C_id $ \not=$ NULL.


'c':H_id - >C_id

(where 'c' is a character) defines an option with input value. The flag has been set by the user if and only if C_id $ \not=$ NULL. If C_id $ \not=$ NULL, the value of the option is given by *C_id. C_id is a C variable of type pointer to a scalar (e.g. char *), in this case its value is defined in the command line by writting the number (or character) on the terminal, or a C variable of MegaWave2 type (e.g. Cmovie), in this case its value is given by writting the file name on the terminal.


'c':[H_id = Val]- >C_id

defines an option with default input value. This case is similar to the former, but when the option is not set by the user then *C_id= Val that is, one can never have C_id = NULL. MegaWave2 types are not allowed. Val must be a constant of same type than C_id. Warning: no implicit conversions are made (e.g. if C_id is of type float, Val = 1.0 is allowed but not Val = 1).


'c':H_id - >C_id [Min,Max]

defines an option with input value and with interval checking (an error is send if the input value does not fit into the given interval [Min,Max]). MegaWave2 types are not allowed. Min and Max must be constant of same type than C_id with Max > Min.


'c':[H_id = Val] - >C_id [Min,Max]

defines an option with default input value and with interval checking.


'c':H_id < -C_id

(where 'c' is a character) defines an option with output value. The flag has been set by the user if and only if C_id $ \not=$ NULL. If C_id $ \not=$ NULL, MegaWave2 writes the output value at the end of the module from the content of *C_id. C_id is a C variable of type pointer to a scalar (e.g. char *) or a C variable of MegaWave2 type (e.g. Cmovie). In this last case and if C_id $ \not=$ NULL, you must allocate the structure to the right size using functions of the system library, before doing any computation with this variable (see Volume two: ``MegaWave2 System Library'').

Restriction: C_id cannot be a function (return value of the module), whereas this is allowed with needed arguments (see section 4.3).


next up previous contents index
Next: Needed arguments Up: Module's header Previous: Usage Statement   Contents   Index
mw 2004-05-05