89 bool valid(
bool checkId =
false)
const
93 if (checkId &&
m_id < 0)
131 std::string
const &
type()
const
147 std::string
const &
name()
const
182 if (ent.
m_id >= 0) o <<
"[" << ent.
m_id <<
"]";
void setLength(long l)
sets the zone size
Definition WPSEntry.h:62
std::string const & type() const
returns the type of the entry
Definition WPSEntry.h:131
void setEnd(long e)
sets the end offset
Definition WPSEntry.h:67
void setType(std::string const &tp)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition WPSEntry.h:126
void setExtra(std::string const &s)
sets the extra string
Definition WPSEntry.h:174
WPSEntry & operator=(WPSEntry const &)=default
bool operator!=(const WPSEntry &a) const
basic operator!=
Definition WPSEntry.h:109
friend std::ostream & operator<<(std::ostream &o, WPSEntry const &ent)
Definition WPSEntry.h:178
int m_id
the identificator
Definition WPSEntry.h:194
long begin() const
returns the begin offset
Definition WPSEntry.h:73
long length() const
returns the length of the zone
Definition WPSEntry.h:83
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition WPSEntry.h:120
void setId(int i)
sets the id
Definition WPSEntry.h:163
void setBegin(long off)
sets the begin offset
Definition WPSEntry.h:57
WPSEntry(WPSEntry &&)=default
std::string m_type
the entry type
Definition WPSEntry.h:190
long m_length
the size of the entry
Definition WPSEntry.h:187
bool valid(bool checkId=false) const
returns true if the zone length is positive
Definition WPSEntry.h:89
void setName(std::string const &nam)
sets the name of the entry
Definition WPSEntry.h:142
bool hasName(std::string const &nam) const
checks if the entry name is equal to name
Definition WPSEntry.h:152
bool m_parsed
a bool to store if the entry is or not parsed
Definition WPSEntry.h:196
WPSEntry & operator=(WPSEntry &&)=default
WPSEntry(WPSEntry const &)=default
int id() const
returns the entry id
Definition WPSEntry.h:158
std::string const & extra() const
retrieves the extra string
Definition WPSEntry.h:169
virtual ~WPSEntry()
destructor
Definition WPSEntry.cpp:28
long m_begin
the begin of the entry.
Definition WPSEntry.h:187
bool hasType(std::string const &tp) const
returns true if the type entry == type
Definition WPSEntry.h:136
std::string m_name
the name
Definition WPSEntry.h:192
WPSEntry()
constructor
Definition WPSEntry.h:42
bool isParsed() const
a flag to know if the entry was parsed or not
Definition WPSEntry.h:115
std::string m_extra
an extra string
Definition WPSEntry.h:198
long end() const
returns the end offset
Definition WPSEntry.h:78
bool operator==(const WPSEntry &a) const
basic operator==
Definition WPSEntry.h:99
std::string const & name() const
name of the entry
Definition WPSEntry.h:147