Go to the documentation of this file.
136 std::string
const &
type()
const
152 std::string
const &
name()
const
188 if (ent.
m_id >= 0) o <<
"[" << ent.
m_id <<
"]";
MWAWEntry & operator=(MWAWEntry const &)=default
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
void setName(std::string const &nam)
sets the name of the entry
Definition: MWAWEntry.hxx:147
bool isParsed() const
a flag to know if the entry was parsed or not
Definition: MWAWEntry.hxx:120
void setExtra(std::string const &s)
sets the extra string
Definition: MWAWEntry.hxx:179
int id() const
returns the id
Definition: MWAWEntry.hxx:163
std::string m_name
the name
Definition: MWAWEntry.hxx:199
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:125
bool operator!=(const MWAWEntry &a) const
basic operator!=
Definition: MWAWEntry.hxx:114
const std::string & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:136
bool operator==(const MWAWEntry &a) const
basic operator==
Definition: MWAWEntry.hxx:104
bool hasType(std::string const &typ) const
returns true if the type entry == type
Definition: MWAWEntry.hxx:141
MWAWEntry()
constructor
Definition: MWAWEntry.hxx:50
int m_id
an identificator
Definition: MWAWEntry.hxx:203
void setType(std::string const &newType)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: MWAWEntry.hxx:131
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:76
bool m_parsed
a bool to store if the entry is or not parsed
Definition: MWAWEntry.hxx:205
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:66
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:92
long m_length
the size of the entry
Definition: MWAWEntry.hxx:194
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:82
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:71
long m_begin
the begin of the entry.
Definition: MWAWEntry.hxx:194
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:168
std::string m_type
the entry type
Definition: MWAWEntry.hxx:197
friend std::ostream & operator<<(std::ostream &o, MWAWEntry const &ent)
Definition: MWAWEntry.hxx:184
std::string m_extra
an extra string
Definition: MWAWEntry.hxx:201
long end() const
returns the end offset
Definition: MWAWEntry.hxx:87
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:98
const std::string & extra() const
retrieves the extra string
Definition: MWAWEntry.hxx:174
bool hasName(std::string const &nam) const
checks if the entry name is equal to name
Definition: MWAWEntry.hxx:157
virtual ~MWAWEntry()
destructor
Definition: MWAWEntry.cxx:36
const std::string & name() const
name of the entry
Definition: MWAWEntry.hxx:152
Generated on Tue Jul 23 2024 22:35:33 for libmwaw by
doxygen 1.8.16