LibBeamApi
1.3.0
|
List of Entries. Where an entry is a name value pair. More...
#include <BEntry.h>
Public Member Functions | |
BEntryList () | |
int | isSet (BString name) |
1 if name is in list and value is set | |
BEntry * | find (BString name) |
Returns entry if name is found otherwise NULL. | |
BString | findValue (BString name) |
Returns value of name. Returns "" if name not found. | |
int | setValue (BString name, BString value) |
Set the value of name. Returns 0 if name not found. | |
int | setValueRaw (BString name, BString value) |
Raw setting of value without looking up existing entry. | |
void | deleteEntry (BString name) |
Deletes the entry. | |
void | print () |
Print list. | |
BString | getString () |
Return list as string. Each Entry padded and on a new line. | |
void | insert (BIter &i, const BEntry &item) |
void | del (BIter &i) |
Delete specified item. | |
void | clear () |
Clear the list. | |
BEntryList & | operator= (const BEntryList &l) |
Private Attributes | |
BIter | olastPos |
List of Entries. Where an entry is a name value pair.
BEntryList::BEntryList | ( | ) |
void BEntryList::clear | ( | ) | [virtual] |
void BEntryList::del | ( | BIter & | i | ) | [virtual] |
Delete specified item.
Reimplemented from BList< BEntry >.
void BEntryList::deleteEntry | ( | BString | name | ) |
Deletes the entry.
BString BEntryList::getString | ( | ) |
Return list as string. Each Entry padded and on a new line.
int BEntryList::isSet | ( | BString | name | ) |
1 if name is in list and value is set
BEntryList & BEntryList::operator= | ( | const BEntryList & | l | ) |
void BEntryList::print | ( | ) |
Print list.
Set the value of name. Returns 0 if name not found.
Raw setting of value without looking up existing entry.
BIter BEntryList::olastPos [private] |