Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
@@ -6,8 +6,13 @@
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
#include <QVariant>
|
||||
#include <utility>
|
||||
#include "StructBuilder.h"
|
||||
|
||||
#ifdef RTI_HEADER_AVAILABLE
|
||||
#include <dds/core/xtypes/EnumType.hpp>
|
||||
#endif
|
||||
|
||||
namespace CodeGen
|
||||
{
|
||||
class NameWrapper : public QObject
|
||||
@@ -38,7 +43,7 @@ public:
|
||||
using NameWrapper::NameWrapper;
|
||||
~VariantListWrapper()
|
||||
{
|
||||
for (const QVariant &v : qAsConst(m_member))
|
||||
for (const QVariant &v : std::as_const(m_member))
|
||||
{
|
||||
auto ptr = v.value<QObject *>();
|
||||
delete ptr;
|
||||
@@ -75,6 +80,7 @@ class MemberInformationWrapper final : public QObject
|
||||
Q_PROPERTY(QString jsonElementToDb READ jsonElementToDb)
|
||||
Q_PROPERTY(bool dbHasSequence READ dbHasSequence)
|
||||
Q_PROPERTY(bool isOptional READ isOptional)
|
||||
Q_PROPERTY(bool isCppStruct READ isCppStruct)
|
||||
public:
|
||||
MemberInformationWrapper(const MemberInformation &mi, QObject *parent)
|
||||
: QObject(parent)
|
||||
@@ -103,6 +109,7 @@ public:
|
||||
QString jsonElementToDb() const;
|
||||
bool dbHasSequence() const { return m_mi.db.hasSequence; }
|
||||
bool isOptional() const { return m_mi.cpp.isOptional; }
|
||||
bool isCppStruct() const { return m_mi.cpp.usedForCppStruct; }
|
||||
|
||||
|
||||
QString cppToJsonPre() const { return m_mi.cpp.toJsonPre.isNull() ? m_mi.cpp.toVariantPre : m_mi.cpp.toJsonPre; }
|
||||
@@ -245,7 +252,7 @@ public:
|
||||
, m_csi(csi)
|
||||
{
|
||||
m_dbNotifications.reserve(m_csi.dbNotifications.size());
|
||||
for (const auto ¬ification : qAsConst(m_csi.dbNotifications))
|
||||
for (const auto ¬ification : std::as_const(m_csi.dbNotifications))
|
||||
m_dbNotifications += QVariant(notification.methodName);
|
||||
}
|
||||
|
||||
@@ -356,7 +363,7 @@ public:
|
||||
, m_ctti(ctti)
|
||||
{
|
||||
m_member.reserve(m_ctti.members.size());
|
||||
for (const auto &val : qAsConst(m_ctti.members))
|
||||
for (const auto &val : std::as_const(m_ctti.members))
|
||||
m_member += QVariant::fromValue(new IdlDataWrapper(val, this));
|
||||
}
|
||||
|
||||
@@ -366,7 +373,11 @@ public:
|
||||
|
||||
private:
|
||||
const CompleteTopicTypeInformation m_ctti;
|
||||
#ifdef RTI_HEADER_AVAILABLE
|
||||
static QString extensibility2String(dds::core::xtypes::ExtensibilityKind extensiblity);
|
||||
#else
|
||||
static QString extensibility2String(int extensiblity);
|
||||
#endif
|
||||
};
|
||||
|
||||
class IdlServiceWrapper final : public QObject
|
||||
|
||||
Reference in new issue
Block a user