31#ifndef FILE_READER_INCLUDED
32#define FILE_READER_INCLUDED
41#include <sigc++/sigc++.h>
136 bool open(
const std::string& name);
150 bool isOpen(
void)
const {
return (fd != -1); }
171 void onDataAvail(
FdWatch *watch);
172 bool fillBuffer(
void);
173 int bytesInBuffer(
void)
const;
A class for watching file descriptors.
bool open(const std::string &name)
Open a file for binary reading.
bool isOpen(void) const
Check if a file is currently opened.
int read(void *buf, int len)
Read data from a previously opened file.
~FileReader(void)
Destructor.
FileReader(int buf_size)
Constuctor.
bool close(void)
Close a previously opened file.
Namespace for the asynchronous programming classes.