Go to the documentation of this file.
87 bool valid(
bool checkId =
false)
const
91 if (checkId &&
m_id < 0)
129 std::string
const &
type()
const
145 std::string
const &
name()
const
180 if (ent.
m_id >= 0) o <<
"[" << ent.
m_id <<
"]";
bool hasName(std::string const &nam) const
checks if the entry name is equal to name
Definition: WPSEntry.h:150
void setName(std::string const &nam)
sets the name of the entry
Definition: WPSEntry.h:140
bool operator!=(const WPSEntry &a) const
basic operator!=
Definition: WPSEntry.h:107
bool operator==(const WPSEntry &a) const
basic operator==
Definition: WPSEntry.h:97
long end() const
returns the end offset
Definition: WPSEntry.h:76
void setExtra(std::string const &s)
sets the extra string
Definition: WPSEntry.h:172
void setLength(long l)
sets the zone size
Definition: WPSEntry.h:60
WPSEntry & operator=(WPSEntry const &)=default
std::string m_type
the entry type
Definition: WPSEntry.h:188
const std::string & extra() const
retrieves the extra string
Definition: WPSEntry.h:167
std::string m_name
the name
Definition: WPSEntry.h:190
bool valid(bool checkId=false) const
returns true if the zone length is positive
Definition: WPSEntry.h:87
int m_id
the identificator
Definition: WPSEntry.h:192
basic class to store an entry in a file This contained :
Definition: WPSEntry.h:38
const std::string & name() const
name of the entry
Definition: WPSEntry.h:145
const std::string & type() const
returns the type of the entry
Definition: WPSEntry.h:129
void setId(int i)
sets the id
Definition: WPSEntry.h:161
virtual ~WPSEntry()
destructor
Definition: WPSEntry.cpp:28
long m_begin
the begin of the entry.
Definition: WPSEntry.h:185
void setBegin(long off)
sets the begin offset
Definition: WPSEntry.h:55
void setType(std::string const &tp)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: WPSEntry.h:124
long begin() const
returns the begin offset
Definition: WPSEntry.h:71
int id() const
returns the entry id
Definition: WPSEntry.h:156
long length() const
returns the length of the zone
Definition: WPSEntry.h:81
bool isParsed() const
a flag to know if the entry was parsed or not
Definition: WPSEntry.h:113
void setEnd(long e)
sets the end offset
Definition: WPSEntry.h:65
friend std::ostream & operator<<(std::ostream &o, WPSEntry const &ent)
Definition: WPSEntry.h:176
bool hasType(std::string const &tp) const
returns true if the type entry == type
Definition: WPSEntry.h:134
std::string m_extra
an extra string
Definition: WPSEntry.h:196
WPSEntry()
constructor
Definition: WPSEntry.h:42
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: WPSEntry.h:118
long m_length
the size of the entry
Definition: WPSEntry.h:185
bool m_parsed
a bool to store if the entry is or not parsed
Definition: WPSEntry.h:194
Generated on Sat Sep 11 2021 08:45:29 for libwps by
doxygen 1.8.17