Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: types.integer - Function Up: types - Tool Previous: types.method - Function


types.list - Function



Package utility
Module tasking
Tool types


Define a list of other types


Synopsis
list(arg, types, options, name, names, default, dir, checkeval, help, allowunset)


Description
This widget allows the assembly of types containing zero or more composite types, where the composite type can be made of one or more other types. The user may then add or delete these composite types.

Any number of types may be included in a composite type. The corresponding arguments are given in either vector string or record form.

The test function typestest demonstrates a list type.



Arguments

arg   List of arguments
    Allowed: String
types   List of types
    Allowed: String
options   Record of options
    Allowed: Record
name   Name of the composite type
    Allowed: Vector String
names   Names of individual types
    Allowed: Vector String
default   Default values
    Allowed: Region
    Default: unset
dir   Direction of variable
    Allowed: String: 'in'|'inout'|'out'
    Default: 'in'
checkeval   Check eval'ability
    Allowed: Boolean
    Default: T
help   Help string: if unset, help file is used
    Allowed: String
    Default: unset
allowunset   Allow unset values?
    Allowed: Boolean
    Default: F


Example
# The following defines a list containing two other types: string
# and direction.
    list('Sources', types=['string', 'direction'], names="Source Direction",
	 name='Source', default=[Name='3C273', Direction=dm.direction()],
	 help=['Source name', 'Source direction'],
	 allowunset=T,
	 options=unset);





next up previous contents index
Next: types.integer - Function Up: types - Tool Previous: types.method - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15