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
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef RAGTIME_STRUCT
00039 # define RAGTIME_STRUCT
00040
00041 #include <string>
00042
00043 #include "libmwaw_internal.hxx"
00044
00045 #include "MWAWDebug.hxx"
00046 #include "MWAWEntry.hxx"
00047 #include "MWAWInputStream.hxx"
00048
00054 namespace RagTimeStruct
00055 {
00057 struct ResourceList {
00059 enum Type { BuSl=0, BuGr, SpBo, SpCe, SpDE, SpTe, SpVa, gray, colr, res_, Undef};
00061 ResourceList() : m_type(Undef), m_headerPos(0), m_headerSize(0), m_dataPos(0), m_dataNumber(0), m_dataSize(0), m_endPos(0), m_extra("")
00062 {
00063 }
00065 bool read(MWAWInputStreamPtr input, MWAWEntry &entry);
00067 static std::string getName(Type type)
00068 {
00069 static char const *(wh[])= { "BuSl", "BuGr", "SpBo", "SpCe", "SpDE", "SpTe", "SpVa", "gray", "colr", "res_", "#Undef"};
00070 return wh[int(type)];
00071 }
00073 friend std::ostream &operator<<(std::ostream &o, ResourceList &zone);
00075 Type m_type;
00077 long m_headerPos;
00079 int m_headerSize;
00081 long m_dataPos;
00083 int m_dataNumber;
00085 int m_dataSize;
00087 long m_endPos;
00089 std::string m_extra;
00090 };
00091 }
00092 #endif
00093