78 bool valid(
bool checkId =
false)
const
82 if (checkId &&
m_id < 0)
120 std::string
const &
type()
const
136 std::string
const &
name()
const
171 if (ent.
m_id >= 0) o <<
"[" << ent.
m_id <<
"]";
bool hasType(std::string const &tp) const
returns true if the type entry == type
Definition: WPSEntry.h:125
int id() const
returns the entry id
Definition: WPSEntry.h:147
friend std::ostream & operator<<(std::ostream &o, WPSEntry const &ent)
Definition: WPSEntry.h:167
bool m_parsed
a bool to store if the entry is or not parsed
Definition: WPSEntry.h:185
void setBegin(long off)
sets the begin offset
Definition: WPSEntry.h:46
std::string const & extra() const
retrieves the extra string
Definition: WPSEntry.h:158
long length() const
returns the length of the zone
Definition: WPSEntry.h:72
std::string const & type() const
returns the type of the entry
Definition: WPSEntry.h:120
long begin() const
returns the begin offset
Definition: WPSEntry.h:62
std::string m_type
the entry type
Definition: WPSEntry.h:179
void setType(std::string const &tp)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: WPSEntry.h:115
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: WPSEntry.h:109
void setId(int i)
sets the id
Definition: WPSEntry.h:152
bool operator!=(const WPSEntry &a) const
basic operator!=
Definition: WPSEntry.h:98
long m_length
the size of the entry
Definition: WPSEntry.h:176
std::string m_name
the name
Definition: WPSEntry.h:181
bool valid(bool checkId=false) const
returns true if the zone length is positive
Definition: WPSEntry.h:78
std::string m_extra
an extra string
Definition: WPSEntry.h:187
std::string const & name() const
name of the entry
Definition: WPSEntry.h:136
WPSEntry()
constructor
Definition: WPSEntry.h:41
bool operator==(const WPSEntry &a) const
basic operator==
Definition: WPSEntry.h:88
void setExtra(std::string const &s)
sets the extra string
Definition: WPSEntry.h:163
bool hasName(std::string const &nam) const
checks if the entry name is equal to name
Definition: WPSEntry.h:141
long m_begin
the begin of the entry.
Definition: WPSEntry.h:176
basic class to store an entry in a file This contained :
Definition: WPSEntry.h:37
int m_id
the identificator
Definition: WPSEntry.h:183
void setName(std::string const &nam)
sets the name of the entry
Definition: WPSEntry.h:131
bool isParsed() const
a flag to know if the entry was parsed or not
Definition: WPSEntry.h:104
void setEnd(long e)
sets the end offset
Definition: WPSEntry.h:56
long end() const
returns the end offset
Definition: WPSEntry.h:67
void setLength(long l)
sets the zone size
Definition: WPSEntry.h:51
virtual ~WPSEntry()
Definition: WPSEntry.h:43