26 #ifndef TAGLIB_IOSTREAM_H
27 #define TAGLIB_IOSTREAM_H
39 FileName(
const wchar_t *name) : m_wname(name) {}
40 FileName(
const char *name) : m_name(name) {}
41 operator const wchar_t *()
const {
return m_wname.c_str(); }
42 operator const char *()
const {
return m_name.c_str(); }
94 virtual void writeBlock(
const ByteVector &data) = 0;
112 virtual void removeBlock(
ulong start = 0,
ulong length = 0) = 0;
117 virtual bool readOnly()
const = 0;
123 virtual bool isOpen()
const = 0;
131 virtual void seek(
long offset, Position p = Beginning) = 0;
136 virtual void clear();
141 virtual long tell()
const = 0;
146 virtual long length() = 0;
151 virtual void truncate(
long length) = 0;
std::basic_string< wchar > wstring
Definition: taglib.h:90
Seek from the current position in the file.
Definition: tiostream.h:63
An abstract class that provides operations on a sequence of bytes.
Definition: tiostream.h:53
Position
Definition: tiostream.h:59
A byte vector.
Definition: tbytevector.h:45
unsigned long ulong
Definition: taglib.h:84
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
const char * FileName
Definition: tiostream.h:48
Seek from the beginning of the file.
Definition: tiostream.h:61