Eneboo - Documentación para desarrolladores
Métodos públicos | Atributos protegidos
Referencia de la Clase QStringBuffer
Diagrama de herencias de QStringBuffer
QIODevice

Lista de todos los miembros.

Métodos públicos

 QStringBuffer (QString *str)
 ~QStringBuffer ()
bool open (int m)
void close ()
void flush ()
Offset size () const
Offset at () const
bool at (Offset pos)
Q_LONG readBlock (char *p, Q_ULONG len)
Q_LONG writeBlock (const char *p, Q_ULONG len)
int getch ()
int putch (int ch)
int ungetch (int ch)

Atributos protegidos

QStrings

Documentación del constructor y destructor

QStringBuffer::QStringBuffer ( QString str)
QStringBuffer::~QStringBuffer ( )

Documentación de las funciones miembro

QIODevice::Offset QStringBuffer::at ( ) const [virtual]

Virtual function that returns the current I/O device position.

This is the position of the data read/write head of the I/O device.

Ver también:
size()

Reimplementado de QIODevice.

bool QStringBuffer::at ( Offset  pos) [virtual]

Virtual function that sets the I/O device position to pos. Returns TRUE if the position was successfully set, i.e. pos is within range and the seek was successful; otherwise returns FALSE.

Ver también:
size()

Reimplementado de QIODevice.

void QStringBuffer::close ( void  ) [virtual]

Closes the I/O device.

This virtual function must be reimplemented by all subclasses.

Ver también:
open()

Implementa QIODevice.

void QStringBuffer::flush ( ) [virtual]

Flushes an open I/O device.

This virtual function must be reimplemented by all subclasses.

Implementa QIODevice.

int QStringBuffer::getch ( ) [virtual]

Reads a single byte/character from the I/O device.

Returns the byte/character read, or -1 if the end of the I/O device has been reached.

This virtual function must be reimplemented by all subclasses.

Ver también:
putch(), ungetch()

Implementa QIODevice.

bool QStringBuffer::open ( int  mode) [virtual]

Opens the I/O device using the specified mode. Returns TRUE if the device was successfully opened; otherwise returns FALSE.

The mode parameter mode must be an OR'ed combination of the following flags. Mode flags Meaning IO_Raw specifies raw (unbuffered) file access. IO_ReadOnly opens a file in read-only mode. IO_WriteOnly opens a file in write-only mode. IO_ReadWrite opens a file in read/write mode. IO_Append sets the file index to the end of the file. IO_Truncate truncates the file. IO_Translate enables carriage returns and linefeed translation for text files under MS-DOS, Windows and Macintosh. On Unix systems this flag has no effect. Use with caution as it will also transform every linefeed written to the file into a CRLF pair. This is likely to corrupt your file if you write write binary data. Cannot be combined with IO_Raw.

This virtual function must be reimplemented by all subclasses.

Ver también:
close()

Implementa QIODevice.

int QStringBuffer::putch ( int  ch) [virtual]

Writes the character ch to the I/O device.

Returns ch, or -1 if an error occurred.

This virtual function must be reimplemented by all subclasses.

Ver también:
getch(), ungetch()

Implementa QIODevice.

Q_LONG QStringBuffer::readBlock ( char *  data,
Q_ULONG  maxlen 
) [virtual]

Reads at most maxlen bytes from the I/O device into data and returns the number of bytes actually read.

This function should return -1 if a fatal error occurs and should return 0 if there are no bytes to read.

The device must be opened for reading, and data must not be 0.

This virtual function must be reimplemented by all subclasses.

Ver también:
writeBlock() isOpen() isReadable()

Implementa QIODevice.

QIODevice::Offset QStringBuffer::size ( ) const [virtual]

Virtual function that returns the size of the I/O device.

Ver también:
at()

Implementa QIODevice.

int QStringBuffer::ungetch ( int  ch) [virtual]

Puts the character ch back into the I/O device and decrements the index position if it is not zero.

This function is normally called to "undo" a getch() operation.

Returns ch, or -1 if an error occurred.

This virtual function must be reimplemented by all subclasses.

Ver también:
getch(), putch()

Implementa QIODevice.

Q_LONG QStringBuffer::writeBlock ( const char *  data,
Q_ULONG  len 
) [virtual]

Writes len bytes from data to the I/O device and returns the number of bytes actually written.

This function should return -1 if a fatal error occurs.

This virtual function must be reimplemented by all subclasses.

Ver también:
readBlock()

Implementa QIODevice.


Documentación de los datos miembro

QString* QStringBuffer::s [protected]

La documentación para esta clase fue generada a partir del siguiente fichero:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'