the main class to read a Mac resource fork More...
#include <MWAWRSRCParser.hxx>
Classes | |
struct | Version |
a public structure used to return the version More... | |
Public Member Functions | |
MWAWRSRCParser (MWAWInputStreamPtr input) | |
the constructor More... | |
~MWAWRSRCParser () | |
the destructor More... | |
bool | parse () |
try to parse the document More... | |
MWAWInputStreamPtr | getInput () |
return the rsrc input More... | |
MWAWEntry | getEntry (std::string type, int id) const |
returns a entry corresponding to a type and an id (if possible) More... | |
std::multimap< std::string, MWAWEntry > & | getEntriesMap () |
returns the entry map (this map is filled by parse) More... | |
std::multimap< std::string, MWAWEntry > const & | getEntriesMap () const |
returns the entry map (this map is filled by parse) More... | |
bool | parseSTR (MWAWEntry const &entry, std::string &str) |
try to parse a STR entry More... | |
bool | parseSTRList (MWAWEntry const &entry, std::vector< std::string > &list) |
try to parse a STR# entry More... | |
bool | parsePICT (MWAWEntry const &entry, WPXBinaryData &pict) |
try to parse a PICT entry More... | |
bool | parseClut (MWAWEntry const &entry, std::vector< MWAWColor > &list) |
try to color map (clut entry) More... | |
bool | parseVers (MWAWEntry const &entry, Version &vers) |
try to parse a version entry More... | |
void | setAsciiName (char const *name) |
Debugging: change the default ascii file. More... | |
std::string const & | asciiName () const |
return the ascii file name More... | |
libmwaw::DebugFile & | ascii () |
a DebugFile used to write what we recognize when we parse the document More... | |
Protected Member Functions | |
bool | parseMap (MWAWEntry const &entry, long dataBegin) |
try to parse the map More... | |
Protected Attributes | |
MWAWInputStreamPtr | m_input |
the input stream More... | |
std::multimap< std::string, MWAWEntry > | m_entryMap |
the list of entries, name->entry More... | |
bool | m_parsed |
an internal flag used to know if the parsing was done More... | |
libmwaw::DebugFile | m_asciiFile |
the debug file More... | |
std::string | m_asciiName |
the debug file name More... | |
Private Member Functions | |
MWAWRSRCParser (MWAWRSRCParser const &orig) | |
MWAWRSRCParser & | operator= (MWAWRSRCParser const &orig) |
the main class to read a Mac resource fork
MWAWRSRCParser::MWAWRSRCParser | ( | MWAWInputStreamPtr | input | ) |
the constructor
MWAWRSRCParser::~MWAWRSRCParser | ( | ) |
the destructor
|
private |
|
inline |
a DebugFile used to write what we recognize when we parse the document
Referenced by parse(), parseClut(), parseMap(), parsePICT(), parseSTR(), parseSTRList(), parseVers(), and ~MWAWRSRCParser().
|
inline |
return the ascii file name
|
inline |
returns the entry map (this map is filled by parse)
|
inline |
returns the entry map (this map is filled by parse)
MWAWEntry MWAWRSRCParser::getEntry | ( | std::string | type, |
int | id | ||
) | const |
returns a entry corresponding to a type and an id (if possible)
|
inline |
return the rsrc input
|
private |
bool MWAWRSRCParser::parse | ( | ) |
try to parse the document
Referenced by getEntriesMap(), and getEntry().
try to color map (clut entry)
|
protected |
try to parse the map
Referenced by parse().
bool MWAWRSRCParser::parsePICT | ( | MWAWEntry const & | entry, |
WPXBinaryData & | pict | ||
) |
try to parse a PICT entry
bool MWAWRSRCParser::parseSTR | ( | MWAWEntry const & | entry, |
std::string & | str | ||
) |
try to parse a STR entry
Referenced by parse().
bool MWAWRSRCParser::parseSTRList | ( | MWAWEntry const & | entry, |
std::vector< std::string > & | list | ||
) |
try to parse a STR# entry
Referenced by parse().
try to parse a version entry
Referenced by parse().
|
inline |
Debugging: change the default ascii file.
|
protected |
the debug file
Referenced by ascii().
|
protected |
the debug file name
Referenced by asciiName(), parse(), and setAsciiName().
|
protected |
the list of entries, name->entry
Referenced by getEntriesMap(), getEntry(), parse(), parseMap(), and ~MWAWRSRCParser().
|
protected |
the input stream
Referenced by getInput(), parse(), parseClut(), parseMap(), parsePICT(), parseSTR(), parseSTRList(), and parseVers().
|
protected |
an internal flag used to know if the parsing was done
Referenced by getEntriesMap(), getEntry(), and parse().