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
bool parsePICT(MWAWEntry const &entry, librevenge::RVNGBinaryData &pict)
try to parse a PICT entry
Definition: MWAWRSRCParser.cxx:508
bool parseSTRList(MWAWEntry const &entry, std::vector< std::string > &list)
try to parse a STR# entry
Definition: MWAWRSRCParser.cxx:336
MWAWRSRCParser & operator=(MWAWRSRCParser const &orig)=delete
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:78
MWAWInputStreamPtr getInput()
return the rsrc input
Definition: MWAWRSRCParser.hxx:60
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWRSRCParser.hxx:109
bool parseClut(MWAWEntry const &entry, std::vector< MWAWColor > &list)
try to color map (clut entry)
Definition: MWAWRSRCParser.cxx:389
bool parse()
try to parse the document
Definition: MWAWRSRCParser.cxx:94
~MWAWRSRCParser()
the destructor
Definition: MWAWRSRCParser.cxx:50
bool parseMap(MWAWEntry const &entry, long dataBegin)
try to parse the map
Definition: MWAWRSRCParser.cxx:181
bool parseVers(MWAWEntry const &entry, Version &vers)
try to parse a version entry
Definition: MWAWRSRCParser.cxx:466
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
std::string const & asciiName() const
return the ascii file name
Definition: MWAWRSRCParser.hxx:104
bool parseSTR(MWAWEntry const &entry, std::string &str)
try to parse a STR entry
Definition: MWAWRSRCParser.cxx:302
MWAWRSRCParser(MWAWInputStreamPtr const &input)
the constructor
Definition: MWAWRSRCParser.cxx:41
std::multimap< std::string, MWAWEntry > const & getEntriesMap() const
returns the entry map (this map is filled by parse)
Definition: MWAWRSRCParser.hxx:76
std::multimap< std::string, MWAWEntry > & getEntriesMap()
returns the entry map (this map is filled by parse)
Definition: MWAWRSRCParser.hxx:69
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
friend std::ostream & operator<<(std::ostream &o, Version const &vers)
operator<<
Definition: MWAWRSRCParser.cxx:450
int m_majorVersion
the major number
Definition: MWAWRSRCParser.hxx:146
Version()
Definition: MWAWRSRCParser.hxx:134
int m_countryCode
the country code
Definition: MWAWRSRCParser.hxx:156