next up previous contents index
Next: Time_Object TaskFrame, Time Up: Time_Object Previous: Compute Methods on Time_Object

I/O Methods on Time_Object

 

   tex2html_wrap44658    tex2html_wrap44660
TIME_OBJECT * timeobj
char * path
"read-data" reads in the Time_Object description file path/name.to where name is the name of the timeobj instance. g_time_parm_get_data (see section 7.4.1.2) is used to read the parameter data and to create the associated rulers, then "list-alloc" is called (by then "num_of_frames" is known) and all frames are computed.

"read-data" is usually called by "read-in" on class FileList, the default method of the tex2html_wrap44662 button. The button pops up a file-requester which shows all files with the extension returned by "get-extension", for Time_Step this extension is *.to (its really a pattern and not an extension, but for historic reasons the method is called "get-extension").

All subclasses of Time_Object which use their own input files (with a different extension) have to implement these methods.

   GRAPE(timeobj, "xdr")(xdrp)
TIME_OBJECT * timeobj
XDR * xdrp
Read the timeobj instance from or write is to the XDR stream xdrp. This method should not be called directly, refer to 5.7 (especially 5.7.3) for details.

Only the time variable is not handled by this method. This should be no problem since the time-dependency of the double variables is lost anyway because of Time_Parm "xdr"....



SFB 256 Universität Bonn and IAM Universität Freiburg

Copyright © by the Sonderforschungsbereich 256 at the Institut für Angewandte Mathematik, Universität Bonn.