Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

LogFileWatcher Class Reference

#include <LogWatcher.h>

List of all members.

Public Methods

 LogFileWatcher (const Chars &fname, int timeInterval)
 ~LogFileWatcher ()
bool changed ()
Chars getline ()
int getInterval () const
void setInterval (int timeInterval)

Private Methods

long fileSize ()
char peekCh ()
char getCh ()
 LogFileWatcher (const LogFileWatcher &watch)
LogFileWatcher& operator= (const LogFileWatcher &watch)

Private Attributes

fstream file
Chars fileName
long filePos
Chars line
char* buffer
int bufpos
bool completeLine
Timer timer
int interval


Constructor & Destructor Documentation

LogFileWatcher::LogFileWatcher ( const Chars & fname,
int timeInterval )
 

LogFileWatcher::~LogFileWatcher ( )
 

LogFileWatcher::LogFileWatcher ( const LogFileWatcher & watch ) [private]
 


Member Function Documentation

bool LogFileWatcher::changed ( )
 

Chars LogFileWatcher::getline ( )
 

int LogFileWatcher::getInterval ( ) const [inline]
 

Definition at line 40 of file LogWatcher.h.

void LogFileWatcher::setInterval ( int timeInterval ) [inline]
 

Definition at line 42 of file LogWatcher.h.

long LogFileWatcher::fileSize ( ) [private]
 

char LogFileWatcher::peekCh ( ) [inline, private]
 

Definition at line 52 of file LogWatcher.h.

char LogFileWatcher::getCh ( ) [inline, private]
 

Definition at line 54 of file LogWatcher.h.

LogFileWatcher& LogFileWatcher::operator= ( const LogFileWatcher & watch ) [private]
 


Member Data Documentation

fstream LogFileWatcher::file [private]
 

Definition at line 58 of file LogWatcher.h.

Chars LogFileWatcher::fileName [private]
 

Definition at line 59 of file LogWatcher.h.

long LogFileWatcher::filePos [private]
 

Definition at line 60 of file LogWatcher.h.

Chars LogFileWatcher::line [private]
 

Definition at line 63 of file LogWatcher.h.

char* LogFileWatcher::buffer [private]
 

Definition at line 64 of file LogWatcher.h.

int LogFileWatcher::bufpos [private]
 

Definition at line 65 of file LogWatcher.h.

bool LogFileWatcher::completeLine [private]
 

Definition at line 66 of file LogWatcher.h.

Timer LogFileWatcher::timer [private]
 

Definition at line 68 of file LogWatcher.h.

int LogFileWatcher::interval [private]
 

Definition at line 69 of file LogWatcher.h.


The documentation for this class was generated from the following file:
Generated at Tue Jun 19 09:49:57 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001