diff options
author | geronimo <geronimo013@gmx.de> | 2012-07-29 16:00:29 +0200 |
---|---|---|
committer | geronimo <geronimo013@gmx.de> | 2012-07-29 16:00:29 +0200 |
commit | aa714b0076c06d7133c625ab22c86114d4f17e23 (patch) | |
tree | f4773543d7c0bf593c20b1a033dea8dc28dd8ad5 /libs/IO/include/LineReader.h | |
parent | 4039d18078da508ba8c628df8e2aa741cf91f266 (diff) | |
download | cmp-aa714b0076c06d7133c625ab22c86114d4f17e23.tar.gz cmp-aa714b0076c06d7133c625ab22c86114d4f17e23.tar.bz2 |
cleanup
Diffstat (limited to 'libs/IO/include/LineReader.h')
-rw-r--r-- | libs/IO/include/LineReader.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/libs/IO/include/LineReader.h b/libs/IO/include/LineReader.h new file mode 100644 index 0000000..8b8b754 --- /dev/null +++ b/libs/IO/include/LineReader.h @@ -0,0 +1,48 @@ +/** + * ======================== legal notice ====================== + * + * File: LineReader.h + * Created: 28. Juli 2012, 06 + * Author: <a href="mailto:geronimo013@gmx.de">Geronimo</a> + * Project: libIO: classes for files, filesystem and input/output + * + * CMP - compound media player + * + * is a client/server mediaplayer intended to play any media from any workstation + * without the need to export or mount shares. cmps is an easy to use backend + * with a (ready to use) HTML-interface. Additionally the backend supports + * authentication via HTTP-digest authorization. + * cmpc is a client with vdr-like osd-menues. + * + * Copyright (c) 2012 Reinhard Mantey, some rights reserved! + * published under Creative Commons by-sa + * For details see http://creativecommons.org/licenses/by-sa/3.0/ + * + * The cmp project's homepage is at http://projects.vdr-developer.org/projects/cmp + * + * -------------------------------------------------------------- + */ +#ifndef LINEREADER_H +#define LINEREADER_H + + +class cFileReader; +class cLineReader +{ +public: + cLineReader(cFileReader *FileReader); + virtual ~cLineReader(); + + const char *ReadLine(void); + void Close(void); + +private: + cFileReader *reader; + int bytesRead; + int off; + int bufSize; + char *buf; + char *lastLine; + }; + +#endif // LINEREADER_H |