LogWriter operator<<(LogWriter w, const QStringList &strList) { w.write('['); for (int i = 0; i < strList.size(); ++i) { w.write(strList.at(i)); if (i != strList.size() - 1) w.write(QLatin1String(", ")); } w.write(']'); return w; }
LogWriter operator<<(LogWriter w, const QSet<QString> &strSet) { bool firstLoop = true; w.write('('); foreach (const QString &str, strSet) { if (firstLoop) firstLoop = false; else w.write(QLatin1String(", ")); w.write(str); } w.write(')'); return w; }
LogWriter operator<<(LogWriter w, const QByteArray &byteArray) { w.write(byteArray.data()); return w; }
LogWriter operator<<(LogWriter w, const QString &str) { w.write(str); return w; }
LogWriter operator<<(LogWriter w, const char *str) { w.write(str); return w; }