137 std::string
const &
type()
const
153 std::string
const &
name()
const
189 if (ent.
m_id >= 0) o <<
"[" << ent.
m_id <<
"]";
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:126
void setName(std::string const &nam)
sets the name of the entry
Definition: MWAWEntry.hxx:148
long m_begin
the begin of the entry.
Definition: MWAWEntry.hxx:195
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:137
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
MWAWEntry & operator=(MWAWEntry const &)=default
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
MWAWEntry()
constructor
Definition: MWAWEntry.hxx:50
std::string m_extra
an extra string
Definition: MWAWEntry.hxx:202
virtual ~MWAWEntry()
destructor
Definition: MWAWEntry.cxx:36
bool operator==(const MWAWEntry &a) const
basic operator==
Definition: MWAWEntry.hxx:105
bool m_parsed
a bool to store if the entry is or not parsed
Definition: MWAWEntry.hxx:206
MWAWEntry(MWAWEntry const &)=default
int m_id
an identificator
Definition: MWAWEntry.hxx:204
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
bool hasName(std::string const &nam) const
checks if the entry name is equal to name
Definition: MWAWEntry.hxx:158
std::string m_name
the name
Definition: MWAWEntry.hxx:200
void setType(std::string const &newType)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: MWAWEntry.hxx:132
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:77
void setExtra(std::string const &s)
sets the extra string
Definition: MWAWEntry.hxx:180
bool hasType(std::string const &typ) const
returns true if the type entry == type
Definition: MWAWEntry.hxx:142
friend std::ostream & operator<<(std::ostream &o, MWAWEntry const &ent)
Definition: MWAWEntry.hxx:185
long m_length
the size of the entry
Definition: MWAWEntry.hxx:195
MWAWEntry & operator=(MWAWEntry &&)=default
bool operator!=(const MWAWEntry &a) const
basic operator!=
Definition: MWAWEntry.hxx:115
int id() const
returns the id
Definition: MWAWEntry.hxx:164
std::string const & name() const
name of the entry
Definition: MWAWEntry.hxx:153
bool isParsed() const
a flag to know if the entry was parsed or not
Definition: MWAWEntry.hxx:121
std::string m_type
the entry type
Definition: MWAWEntry.hxx:198
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
std::string const & extra() const
retrieves the extra string
Definition: MWAWEntry.hxx:175
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:169