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


next up previous contents index
Next: tablecreatearraycoldesc - Function Up: table - Module Previous: tablecreatedesc - Function


tablecreatescalarcoldesc - Function



Package utility
Module table


create descriptor of a scalar column


Synopsis
tablecreatescalarcoldesc(columname, value, datamanagertype, datamanagergroup, options, maxlen, comment, tableserver)


Description
A descriptor for a scalar column can be created from a name for the column, and a data value, which is used only to determine the type of the column. Note that a record value is also possible.

It is possible to create the column descriptor in more detail by giving the data manager name, group, option and comment as well.

The data manager type tells which data manager (storage manager) is used to store the columns. The data manager type and group are explained in more detail in the Tables module description. The option allowed is:

Undefined
If not given, all possible values of the scalar have a meaning. If given, a value equal to the undefined values in ValType.h is a truely undefined value.

The column descriptor is used in creating a table descriptor.



Arguments

columname in Name of column
    Allowed: String
value in Example data value
    Allowed: Any type
datamanagertype in Type of data manager
    Allowed: String: StandardStMan|IncrementalStMan|TiledColumnStMan|TiledCellStMan|StManAipsIO
    Default: ''
datamanagergroup in Group of data manager
    Allowed: String
    Default: ''
options in Options
    Allowed: Int
    Default: 0
maxlen in Maximum string length
    Allowed: Int
    Default: 0
comment in Comment: informational for user
    Allowed: String
    Default: ''
tableserver in Table server to be used
    Allowed: Any tableserver
    Default: defaulttableserver


Returns
Column descriptor record


Example
scd1:=tablecreatescalarcoldesc("col2","aa"));
scd2:=tablecreatescalarcoldesc("col1",1,"IncrementalStMan");
td:=tablecreatedesc(scd1, scd1);

This creates a table description consisting of an integer column col1, and a string column col2. col1 uses the IncrementalStMan storage manager, while col2 uses the default storage manager StandardStMan.



See Also
tablecreatedesc tablecreatearraycoldesc





next up previous contents index
Next: tablecreatearraycoldesc - Function Up: table - Module Previous: tablecreatedesc - 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