next up previous
Next: Storing AST Objects in FITS Headers (FitsChans)
Up: Saving and Restoring Objects (Channels)
Previous: Writing Objects to Files

Reading and Writing Objects to other Places  

It should be obvious from the above ([*] and [*]) that a Channel's source and sink routines provide a flexible means of intercepting textual data that describes AST Objects as it flows in and out of your program. In fact, you might like to regard a Channel simply as a filter for converting AST Objects to and from a stream of text which is then handled by your source and sink routines, where the real I/O occurs.

This gives you the ability to store AST Objects in virtually any data system, so long as you can convert a stream of text into something that can be stored (it need no longer be text) and retrieve it again. There is generally no need to retain comments. Other possibilities, such as inter-process and network communication, could also be implemented via source and sink functions in basically the same way.



next up previous
Next: Storing AST Objects in FITS Headers (FitsChans)
Up: Saving and Restoring Objects (Channels)
Previous: Writing Objects to Files

AST A Library for Handling World Coordinate Systems in Astronomy
Starlink User Note 210
R.F. Warren-Smith & D.S. Berry
30th April 2003
E-mail:ussc@star.rl.ac.uk

Copyright (C) 2003 Central Laboratory of the Research Councils