$search
A simple string list. (Fixed maximum number of strings of fixed maximum length). More...
#include <simplestringlist.h>
Public Types | |
enum | { eMAX_LINES = 256, eMAX_CHARS = 256 } |
anonymous enum instead of define macros More... | |
Public Member Functions | |
cSimpleStringList () | |
Default constructor: init members. | |
char * | CurrentLine () |
Return the current line. | |
int | Length () const |
Return number of lines stored. | |
char * | NextLine () |
Return the next line, this increases current_line. | |
char const * | operator[] (int index) const |
return ptr to line with index. | |
char * | operator[] (int index) |
return ptr to line with index. | |
void | Reset () |
reset list | |
Public Attributes | |
int | current_line |
the index of the current line. For empty cSimpleStringLists this is -1. | |
Protected Attributes | |
char | line [eMAX_LINES][eMAX_CHARS] |
a fixed length array of lines with fixed length |
A simple string list. (Fixed maximum number of strings of fixed maximum length).
Definition at line 70 of file simplestringlist.h.
anonymous enum |
anonymous enum instead of define macros
Definition at line 79 of file simplestringlist.h.
cSimpleStringList::cSimpleStringList | ( | ) |
Default constructor: init members.
char* cSimpleStringList::CurrentLine | ( | ) |
Return the current line.
int cSimpleStringList::Length | ( | ) | const |
Return number of lines stored.
char* cSimpleStringList::NextLine | ( | ) |
Return the next line, this increases current_line.
char const* cSimpleStringList::operator[] | ( | int | index | ) | const |
return ptr to line with index.
if index < 0 then the numbering starts from the end, thus [-1] gives the last line, [-2] the next to last, ...
char* cSimpleStringList::operator[] | ( | int | index | ) |
return ptr to line with index.
if index < 0 then the numbering starts from the end, thus [-1] gives the last line, [-2] the next to last, ...
void cSimpleStringList::Reset | ( | ) |
reset list
the index of the current line. For empty cSimpleStringLists this is -1.
Definition at line 75 of file simplestringlist.h.
char cSimpleStringList::line[eMAX_LINES][eMAX_CHARS] [protected] |
a fixed length array of lines with fixed length
Definition at line 120 of file simplestringlist.h.