The use of this class is deprecated and will be removed in a future release.. See the section Archiving and Dearchiving of the breve documentation for more details.The now obsolete class description follows.
The Data class is a special class that can be saved to disk, loaded in to simulations and otherwise manipulated in ways that other classes cannot. Because of the features of this class, it may only contain variables of type int, float or vector.
Previous versions of breve used a binary format for saving and loading data objects--the current version saves as XML files. A method for loading binary objects from previous versions still exists load-from-file, but its use is deprecated.
Copies the contents of this data object to otherInstance. The instances must be of the same type.
Deprecated.
Loads the contents of saved XML file theFile into this object. The XML file must contain a previously archived instance of the same class (archived using save-as-xml).
Presents the user with a save dialog box in order to get a filename, and then loads the contents of the specified filename into this instance. The chosen file must contain a previously saved instance of the same object.
Previous versions of breve used a binary save of the object. The current version loads files saved in the XML file format.
Saves the contents of this instance to an XML file called theFile. It can later be loaded back into another instance of the same class using load-from-xml.
Deprecated.
Presents the user with a save dialog box in order to get a filename, and then saves the contents of this instance to the specified filename.
Previous versions of breve used a binary save of the object. The current version saves using an XML file format.
Used in conjunction with NetworkServer to send the contents of this object over the network.