nraonrao
 
NRAO Home > CASA > CasaRef
componentlist.close - Function

1.4.2 Save the componentlist to disk and reset its state.
Description

The close function resets the componentlist to its default state. In this state it contains no components and is not associated with any table. This is the same state as a componentlist that has been newly created using the emptycomponentlist constructor.

This function flushes all the components in memory to disk if the componentlist is associated with a table. The table is then closed, and the contents of the list deleted.

If the list is not associated with a table its contents are still deleted and memory used by the list is released.

Arguments





Inputs

log

Send a message to the logger

allowed:

bool

Default:

true

Returns
bool

Example

See the example for the rename function.

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2008 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search

Updated daily during alpha development.