Public Types | Public Member Functions | Public Attributes | Protected Attributes
cSimpleStringList Class Reference

A simple string list. (Fixed maximum number of strings of fixed maximum length) More...

#include <simplestringlist.h>

List of all members.

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 * operator[] (int index)
 return ptr to line with index.
char const * operator[] (int index) const
 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

Detailed Description

A simple string list. (Fixed maximum number of strings of fixed maximum length)

Definition at line 70 of file simplestringlist.h.


Member Enumeration Documentation

anonymous enum

anonymous enum instead of define macros

Enumerator:
eMAX_LINES 
eMAX_CHARS 

Definition at line 79 of file simplestringlist.h.


Constructor & Destructor Documentation

Default constructor: init members.


Member Function Documentation

Return the current line.

Return number of lines stored.

Return the next line, this increases current_line.

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

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

reset list


Member Data Documentation

the index of the current line. For empty cSimpleStringLists this is -1.

Definition at line 75 of file simplestringlist.h.

a fixed length array of lines with fixed length

Definition at line 120 of file simplestringlist.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


schunk_sdh
Author(s): Florian Weisshardt
autogenerated on Tue Mar 5 2013 14:44:11