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