First, we will supply input arguments to the program in order to set various parameters and to determine the type of output desired. As we will see, that the same class can be used to contain different types of objects. We will illustrate this. 2- The AipsIO class refers to real IO as opposed to the acquisition of command line arguments which is the role of the Input class. The Create member function of Input builds from the command line three parameters referenced as vectorsize , usefile and outfile .
All parameters are optional.
The value stated as the second argument in each case is the default value suplied for use when the program is started without that specific parameter. The fourth argument is the type of the parameter's value. Two additional arguments are optional and are omitted in this sample program. This line supplies the value of each parameter. The default values will be used unless specific values have been supplied.