10 /** @brief Simplified and optimized version of QTextStream */
15 FTextStream( QIODevice * );
16 FTextStream( QGString * );
17 FTextStream( FILE * );
18 virtual ~FTextStream();
20 QIODevice *device() const;
21 void setDevice( QIODevice * );
24 FTextStream &operator<<( char );
25 FTextStream &operator<<( const char *);
26 FTextStream &operator<<( const QString & );
27 FTextStream &operator<<( const QCString & );
28 FTextStream &operator<<( signed short );
29 FTextStream &operator<<( unsigned short );
30 FTextStream &operator<<( signed int );
31 FTextStream &operator<<( unsigned int );
32 FTextStream &operator<<( signed long );
33 FTextStream &operator<<( unsigned long );
34 FTextStream &operator<<( float );
35 FTextStream &operator<<( double );
40 FTextStream &output_int( ulong n, bool neg );
42 private: // Disabled copy constructor and operator=
43 #if defined(Q_DISABLE_COPY)
44 FTextStream( const FTextStream & );
45 FTextStream &operator=( const FTextStream & );
49 inline FTextStream &FTextStream::operator<<( char c)
55 inline FTextStream &FTextStream::operator<<( const char* s)
57 uint len = qstrlen( s );
58 m_dev->writeBlock( s, len );
62 inline FTextStream &FTextStream::operator<<( const QString & s)
64 return operator<<(s.data());
67 inline FTextStream &FTextStream::operator<<( const QCString &s)
69 return operator<<(s.data());
72 typedef FTextStream & (*FTSFUNC)(FTextStream &);// manipulator function
74 inline FTextStream &operator<<( FTextStream &s, FTSFUNC f )
77 inline FTextStream &endl( FTextStream & s)
82 #endif // FTEXTSTREAM_H