Qx v0.5.7
Qt Extensions Library
Loading...
Searching...
No Matches
qx-textstream.h
1#ifndef QX_TEXTSTREAM_H
2#define QX_TEXTSTREAM_H
3
4// Shared Lib Support
5#include "qx/io/qx_io_export.h"
6
7// Qt Includes
8#include <QTextStream>
9#include <QIODevice>
10
11namespace Qx
12{
13
14class QX_IO_EXPORT TextStream : public QTextStream
15{
16//-Instance Variables------------------------------------------------------------------------------------------------
17private:
18 int mMinCharWidth = 1;
20
21//-Constructor-------------------------------------------------------------------------------------------------------
22public:
26 TextStream(FILE* fileHandle, QIODevice::OpenMode openMode = QIODevice::ReadWrite);
27 TextStream(QIODevice* device);
28
29//-Instance Functions------------------------------------------------------------------------------------------------
30public:
31 bool precedingBreak();
32 QString readLineWithBreak(qint64 maxlen = 0);
33};
34
35}
36
37#endif // QX_TEXTSTREAM_H
The TextStream class is a more robust variant of QTextStream, which provides a convenient interface f...
Definition qx-textstream.h:15
The Qx namespace is the main namespace through which all non-global functionality of the Qx library i...
Definition qx-processwaiter.cpp:5
typedef OpenMode