Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

dsWordSource Class Reference

#include <dsWordSource.h>

List of all members.

Public Methods

 dsWordSource (const char *filename, const char *dlm="$@#%&*.,<>?!~;':\"[]{}\\/|+=_-()\t\r\n")
 current delemiters

 ~dsWordSource ()
const char * next ()
void reset ()

Public Attributes

unsigned wordcnt
unsigned linecnt
 current word position

const char * delems
 current line position

Detailed Description

Simple way to read text file word by word usefull for quick parsers

Constructor & Destructor Documentation

dsWordSource::dsWordSource const char *    filename,
const char *    dlm = "$@#%&*.,<>?!~;':\"[]{}\\/|+=_-()\t\r\n"


filename - name of file to open
dlm - (optional) string containing word delimiters
wsException - if file couldn't be open


Member Function Documentation

const char * dsWordSource::next  

read next word word placed into internal buffer of 256 chars length

read word

void dsWordSource::reset  

reset file pointer

Member Data Documentation

const char* dsWordSource::delems

unsigned dsWordSource::linecnt

unsigned dsWordSource::wordcnt

The documentation for this class was generated from the following files:
Generated on Mon May 16 18:27:01 2005 for libdms4 by doxygen1.3-rc2