#include "PythonQtWrapper_QTextStream.h" #include #include #include #include #include #include #include #include QTextStream* PythonQtWrapper_QTextStream::new_QTextStream() { return new PythonQtShell_QTextStream(); } QTextStream* PythonQtWrapper_QTextStream::new_QTextStream(QIODevice* device) { return new PythonQtShell_QTextStream(device); } QTextStream* PythonQtWrapper_QTextStream::new_QTextStream(const QByteArray& array, QIODevice::OpenMode openMode) { return new PythonQtShell_QTextStream(array, openMode); } QTextStream& PythonQtWrapper_QTextStream::writeShort(QTextStream* theWrappedObject, signed short i) { return (*theWrappedObject) <read(maxlen); } void PythonQtWrapper_QTextStream::flush(QTextStream* theWrappedObject) { theWrappedObject->flush(); } void PythonQtWrapper_QTextStream::setIntegerBase(QTextStream* theWrappedObject, int base) { theWrappedObject->setIntegerBase(base); } QTextStream::NumberFlags PythonQtWrapper_QTextStream::numberFlags(QTextStream* theWrappedObject) const { return theWrappedObject->numberFlags(); } QTextStream& PythonQtWrapper_QTextStream::writeDouble(QTextStream* theWrappedObject, double f) { return (*theWrappedObject) <setPadChar(ch); } void PythonQtWrapper_QTextStream::setRealNumberPrecision(QTextStream* theWrappedObject, int precision) { theWrappedObject->setRealNumberPrecision(precision); } QTextStream& PythonQtWrapper_QTextStream::readLongLong(QTextStream* theWrappedObject, qlonglong& i) { return (*theWrappedObject) >>i; } void PythonQtWrapper_QTextStream::setRealNumberNotation(QTextStream* theWrappedObject, QTextStream::RealNumberNotation notation) { theWrappedObject->setRealNumberNotation(notation); } QTextStream& PythonQtWrapper_QTextStream::readFloat(QTextStream* theWrappedObject, float& f) { return (*theWrappedObject) >>f; } QTextStream::RealNumberNotation PythonQtWrapper_QTextStream::realNumberNotation(QTextStream* theWrappedObject) const { return theWrappedObject->realNumberNotation(); } QTextStream& PythonQtWrapper_QTextStream::writeByteArray(QTextStream* theWrappedObject, const QByteArray& array) { return (*theWrappedObject) <>i; } void PythonQtWrapper_QTextStream::setCodec(QTextStream* theWrappedObject, QTextCodec* codec) { theWrappedObject->setCodec(codec); } void PythonQtWrapper_QTextStream::setDevice(QTextStream* theWrappedObject, QIODevice* device) { theWrappedObject->setDevice(device); } void PythonQtWrapper_QTextStream::setCodec(QTextStream* theWrappedObject, const char* codecName) { theWrappedObject->setCodec(codecName); } void PythonQtWrapper_QTextStream::setAutoDetectUnicode(QTextStream* theWrappedObject, bool enabled) { theWrappedObject->setAutoDetectUnicode(enabled); } qint64 PythonQtWrapper_QTextStream::pos(QTextStream* theWrappedObject) const { return theWrappedObject->pos(); } QTextStream& PythonQtWrapper_QTextStream::writeInt(QTextStream* theWrappedObject, signed int i) { return (*theWrappedObject) <setStatus(status); } QTextStream::Status PythonQtWrapper_QTextStream::status(QTextStream* theWrappedObject) const { return theWrappedObject->status(); } QIODevice* PythonQtWrapper_QTextStream::device(QTextStream* theWrappedObject) const { return theWrappedObject->device(); } bool PythonQtWrapper_QTextStream::atEnd(QTextStream* theWrappedObject) const { return theWrappedObject->atEnd(); } QTextStream& PythonQtWrapper_QTextStream::writeBoolean(QTextStream* theWrappedObject, QBool b) { return (*theWrappedObject) <reset(); } void PythonQtWrapper_QTextStream::setGenerateByteOrderMark(QTextStream* theWrappedObject, bool generate) { theWrappedObject->setGenerateByteOrderMark(generate); } bool PythonQtWrapper_QTextStream::generateByteOrderMark(QTextStream* theWrappedObject) const { return theWrappedObject->generateByteOrderMark(); } QTextStream& PythonQtWrapper_QTextStream::writeFloat(QTextStream* theWrappedObject, float f) { return (*theWrappedObject) <codec(); } QTextStream& PythonQtWrapper_QTextStream::readDouble(QTextStream* theWrappedObject, double& f) { return (*theWrappedObject) >>f; } void PythonQtWrapper_QTextStream::skipWhiteSpace(QTextStream* theWrappedObject) { theWrappedObject->skipWhiteSpace(); } int PythonQtWrapper_QTextStream::integerBase(QTextStream* theWrappedObject) const { return theWrappedObject->integerBase(); } QTextStream& PythonQtWrapper_QTextStream::readByte(QTextStream* theWrappedObject, char& ch) { return (*theWrappedObject) >>ch; } QTextStream& PythonQtWrapper_QTextStream::readShort(QTextStream* theWrappedObject, signed short& i) { return (*theWrappedObject) >>i; } QString PythonQtWrapper_QTextStream::readLine(QTextStream* theWrappedObject, qint64 maxlen) { return theWrappedObject->readLine(maxlen); } QTextStream& PythonQtWrapper_QTextStream::writeString(QTextStream* theWrappedObject, const QString& s) { return (*theWrappedObject) <realNumberPrecision(); } int PythonQtWrapper_QTextStream::fieldWidth(QTextStream* theWrappedObject) const { return theWrappedObject->fieldWidth(); } bool PythonQtWrapper_QTextStream::seek(QTextStream* theWrappedObject, qint64 pos) { return theWrappedObject->seek(pos); } bool PythonQtWrapper_QTextStream::autoDetectUnicode(QTextStream* theWrappedObject) const { return theWrappedObject->autoDetectUnicode(); } QTextStream::FieldAlignment PythonQtWrapper_QTextStream::fieldAlignment(QTextStream* theWrappedObject) const { return theWrappedObject->fieldAlignment(); } QChar PythonQtWrapper_QTextStream::padChar(QTextStream* theWrappedObject) const { return theWrappedObject->padChar(); } void PythonQtWrapper_QTextStream::resetStatus(QTextStream* theWrappedObject) { theWrappedObject->resetStatus(); } void PythonQtWrapper_QTextStream::setNumberFlags(QTextStream* theWrappedObject, QTextStream::NumberFlags flags) { theWrappedObject->setNumberFlags(flags); } QTextStream& PythonQtWrapper_QTextStream::readInt(QTextStream* theWrappedObject, signed int& i) { return (*theWrappedObject) >>i; } QTextStream& PythonQtWrapper_QTextStream::writeByte(QTextStream* theWrappedObject, char ch) { return (*theWrappedObject) <>i; } QString PythonQtWrapper_QTextStream::readAll(QTextStream* theWrappedObject) { return theWrappedObject->readAll(); } void PythonQtWrapper_QTextStream::setFieldAlignment(QTextStream* theWrappedObject, QTextStream::FieldAlignment alignment) { theWrappedObject->setFieldAlignment(alignment); } void PythonQtWrapper_QTextStream::setFieldWidth(QTextStream* theWrappedObject, int width) { theWrappedObject->setFieldWidth(width); }