#include <TSE3MDL.h>
Collaboration diagram for TSE3::TSE3MDL:
Public Member Functions | |
TSE3MDL (const std::string &appname="", int verbose=0, std::ostream &diag=std::cout) | |
void | save (const std::string &filename, const Song *song) |
void | save (std::ostream &out, const Song *song) |
Song * | load (const std::string &filename, Progress *progress=0) |
Static Public Attributes | |
const int | MajorVersion = 100 |
const int | MinorVersion = 100 |
The TSE3MDL object provides file operations for the TSE3 library, being the main entry point for saving/loading in the TSE3MDL file format.
It uses the Serializable interface implemented by the various TSE3 classes.
|
Create a TSE3MDL file operations object.
|
|
Save the given Song to the file specified. If the file already exists it will be overwritten. This will save the appropriate fill header and then call the Song class's save method.
|
|
As save above, but you specify the ostream. |
|
Load a Song from the file specified. The returned Song will have been newed from the free store, and so when you have finished with it it is your responsibility to delete it.
|
|
|
|
|