• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

KSFileReader Class Reference

This class will read an entire file into a QStringList, where each item in the list is a line in the file. More...

#include <ksfilereader.h>

Inheritance diagram for KSFileReader:

Inheritance graph
[legend]

List of all members.


Public Member Functions

bool hasMoreLines ()
 KSFileReader (QFile &file)
QString & readLine ()
bool setLine (int i)
 ~KSFileReader ()

Detailed Description

This class will read an entire file into a QStringList, where each item in the list is a line in the file.

It can then access each line in the list very quickly.

Author:
Heiko Evermann
Version:
1.0

Definition at line 35 of file ksfilereader.h.


Constructor & Destructor Documentation

KSFileReader::KSFileReader ( QFile &  file  ) 

Constructor.

Read an entire file into a QStringList object. file the file to be read

Definition at line 23 of file ksfilereader.cpp.

KSFileReader::~KSFileReader (  ) 

Destructor.

Definition at line 37 of file ksfilereader.cpp.


Member Function Documentation

bool KSFileReader::hasMoreLines (  ) 

Returns:
TRUE if we are not yet at the end of the file.

Definition at line 40 of file ksfilereader.cpp.

QString & KSFileReader::readLine (  ) 

Read a line from the file, and increment the "current line" counter.

Returns:
the line that we read, as a QString.

Definition at line 44 of file ksfilereader.cpp.

bool KSFileReader::setLine ( int  i  ) 

Go to a specific line in the file.

i the line number to skip to.

Definition at line 52 of file ksfilereader.cpp.


The documentation for this class was generated from the following files:
  • ksfilereader.h
  • ksfilereader.cpp

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal