These pages are auto-generated from self-documenting comments embedded in class files.
For more information on breve and steve, refer to the breve homepage.

## Abstract : Data

This class is included as part of the file Data.tz.
To use this class in a simulation, include the line "@use Data."

### Class description:

> 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.

### Class methods:

> - copy-contents
> - load-from-xml
> - load-with-dialog
> - save-as-xml
> - save-with-dialog
> - send

`copy-contents to otherInstance (object)`

> Copies the contents of this data object to otherInstance. The instances must be of the same type.

`load-from-xml file theFile (string)`

> 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).

`load-with-dialog`

> 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.

`save-as-xml file theFile (string)`

> 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.

`save-with-dialog`

> 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.

`send to theHost (string) on-port thePort (int)`

> Used in conjunction with NetworkServer to send the contents of this object over the network.

Documentation created Thu Jul 3 18:18:12 2008