static PyObject *meth_QCaDateTime_text(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; { QCaDateTime *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QCaDateTime, &sipCpp)) { QString *sipRes; Py_BEGIN_ALLOW_THREADS sipRes = new QString(sipCpp->text()); Py_END_ALLOW_THREADS return sipConvertFromNewType(sipRes,sipType_QString,NULL); } }
// Log data updates and messages void monitor::log( const QString& data, QCaAlarmInfo&, QCaDateTime& timeStamp, const unsigned int & ) { *stream << QString( "%1: %2 %3\n").arg( timeStamp.text() ).arg( pv ).arg( data ); stream->flush(); }