26 #ifndef TAGLIB_IOSTREAM_H
27 #define TAGLIB_IOSTREAM_H
44 operator const wchar_t *()
const;
45 operator const char *()
const;
48 const std::string &str()
const;
50 String toString()
const;
53 const std::string m_name;
87 virtual FileName name()
const = 0;
103 virtual void writeBlock(
const ByteVector &data) = 0;
121 virtual void removeBlock(
ulong start = 0,
ulong length = 0) = 0;
126 virtual bool readOnly()
const = 0;
132 virtual bool isOpen()
const = 0;
140 virtual void seek(
long offset, Position p = Beginning) = 0;
145 virtual void clear();
150 virtual long tell()
const = 0;
155 virtual long length() = 0;
160 virtual void truncate(
long length) = 0;
std::basic_string< wchar > wstring
Definition: taglib.h:76
Seek from the current position in the file.
Definition: tiostream.h:72
An abstract class that provides operations on a sequence of bytes.
Definition: tiostream.h:62
Position
Definition: tiostream.h:68
A byte vector.
Definition: tbytevector.h:45
unsigned long ulong
Definition: taglib.h:70
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
const char * FileName
Definition: tiostream.h:57
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
Seek from the beginning of the file.
Definition: tiostream.h:70