forked from qt-creator/qt-creator
Axivion: integrate generated DTOs
We are not yet making use of the integrated DTOs as this will happen in a future commit along with the network requests to fetch the data. Change-Id: I72cf9005cae052c41a7e906e0fae5dbe176e0882 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Andreas Loth <andreas.loth@qt.io>
This commit is contained in:
committed by
Andreas Loth
parent
5ae116618e
commit
10feedf9de
@@ -12,4 +12,6 @@ add_qtc_plugin(Axivion
|
|||||||
axivionsettings.cpp axivionsettings.h
|
axivionsettings.cpp axivionsettings.h
|
||||||
axivionsettingspage.cpp axivionsettingspage.h
|
axivionsettingspage.cpp axivionsettingspage.h
|
||||||
axiviontr.h
|
axiviontr.h
|
||||||
|
dashboard/dto.cpp dashboard/dto.h
|
||||||
|
dashboard/concat.cpp dashboard/concat.h
|
||||||
)
|
)
|
||||||
|
|||||||
41
src/plugins/axivion/dashboard/concat.cpp
Normal file
41
src/plugins/axivion/dashboard/concat.cpp
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2022-current by Axivion GmbH
|
||||||
|
* https://www.axivion.com/
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||||
|
*
|
||||||
|
* Purpose: Helper functions to concatenate strings/bytes
|
||||||
|
*
|
||||||
|
* !!!!!! GENERATED, DO NOT EDIT !!!!!!
|
||||||
|
*
|
||||||
|
* This file was generated with the script at
|
||||||
|
* <AxivionSuiteRepo>/projects/libs/dashboard_cpp_api/generator/generate_dashboard_cpp_api.py
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "dashboard/concat.h"
|
||||||
|
|
||||||
|
#include <utility>
|
||||||
|
|
||||||
|
template<typename Input, typename Output>
|
||||||
|
static Output concat(const std::initializer_list<const Input> &args) {
|
||||||
|
size_t size = 0;
|
||||||
|
for (const Input &arg : args)
|
||||||
|
size += arg.size();
|
||||||
|
Output output;
|
||||||
|
output.reserve(size);
|
||||||
|
for (const Input &arg : args)
|
||||||
|
output += arg;
|
||||||
|
return output;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string concat(const std::initializer_list<const std::string_view> &args) {
|
||||||
|
return concat<std::string_view, std::string>(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
QString concat(const std::initializer_list<const QStringView> &args) {
|
||||||
|
return concat<QStringView, QString>(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
QByteArray concat_bytes(const std::initializer_list<const QByteArrayView> &args) {
|
||||||
|
return concat<QByteArrayView, QByteArray>(args);
|
||||||
|
}
|
||||||
30
src/plugins/axivion/dashboard/concat.h
Normal file
30
src/plugins/axivion/dashboard/concat.h
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2022-current by Axivion GmbH
|
||||||
|
* https://www.axivion.com/
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||||
|
*
|
||||||
|
* Purpose: Helper functions to concatenate strings/bytes
|
||||||
|
*
|
||||||
|
* !!!!!! GENERATED, DO NOT EDIT !!!!!!
|
||||||
|
*
|
||||||
|
* This file was generated with the script at
|
||||||
|
* <AxivionSuiteRepo>/projects/libs/dashboard_cpp_api/generator/generate_dashboard_cpp_api.py
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <QByteArray>
|
||||||
|
#include <QByteArrayView>
|
||||||
|
#include <QString>
|
||||||
|
#include <QStringView>
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <string_view>
|
||||||
|
|
||||||
|
std::string concat(const std::initializer_list<const std::string_view> &args);
|
||||||
|
|
||||||
|
QString concat(const std::initializer_list<const QStringView> &args);
|
||||||
|
|
||||||
|
QByteArray concat_bytes(const std::initializer_list<const QByteArrayView> &args);
|
||||||
|
|
||||||
4228
src/plugins/axivion/dashboard/dto.cpp
Normal file
4228
src/plugins/axivion/dashboard/dto.cpp
Normal file
File diff suppressed because it is too large
Load Diff
2994
src/plugins/axivion/dashboard/dto.h
Normal file
2994
src/plugins/axivion/dashboard/dto.h
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user