modfilebase.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef TAGLIB_MODFILEBASE_H
00027 #define TAGLIB_MODFILEBASE_H
00028
00029 #include "taglib.h"
00030 #include "tfile.h"
00031 #include "tstring.h"
00032 #include "tlist.h"
00033 #include "taglib_export.h"
00034
00035 #include <algorithm>
00036
00037 namespace TagLib {
00038
00039 namespace Mod {
00040
00041 class TAGLIB_EXPORT FileBase : public TagLib::File
00042 {
00043 protected:
00044 FileBase(FileName file);
00045 FileBase(IOStream *stream);
00046
00047 void writeString(const String &s, unsigned long size, char padding = 0);
00048 void writeByte(unsigned char byte);
00049 void writeU16L(unsigned short number);
00050 void writeU32L(unsigned long number);
00051 void writeU16B(unsigned short number);
00052 void writeU32B(unsigned long number);
00053
00054 bool readString(String &s, unsigned long size);
00055 bool readByte(unsigned char &byte);
00056 bool readU16L(unsigned short &number);
00057 bool readU32L(unsigned long &number);
00058 bool readU16B(unsigned short &number);
00059 bool readU32B(unsigned long &number);
00060 };
00061
00062 }
00063
00064 }
00065
00066 #endif