#include <TSE3MDL.h>
Public Types | |
enum | { Type_Error, Type_Unknown, Type_TSE3MDL, Type_TSE2MDL, Type_Midi } |
Public Member Functions | |
FileRecogniser (const std::string &filename) | |
int | type () const |
size_t | size () const |
Song * | load (Progress *progress) |
The FileRegoniser class will return information about a given file.
It can recognise three file types - the three types that TSE3 provides support for. These are:
|
|
|
Creates a FileRecogniser for a particular file.
|
|
Returns the type of the file. The value will be one of the below:
|
|
Returns the size of the file.
|
|
Loads the file in the appropriate way. This will use either the TSE3MDL, or TSE2MDL classes to create a Song from the data in the file. If the file is of an unknown type, this will return zero. Any exception that may be thrown by the three file loading classes may pass from this method. The loaded Song will have been created with new, it is now your responsibility to delete it.
|