BEntryList Class Reference

List of Entries. Where an entry is a name value pair. More...

#include <BEntry.h>

Inheritance diagram for BEntryList:

BList< BEntry > BEntryFile List of all members.

Public Member Functions

 BEntryList ()
int isSet (BString name)
 1 if name is in list and value is set
BEntryfind (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)
 Insert item before item.
void del (BIter &i)
 Delete specified item.
void clear ()
 Clear the list.

Private Attributes

BIter olastPos

Detailed Description

List of Entries. Where an entry is a name value pair.


Constructor & Destructor Documentation

BEntryList::BEntryList (  ) 


Member Function Documentation

int BEntryList::isSet ( BString  name  ) 

1 if name is in list and value is set

BEntry * BEntryList::find ( BString  name  ) 

Returns entry if name is found otherwise NULL.

BString BEntryList::findValue ( BString  name  ) 

Returns value of name. Returns "" if name not found.

int BEntryList::setValue ( BString  name,
BString  value 
)

Set the value of name. Returns 0 if name not found.

int BEntryList::setValueRaw ( BString  name,
BString  value 
)

Raw setting of value without looking up existing entry.

void BEntryList::deleteEntry ( BString  name  ) 

Deletes the entry.

void BEntryList::print (  ) 

Print list.

BString BEntryList::getString (  ) 

Return list as string. Each Entry padded and on a new line.

void BEntryList::insert ( BIter i,
const BEntry item 
) [virtual]

Insert item before item.

Reimplemented from BList< BEntry >.

void BEntryList::del ( BIter i  )  [virtual]

Delete specified item.

Reimplemented from BList< BEntry >.

void BEntryList::clear (  )  [virtual]

Clear the list.

Reimplemented from BList< BEntry >.

Reimplemented in BEntryFile.


Member Data Documentation

BIter BEntryList::olastPos [private]


The documentation for this class was generated from the following files:
Generated on Thu Jun 28 10:46:24 2007 for LibTmsApi by  doxygen 1.5.1