Classes | Typedefs | Functions
qtextstream.h File Reference
#include "qiodevice.h"
#include "qstring.h"
#include <stdio.h>

Go to the source code of this file.

Classes

class  QTextStream
 The QTextStream class provides basic functions for reading and writing text using a QIODevice. More...
 
class  QTextIStream
 A convenience class for input streams. More...
 
class  QTextOStream
 A convenience class for output streams. More...
 
class  QTSManip
 

Typedefs

typedef QTextStream QTS
 
typedef QTextStream &(* QTSFUNC) (QTextStream &)
 
typedef int(QTextStream::* QTSMFI) (int)
 

Functions

Q_EXPORT QTextStreamoperator>> (QTextStream &s, QTSFUNC f)
 
Q_EXPORT QTextStreamoperator<< (QTextStream &s, QTSFUNC f)
 
Q_EXPORT QTextStreamoperator<< (QTextStream &s, QTSManip m)
 
Q_EXPORT QTextStreambin (QTextStream &s)
 
Q_EXPORT QTextStreamoct (QTextStream &s)
 
Q_EXPORT QTextStreamdec (QTextStream &s)
 
Q_EXPORT QTextStreamhex (QTextStream &s)
 
Q_EXPORT QTextStreamendl (QTextStream &s)
 
Q_EXPORT QTextStreamflush (QTextStream &s)
 
Q_EXPORT QTextStreamws (QTextStream &s)
 
Q_EXPORT QTextStreamreset (QTextStream &s)
 
Q_EXPORT QTSManip qSetW (int w)
 
Q_EXPORT QTSManip qSetFill (int f)
 
Q_EXPORT QTSManip qSetPrecision (int p)
 
Q_EXPORT QTSManip setw (int w)
 
Q_EXPORT QTSManip setfill (int f)
 
Q_EXPORT QTSManip setprecision (int p)
 

Typedef Documentation

typedef QTextStream QTS

Definition at line 197 of file qtextstream.h.

typedef QTextStream&(* QTSFUNC) (QTextStream &)

Definition at line 275 of file qtextstream.h.

typedef int(QTextStream::* QTSMFI) (int)

Definition at line 276 of file qtextstream.h.

Function Documentation

Definition at line 2006 of file qtextstream.cpp.

2007 {
2009  return s;
2010 }
int setf(int bits)
Definition: qtextstream.h:238
static const int basefield
Definition: qtextstream.h:134
static QCString * s
Definition: config.cpp:1042

Definition at line 2018 of file qtextstream.cpp.

2019 {
2021  return s;
2022 }
int setf(int bits)
Definition: qtextstream.h:238
static const int basefield
Definition: qtextstream.h:134
static QCString * s
Definition: config.cpp:1042

Definition at line 2030 of file qtextstream.cpp.

2031 {
2032  return s << '\n';
2033 }
Q_EXPORT QTextStream& flush ( QTextStream s)

Definition at line 2035 of file qtextstream.cpp.

2036 {
2037  if ( s.device() )
2038  s.device()->flush();
2039  return s;
2040 }
virtual void flush()=0
QIODevice * device() const
Definition: qtextstream.h:223
static QCString * s
Definition: config.cpp:1042

Definition at line 2024 of file qtextstream.cpp.

2025 {
2027  return s;
2028 }
int setf(int bits)
Definition: qtextstream.h:238
static const int basefield
Definition: qtextstream.h:134
static QCString * s
Definition: config.cpp:1042

Definition at line 2012 of file qtextstream.cpp.

2013 {
2015  return s;
2016 }
int setf(int bits)
Definition: qtextstream.h:238
static const int basefield
Definition: qtextstream.h:134
static QCString * s
Definition: config.cpp:1042
Q_EXPORT QTextStream& operator<< ( QTextStream s,
QTSFUNC  f 
)
inline

Definition at line 290 of file qtextstream.h.

291 { return (*f)( s ); }
static QCString * s
Definition: config.cpp:1042
Q_EXPORT QTextStream& operator<< ( QTextStream s,
QTSManip  m 
)
inline

Definition at line 293 of file qtextstream.h.

294 { m.exec(s); return s; }
void exec(QTextStream &s)
Definition: qtextstream.h:281
static QCString * s
Definition: config.cpp:1042
Q_EXPORT QTextStream& operator>> ( QTextStream s,
QTSFUNC  f 
)
inline

Definition at line 287 of file qtextstream.h.

288 { return (*f)( s ); }
static QCString * s
Definition: config.cpp:1042
Q_EXPORT QTSManip qSetFill ( int  f)
inline

Definition at line 311 of file qtextstream.h.

312 {
314  return QTSManip(func,f);
315 }
int fill() const
Definition: qtextstream.h:253
int(QTextStream::* QTSMFI)(int)
Definition: qtextstream.h:276
def func()
Definition: docstring.py:7
Q_EXPORT QTSManip qSetPrecision ( int  p)
inline

Definition at line 317 of file qtextstream.h.

318 {
320  return QTSManip(func,p);
321 }
int precision() const
Definition: qtextstream.h:259
int(QTextStream::* QTSMFI)(int)
Definition: qtextstream.h:276
p
Definition: test.py:223
def func()
Definition: docstring.py:7
Q_EXPORT QTSManip qSetW ( int  w)
inline

Definition at line 305 of file qtextstream.h.

306 {
308  return QTSManip(func,w);
309 }
int width() const
Definition: qtextstream.h:247
int(QTextStream::* QTSMFI)(int)
Definition: qtextstream.h:276
def func()
Definition: docstring.py:7
Q_EXPORT QTextStream& reset ( QTextStream s)

Definition at line 2048 of file qtextstream.cpp.

2049 {
2050  s.reset();
2051  return s;
2052 }
static QCString * s
Definition: config.cpp:1042
Q_EXPORT QTSManip setfill ( int  f)
inline

Definition at line 337 of file qtextstream.h.

338 {
340  return QTSManip(func,f);
341 }
int fill() const
Definition: qtextstream.h:253
int(QTextStream::* QTSMFI)(int)
Definition: qtextstream.h:276
def func()
Definition: docstring.py:7
Q_EXPORT QTSManip setprecision ( int  p)
inline

Definition at line 343 of file qtextstream.h.

344 {
346  return QTSManip(func,p);
347 }
int precision() const
Definition: qtextstream.h:259
int(QTextStream::* QTSMFI)(int)
Definition: qtextstream.h:276
p
Definition: test.py:223
def func()
Definition: docstring.py:7
Q_EXPORT QTSManip setw ( int  w)
inline

Definition at line 331 of file qtextstream.h.

332 {
334  return QTSManip(func,w);
335 }
int width() const
Definition: qtextstream.h:247
int(QTextStream::* QTSMFI)(int)
Definition: qtextstream.h:276
def func()
Definition: docstring.py:7

Definition at line 2042 of file qtextstream.cpp.

2043 {
2044  s.skipWhiteSpace();
2045  return s;
2046 }
static QCString * s
Definition: config.cpp:1042
void skipWhiteSpace()