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;
92 virtual ByteVector readBlock(
unsigned long length) = 0;
103 virtual void writeBlock(
const ByteVector &data) = 0;
113 unsigned long start = 0,
unsigned long replace = 0) = 0;
122 virtual void removeBlock(
unsigned long start = 0,
unsigned long length = 0) = 0;
127 virtual bool readOnly()
const = 0;
133 virtual bool isOpen()
const = 0;
141 virtual void seek(
long offset,
Position p = Beginning) = 0;
146 virtual void clear();
151 virtual long tell()
const = 0;
156 virtual long length() = 0;
161 virtual void truncate(
long length) = 0;
std::basic_string< wchar_t > 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
#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