Revision control

++ /* This file is autogenerated. DO NOT CHANGE. All changes will be lost */
++
++
++ #include "string-escaping.qpb.h"
++
++ #include <QtProtobuf/qprotobufregistration.h>
++
++ #include <cmath>
++
++ namespace qtprotobufnamespace::tests {
++
++ class EscapedStrings_QtProtobufData : public QSharedData
++ {
++ public:
++ EscapedStrings_QtProtobufData()
++ : QSharedData()
++ {
++ }
++
++ EscapedStrings_QtProtobufData(const EscapedStrings_QtProtobufData &other)
++ : QSharedData(other),
++ m_quote(other.m_quote),
++ m_leadingDigit(other.m_leadingDigit),
++ m_backslash(other.m_backslash),
++ m_escapeSequence(other.m_escapeSequence),
++ m_commentEnd(other.m_commentEnd),
++ m_commentMiddle(other.m_commentMiddle),
++ m_newline(other.m_newline),
++ m_nonAscii(other.m_nonAscii),
++ m_dollar(other.m_dollar)
++ {
++ }
++
++ QString m_quote;
++ QString m_leadingDigit;
++ QString m_backslash;
++ QString m_escapeSequence;
++ QString m_commentEnd;
++ QString m_commentMiddle;
++ QString m_newline;
++ QString m_nonAscii;
++ QString m_dollar;
++ };
++
++ EscapedStrings::~EscapedStrings() = default;
++
++ static constexpr struct {
++ QtProtobufPrivate::QProtobufPropertyOrdering::Data data;
++ const std::array<uint, 37> qt_protobuf_EscapedStrings_uint_data;
++ const char qt_protobuf_EscapedStrings_char_data[121];
++ } qt_protobuf_EscapedStrings_metadata {
++ // data
++ {
++ 0, /* = version */
++ 9, /* = num fields */
++ 10, /* = field number offset */
++ 19, /* = property index offset */
++ 28, /* = field flags offset */
++ 40, /* = message full name length */
++ },
++ // uint_data
++ {
++ // JSON name offsets:
++ 41, /* = q\"uote */
++ 48, /* = 7up */
++ 52, /* = back\\slash */
++ 63, /* = \\x41 */
++ 68, /* = comment* /End */
++ 81, /* = comment/ *Middle* / */
++ 99, /* = new\012line */
++ 108, /* = \303\244 */
++ 111, /* = $dollar$ */
++ 120, /* = end-of-string-marker */
++ // Field numbers:
++ 1, /* = q\"uote */
++ 8, /* = 7up */
++ 2, /* = back\\slash */
++ 3, /* = \\x41 */
++ 4, /* = comment* /End */
++ 9, /* = comment/ *Middle* / */
++ 5, /* = new\012line */
++ 6, /* = \303\244 */
++ 7, /* = $dollar$ */
++ // Property indices:
++ 0, /* = q\"uote */
++ 1, /* = 7up */
++ 2, /* = back\\slash */
++ 3, /* = \\x41 */
++ 4, /* = comment* /End */
++ 5, /* = comment/ *Middle* / */
++ 6, /* = new\012line */
++ 7, /* = \303\244 */
++ 8, /* = $dollar$ */
++ // Field flags:
++ uint(QtProtobufPrivate::FieldFlag::NoFlags), /* = q\"uote */
++ uint(QtProtobufPrivate::FieldFlag::NoFlags), /* = 7up */
++ uint(QtProtobufPrivate::FieldFlag::NoFlags), /* = back\\slash */
++ uint(QtProtobufPrivate::FieldFlag::NoFlags), /* = \\x41 */
++ uint(QtProtobufPrivate::FieldFlag::NoFlags), /* = comment* /End */
++ uint(QtProtobufPrivate::FieldFlag::NoFlags), /* = comment/ *Middle* / */
++ uint(QtProtobufPrivate::FieldFlag::NoFlags), /* = new\012line */
++ uint(QtProtobufPrivate::FieldFlag::NoFlags), /* = \303\244 */
++ uint(QtProtobufPrivate::FieldFlag::NoFlags), /* = $dollar$ */
++ },
++ // char_data
++ /* metadata char_data: */
++ "qtprotobufnamespace.tests.EscapedStrings\0" /* = full message name */
++ /* field char_data: */
++ "q\"uote\0" "7up\0back\\slash\0\\x41\0comment*/End\0"
++ "comment/*Middle*/\0new\012line\0\303\244\0$dollar$\0"
++ };
++
++ const QtProtobufPrivate::QProtobufPropertyOrdering EscapedStrings::staticPropertyOrdering = {
++ &qt_protobuf_EscapedStrings_metadata.data
++ };
++
++ void EscapedStrings::registerTypes()
++ {
++ qRegisterMetaType<EscapedStrings>();
++ qRegisterMetaType<QList<EscapedStrings>>();
++ }
++
++ EscapedStrings::EscapedStrings()
++ : QProtobufMessage(&EscapedStrings::staticMetaObject, &EscapedStrings::staticPropertyOrdering),
++ dptr(new EscapedStrings_QtProtobufData)
++ {
++ }
++
++ EscapedStrings::EscapedStrings(const EscapedStrings &other)
++ = default;
++ EscapedStrings &EscapedStrings::operator =(const EscapedStrings &other)
++ {
++ EscapedStrings temp(other);
++ swap(temp);
++ return *this;
++ }
++ EscapedStrings::EscapedStrings(EscapedStrings &&other) noexcept
++ = default;
++ EscapedStrings::operator QVariant() const
++ {
++ return QVariant::fromValue(*this);
++ }
++ bool comparesEqual(const EscapedStrings &lhs, const EscapedStrings &rhs) noexcept
++ {
++ return operator ==(static_cast<const QProtobufMessage&>(lhs),
++ static_cast<const QProtobufMessage&>(rhs))
++ && lhs.dptr->m_quote == rhs.dptr->m_quote
++ && lhs.dptr->m_leadingDigit == rhs.dptr->m_leadingDigit
++ && lhs.dptr->m_backslash == rhs.dptr->m_backslash
++ && lhs.dptr->m_escapeSequence == rhs.dptr->m_escapeSequence
++ && lhs.dptr->m_commentEnd == rhs.dptr->m_commentEnd
++ && lhs.dptr->m_commentMiddle == rhs.dptr->m_commentMiddle
++ && lhs.dptr->m_newline == rhs.dptr->m_newline
++ && lhs.dptr->m_nonAscii == rhs.dptr->m_nonAscii
++ && lhs.dptr->m_dollar == rhs.dptr->m_dollar;
++ }
++
++ const QString &EscapedStrings::quote() const &
++ {
++ return dptr->m_quote;
++ }
++
++ const QString &EscapedStrings::leadingDigit() const &
++ {
++ return dptr->m_leadingDigit;
++ }
++
++ const QString &EscapedStrings::backslash() const &
++ {
++ return dptr->m_backslash;
++ }
++
++ const QString &EscapedStrings::escapeSequence() const &
++ {
++ return dptr->m_escapeSequence;
++ }
++
++ const QString &EscapedStrings::commentEnd() const &
++ {
++ return dptr->m_commentEnd;
++ }
++
++ const QString &EscapedStrings::commentMiddle() const &
++ {
++ return dptr->m_commentMiddle;
++ }
++
++ const QString &EscapedStrings::newline() const &
++ {
++ return dptr->m_newline;
++ }
++
++ const QString &EscapedStrings::nonAscii() const &
++ {
++ return dptr->m_nonAscii;
++ }
++
++ const QString &EscapedStrings::dollar() const &
++ {
++ return dptr->m_dollar;
++ }
++
++ void EscapedStrings::setQuote(const QString &quote)
++ {
++ if (dptr->m_quote != quote) {
++ dptr.detach();
++ dptr->m_quote = quote;
++ }
++ }
++
++ void EscapedStrings::setQuote(QString &&quote)
++ {
++ if (dptr->m_quote != quote) {
++ dptr.detach();
++ dptr->m_quote = std::move(quote);
++ }
++ }
++
++ void EscapedStrings::setLeadingDigit(const QString &leadingDigit)
++ {
++ if (dptr->m_leadingDigit != leadingDigit) {
++ dptr.detach();
++ dptr->m_leadingDigit = leadingDigit;
++ }
++ }
++
++ void EscapedStrings::setLeadingDigit(QString &&leadingDigit)
++ {
++ if (dptr->m_leadingDigit != leadingDigit) {
++ dptr.detach();
++ dptr->m_leadingDigit = std::move(leadingDigit);
++ }
++ }
++
++ void EscapedStrings::setBackslash(const QString &backslash)
++ {
++ if (dptr->m_backslash != backslash) {
++ dptr.detach();
++ dptr->m_backslash = backslash;
++ }
++ }
++
++ void EscapedStrings::setBackslash(QString &&backslash)
++ {
++ if (dptr->m_backslash != backslash) {
++ dptr.detach();
++ dptr->m_backslash = std::move(backslash);
++ }
++ }
++
++ void EscapedStrings::setEscapeSequence(const QString &escapeSequence)
++ {
++ if (dptr->m_escapeSequence != escapeSequence) {
++ dptr.detach();
++ dptr->m_escapeSequence = escapeSequence;
++ }
++ }
++
++ void EscapedStrings::setEscapeSequence(QString &&escapeSequence)
++ {
++ if (dptr->m_escapeSequence != escapeSequence) {
++ dptr.detach();
++ dptr->m_escapeSequence = std::move(escapeSequence);
++ }
++ }
++
++ void EscapedStrings::setCommentEnd(const QString &commentEnd)
++ {
++ if (dptr->m_commentEnd != commentEnd) {
++ dptr.detach();
++ dptr->m_commentEnd = commentEnd;
++ }
++ }
++
++ void EscapedStrings::setCommentEnd(QString &&commentEnd)
++ {
++ if (dptr->m_commentEnd != commentEnd) {
++ dptr.detach();
++ dptr->m_commentEnd = std::move(commentEnd);
++ }
++ }
++
++ void EscapedStrings::setCommentMiddle(const QString &commentMiddle)
++ {
++ if (dptr->m_commentMiddle != commentMiddle) {
++ dptr.detach();
++ dptr->m_commentMiddle = commentMiddle;
++ }
++ }
++
++ void EscapedStrings::setCommentMiddle(QString &&commentMiddle)
++ {
++ if (dptr->m_commentMiddle != commentMiddle) {
++ dptr.detach();
++ dptr->m_commentMiddle = std::move(commentMiddle);
++ }
++ }
++
++ void EscapedStrings::setNewline(const QString &newline)
++ {
++ if (dptr->m_newline != newline) {
++ dptr.detach();
++ dptr->m_newline = newline;
++ }
++ }
++
++ void EscapedStrings::setNewline(QString &&newline)
++ {
++ if (dptr->m_newline != newline) {
++ dptr.detach();
++ dptr->m_newline = std::move(newline);
++ }
++ }
++
++ void EscapedStrings::setNonAscii(const QString &nonAscii)
++ {
++ if (dptr->m_nonAscii != nonAscii) {
++ dptr.detach();
++ dptr->m_nonAscii = nonAscii;
++ }
++ }
++
++ void EscapedStrings::setNonAscii(QString &&nonAscii)
++ {
++ if (dptr->m_nonAscii != nonAscii) {
++ dptr.detach();
++ dptr->m_nonAscii = std::move(nonAscii);
++ }
++ }
++
++ void EscapedStrings::setDollar(const QString &dollar)
++ {
++ if (dptr->m_dollar != dollar) {
++ dptr.detach();
++ dptr->m_dollar = dollar;
++ }
++ }
++
++ void EscapedStrings::setDollar(QString &&dollar)
++ {
++ if (dptr->m_dollar != dollar) {
++ dptr.detach();
++ dptr->m_dollar = std::move(dollar);
++ }
++ }
++
++ } // namespace qtprotobufnamespace::tests
++
++ #include "moc_string-escaping.qpb.cpp"