34#ifndef MWAW_RSRC_PARSER_H
35#define MWAW_RSRC_PARSER_H
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
the main class to read a Mac resource fork
Definition: MWAWRSRCParser.hxx:47
MWAWInputStreamPtr m_input
the input stream
Definition: MWAWRSRCParser.hxx:118
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWRSRCParser.hxx:109
std::multimap< std::string, MWAWEntry > & getEntriesMap()
returns the entry map (this map is filled by parse)
Definition: MWAWRSRCParser.hxx:69
bool parsePICT(MWAWEntry const &entry, librevenge::RVNGBinaryData &pict)
try to parse a PICT entry
Definition: MWAWRSRCParser.cxx:570
bool parseSTRList(MWAWEntry const &entry, std::vector< std::string > &list)
try to parse a STR# entry
Definition: MWAWRSRCParser.cxx:398
std::multimap< std::string, MWAWEntry > const & getEntriesMap() const
returns the entry map (this map is filled by parse)
Definition: MWAWRSRCParser.hxx:76
std::string m_asciiName
the debug file name
Definition: MWAWRSRCParser.hxx:122
std::multimap< std::string, MWAWEntry > m_entryMap
the list of entries, name->entry
Definition: MWAWRSRCParser.hxx:120
MWAWRSRCParser(MWAWRSRCParser const &orig)=delete
bool m_parsed
an internal flag used to know if the parsing was done
Definition: MWAWRSRCParser.hxx:126
MWAWEntry getEntry(std::string type, int id) const
returns a entry corresponding to a type and an id (if possible)
Definition: MWAWRSRCParser.cxx:79
MWAWInputStreamPtr getInput()
return the rsrc input
Definition: MWAWRSRCParser.hxx:60
bool parseClut(MWAWEntry const &entry, std::vector< MWAWColor > &list)
try to color map (clut entry)
Definition: MWAWRSRCParser.cxx:451
bool parse()
try to parse the document
Definition: MWAWRSRCParser.cxx:95
~MWAWRSRCParser()
the destructor
Definition: MWAWRSRCParser.cxx:51
bool parseMap(MWAWEntry const &entry, long dataBegin)
try to parse the map
Definition: MWAWRSRCParser.cxx:243
bool parseVers(MWAWEntry const &entry, Version &vers)
try to parse a version entry
Definition: MWAWRSRCParser.cxx:528
libmwaw::DebugFile m_asciiFile
the debug file
Definition: MWAWRSRCParser.hxx:124
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWRSRCParser.hxx:99
MWAWRSRCParser & operator=(MWAWRSRCParser const &orig)=delete
bool parseSTR(MWAWEntry const &entry, std::string &str)
try to parse a STR entry
Definition: MWAWRSRCParser.cxx:364
std::string const & asciiName() const
return the ascii file name
Definition: MWAWRSRCParser.hxx:104
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
a public structure used to return the version
Definition: MWAWRSRCParser.hxx:133
std::string m_extra
extra data
Definition: MWAWRSRCParser.hxx:154
std::string m_string
the major string
Definition: MWAWRSRCParser.hxx:150
std::string m_versionString
the version string
Definition: MWAWRSRCParser.hxx:152
int m_minorVersion
the minor number
Definition: MWAWRSRCParser.hxx:148
int m_majorVersion
the major number
Definition: MWAWRSRCParser.hxx:146
friend std::ostream & operator<<(std::ostream &o, Version const &vers)
operator<<
Definition: MWAWRSRCParser.cxx:512
Version()
Definition: MWAWRSRCParser.hxx:134
int m_countryCode
the country code
Definition: MWAWRSRCParser.hxx:156