#include <modfile.h>
|
| | File (FileName file, bool readProperties=true, AudioProperties::ReadStyle propertiesStyle=AudioProperties::Average) |
| |
| | File (IOStream *stream, bool readProperties=true, AudioProperties::ReadStyle propertiesStyle=AudioProperties::Average) |
| |
| virtual | ~File () |
| |
| Mod::Tag * | tag () const |
| |
| PropertyMap | properties () const |
| |
| PropertyMap | setProperties (const PropertyMap &) |
| |
| Mod::Properties * | audioProperties () const |
| |
| bool | save () |
| |
| FileName | name () const |
| |
| PropertyMap | properties () const |
| |
| void | removeUnsupportedProperties (const StringList &properties) |
| |
| PropertyMap | setProperties (const PropertyMap &properties) |
| |
| ByteVector | readBlock (ulong length) |
| |
| void | writeBlock (const ByteVector &data) |
| |
| long | find (const ByteVector &pattern, long fromOffset=0, const ByteVector &before=ByteVector::null) |
| |
| long | rfind (const ByteVector &pattern, long fromOffset=0, const ByteVector &before=ByteVector::null) |
| |
| void | insert (const ByteVector &data, ulong start=0, ulong replace=0) |
| |
| void | removeBlock (ulong start=0, ulong length=0) |
| |
| bool | readOnly () const |
| |
| bool | isOpen () const |
| |
| bool | isValid () const |
| |
| void | seek (long offset, Position p=Beginning) |
| |
| void | clear () |
| |
| long | tell () const |
| |
| long | length () |
| |
Constructs a Protracker file from file.
- Note
- In the current implementation, both readProperties and propertiesStyle are ignored. The audio properties are always read.
Constructs a Protracker file from stream.
- Note
- In the current implementation, both readProperties and propertiesStyle are ignored. The audio properties are always read.
-
TagLib will not take ownership of the stream, the caller is responsible for deleting it after the File object.
| virtual TagLib::Mod::File::~File |
( |
| ) |
|
|
virtual |
Returns the Mod::Properties for this file. If no audio properties were read then this will return a null pointer.
Implements TagLib::File.
| bool TagLib::Mod::File::save |
( |
| ) |
|
|
virtual |
Save the file. This is the same as calling save(AllTags);
- Note
- Saving Protracker tags is not supported.
Implements TagLib::File.
| Mod::Tag* TagLib::Mod::File::tag |
( |
| ) |
const |
|
virtual |
Returns a pointer to this file's tag. This should be reimplemented in the concrete subclasses.
Implements TagLib::File.
The documentation for this class was generated from the following file: