PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
FileStringList Class Reference

Provides string container automatically splited from entire file data. More...

#include <file_strlist.h>

Public Member Functions

 FileStringList ()
 Constructor.
 
 FileStringList (PGESTRING fileData)
 Constructor with pre-set data. More...
 
 ~FileStringList ()
 
void addData (PGESTRING fileData)
 Changes filedata and rebuilds list of lines. More...
 
PGESTRING readLine ()
 Returns current line contents and incements internal line counter. More...
 
bool isEOF ()
 Are all lines was gotten? More...
 
bool atEnd ()
 Are all lines was gotten? More...
 

Detailed Description

Provides string container automatically splited from entire file data.

Constructor & Destructor Documentation

FileStringList::FileStringList ( PGESTRING  fileData)

Constructor with pre-set data.

Parameters
fileDatafile data which will be splited by line-feeds
FileStringList::~FileStringList ( )

Destructor

Member Function Documentation

void FileStringList::addData ( PGESTRING  fileData)

Changes filedata and rebuilds list of lines.

Parameters
fileDatafile data which will be splited by line-feeds
bool FileStringList::atEnd ( )

Are all lines was gotten?

Returns
true if internal line counter is equal or more than total number of lines
bool FileStringList::isEOF ( )

Are all lines was gotten?

Returns
true if internal line counter is equal or more than total number of lines
PGESTRING FileStringList::readLine ( )

Returns current line contents and incements internal line counter.

Returns
contents of current line

The documentation for this class was generated from the following files: