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.
BEntryListoperator= (const BEntryList &l)

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

void BEntryList::clear (  )  [virtual]

Clear the list.

Reimplemented from BList< BEntry >.

Reimplemented in BEntryFile.

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

Delete specified item.

Reimplemented from BList< BEntry >.

void BEntryList::deleteEntry ( BString  name  ) 

Deletes the entry.

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.

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 >.

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.

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.


Member Data Documentation

BIter BEntryList::olastPos [private]


The documentation for this class was generated from the following files:
Generated on Thu Nov 4 09:45:22 2010 for LibBeamApi by  doxygen 1.4.7