dmIStringList Class Reference

String list container. More...

#include <CCI_StringList.h>

Inherits dmINotify.

List of all members.

Public Member Functions

dm_uint Count ()
 Return the number of strings in the stringlist.
bool AddTail (const char_t *str)
 Add a string at the end of the list.
bool AddHead (const char_t *str)
 Add a string at the beginning of the list.
bool Insert (dm_param pos, const char_t *str)
 Insert a string at position pos. Note that pos is an iterator parameter that must have been obtain using GetFirst() or GetNext() methods.
dm_param GetFirst ()
 Return an iterator to the first string position in the list.
dm_param GetNext (dm_param pos)
 Return the next string position in the list.
bool Remove (dm_param pos)
 Remove the string at position designated by pos.
void Clear ()
 Remove all strings in the stringlist.
bool Copy (cci_object *strlist)
 Copy one string list into another.
bool Append (cci_object *strlist)
 Append all strings from strlist.
const char_t * GetString (dm_param pos)
 Return the string at position designated by pos.
bool AddStrings (CONST char_t **strlist, dm_uint count)
 Add string from null terminated array of C strings the string at position designated by pos.
const char_t * GetStringAt (dm_uint index)
 Return string at index param.
dm_param FindString (const char_t *str, dm_param pos)
 Find the string str from position pos.


Detailed Description

String list container.

This class is used to exchange string data between CCI objects and/or user code.


Member Function Documentation

dm_param dmIStringList::FindString const char_t *  str,
dm_param  pos
[inline]
 

Find the string str from position pos.

Return the position where the string was found, or null if the string was not found in the sequence

const char_t* dmIStringList::GetStringAt dm_uint  index  )  [inline]
 

Return string at index param.

This method is only here for convenience but it is absolutely inefficient for accessing elements iterativeley : use GetFirst/GetNext instead.


Generated on Tue May 9 12:34:57 2006 for Daim Library Module Set by  doxygen 1.4.6-NO