WARNING: USE THIS SOFTWARE AT YOUR OWN RISK! THIS IS EXPERIMENTAL SOFTWARE NOT INTENDED FOR PRODUCTION USE! Zuble is currently an early stage prototype. As such Zuble is minimally tested and inherently unstable. It is provided for experimental, development, and demonstration purposes only. Zuble QML Types   |  Zuble C++ Classes   |  Zuble Overview
Zuble  0.1
Zuble Framework C++/QML extension API
Namespaces | Macros | Functions | Variables
ZTextStream.cpp File Reference
#include "ZTextStream.h"
#include "ZByteArray.h"
#include <QtQml>
#include <cstdio>
#include "zglobal.h"
Include dependency graph for ZTextStream.cpp:

Go to the source code of this file.

Namespaces

 Zbl
 

Macros

#define readNumericDataType(dataType, className, methodName)
 
#define writeNumericDataType(dataType, className, methodName)
 

Functions

 Zbl::readNumericDataType (signed short, ZTextStream, readShort) readNumericDataType(unsigned short
 
readUShort Zbl::readNumericDataType (signed int, ZTextStream, readInt) readNumericDataType(unsigned int
 
readUShort readUInt Zbl::readNumericDataType (signed long, ZTextStream, readLong) readNumericDataType(unsigned long
 
readUShort readUInt readULong Zbl::readNumericDataType (qlonglong, ZTextStream, readLongLong) readNumericDataType(qulonglong
 
readUShort readUInt readULong readULongLong Zbl::readNumericDataType (float, ZTextStream, readFloat) readNumericDataType(double
 
 Zbl::writeNumericDataType (signed short, ZTextStream, writeShort) writeNumericDataType(unsigned short
 
writeUShort Zbl::writeNumericDataType (signed int, ZTextStream, writeInt) writeNumericDataType(unsigned int
 
writeUShort writeUInt Zbl::writeNumericDataType (signed long, ZTextStream, writeLong) writeNumericDataType(unsigned long
 
writeUShort writeUInt writeULong Zbl::writeNumericDataType (qlonglong, ZTextStream, writeLongLong) writeNumericDataType(qulonglong
 
writeUShort writeUInt writeULong writeULongLong Zbl::writeNumericDataType (float, ZTextStream, writeFloat) writeNumericDataType(double
 

Variables

 Zbl::ZTextStream
 

Macro Definition Documentation

◆ readNumericDataType

#define readNumericDataType (   dataType,
  className,
  methodName 
)
Value:
dataType className::methodName() \
{ \
qDebug("%s::%s", #className, #methodName); \
dataType data = 0; \
ZBL_SLOT_BEGIN_TRY \
validateReadable(); \
*m_t >> data; \
ZBL_SLOT_END_RETURN(data, 0, \
Z_FAC_JS, className::methodName, methodName failed) \
}
#define Z_FAC_JS
Definition: zglobal.h:123

Definition at line 440 of file ZTextStream.cpp.

◆ writeNumericDataType

#define writeNumericDataType (   dataType,
  className,
  methodName 
)
Value:
bool className::methodName(dataType data) \
{ \
qDebug("%s::%s", #className, #methodName); \
ZBL_SLOT_BEGIN_TRY \
validateWritable(); \
*m_t << data; \
ZBL_SLOT_END_RETURN(true, false, \
Z_FAC_JS, className::methodName, methodName failed) \
}
#define Z_FAC_JS
Definition: zglobal.h:123

Definition at line 498 of file ZTextStream.cpp.