From aa714b0076c06d7133c625ab22c86114d4f17e23 Mon Sep 17 00:00:00 2001 From: geronimo Date: Sun, 29 Jul 2012 16:00:29 +0200 Subject: cleanup --- libs/IO/include/LineReader.h | 48 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 libs/IO/include/LineReader.h (limited to 'libs/IO/include/LineReader.h') 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: Geronimo + * 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 -- cgit v1.2.3