38 # define WN_MWAW_ENTRY
49 for (
int i = 0; i < 4; i++)
m_val[i] = 0;
61 if (entry.
type().length()) {
63 if (entry.
id() >= 0) o <<
"[" << entry.
id() <<
"]";
80 for (
int i = 0; i < 4; i++) {
81 if (entry.
m_val[i]) o <<
"v" << i <<
"=" << std::hex << entry.
m_val[i] << std::dec <<
",";
98 std::map<long, WNEntry>::const_iterator it =
m_posMap.find(pos);
106 if (!entry.
valid())
return false;
108 MWAW_DEBUG_MSG((
"WNEntryManager:add: an entry for this position already exists\n"));
111 std::map<long, WNEntry>::iterator it =
112 m_posMap.insert(std::pair<long, WNEntry>(entry.
begin(), entry)).first;
114 (std::multimap<std::string, WNEntry const *>::value_type(entry.
type(), &(it->second)));
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:81
int m_fileType
the file entry id
Definition: WNEntry.hxx:87
bool add(WNEntry const &entry)
add a new entry
Definition: WNEntry.hxx:105
bool isZone() const
returns true if this is a zone
Definition: WNEntry.hxx:56
std::multimap< std::string, WNEntry const * > m_typeMap
the list of entries
Definition: WNEntry.hxx:126
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:68
WNEntry()
Definition: WNEntry.hxx:48
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:116
int m_val[4]
other values
Definition: WNEntry.hxx:89
friend std::ostream & operator<<(std::ostream &o, WNEntry const &entry)
operator<<
Definition: WNEntry.hxx:60
Definition: WNEntry.hxx:47
WNEntryManager()
Definition: WNEntry.hxx:94
void reset()
reset the data
Definition: WNEntry.hxx:119
std::map< long, WNEntry > m_posMap
the list of entries by position
Definition: WNEntry.hxx:124
int id() const
returns the id
Definition: MWAWEntry.hxx:135
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
the manager of the entries
Definition: WNEntry.hxx:93
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:113
bool isZoneType() const
returns true if this entry store a zone
Definition: WNEntry.hxx:52