CAStringList Class Reference

A simple string list implemented by strings with given separators. More...

#include <castringlist.h>

List of all members.

Public Member Functions

 CAStringList (char separator='~')
 Constructor.
 CAStringList (const char *list, char separator='~')
 Constructor.
 ~CAStringList ()
 Destructor.
void setList (const char *list)
 Sets the string list.
int count ()
 Count.
char * getItem (int which, int maxLen=CA_SL_ITEMSIZE)
 Returns item number 'which' of the list.


Detailed Description

A simple string list implemented by strings with given separators.

It's not fast, not good, but simple.

Author:
Andrew Mustun


Member Function Documentation

void CAStringList::setList ( const char *  list  )  [inline]

Sets the string list.

Parameters:
list The new list in format "entry 1~entry2~entry3".

char * CAStringList::getItem ( int  which,
int  maxLen = CA_SL_ITEMSIZE 
)

Returns item number 'which' of the list.

Parameters:
maxLen Max length of the sting to return. Default: 128


The documentation for this class was generated from the following files:
Generated on Tue Nov 28 06:48:29 2006 by  doxygen 1.5.0