Bring the validation-scope line (in-tree Jenkins CI copy, lcov coverage wiring, step-by-step release-scope README, TetraIF unit tests, the LogView runtime icon/resource fix, Dockerfile, rpmbuild and the new_docker_build.sh driver with the DEB output path) on top of the XmlPatterns branch pruned to the Release 2 scope. Conflict policy: - Out-of-scope targets/modules: keep the prune (deletion wins). - In-scope files that validation had deleted: restored from story/release-2-cleanup (the Release 2 closure, with the pruned-module guards). - In-scope sources carrying migration work: XmlPatterns versions (Qt XmlPatterns rework on QDomDocument, DDS member and logger fixes, first-build fixes). - Scope-aware CMakeLists (top level, PluginInterfaces, LtsWidgets) and .envrc: story/release-2-cleanup / ours versions.
48 lines
1.6 KiB
C++
48 lines
1.6 KiB
C++
/**
|
|
* @RDE_HEADER@
|
|
* Generate an dtc/dts interface file from idl-struct defined in a xml-file
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Hanna E. Rathje, SLSE, 2016-01-05
|
|
*/
|
|
#pragma once
|
|
#include "GeneratorGrantleeBase.h"
|
|
#include "GrantleeWrappers.h"
|
|
#include "StructBuilder.h"
|
|
|
|
#include <QtCore/QObject>
|
|
|
|
namespace CodeGen
|
|
{
|
|
|
|
class CppTopicGeneratorGrantlee final : public GeneratorGrantleeBase
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit CppTopicGeneratorGrantlee();
|
|
|
|
bool init(const XmlReader* reader, StructBuilder* structBuilder) override;
|
|
|
|
private:
|
|
bool initDataTopics();
|
|
bool getSpecialColumns(const CompleteTopicTypeInformation& tti, QVector<IdlData>& keyColumns,
|
|
QVector<IdlData>& trColumns) const;
|
|
|
|
bool initFunctionTopics();
|
|
bool handleStruct(const FunctionTopic& ft, FunctionTopicsWrapper* functionTopicsWrapper);
|
|
bool addRequesterRequestParams(const QString& request_name, const CompleteTopicTypeInformation& request,
|
|
FunctionTopicWrapper* ftw);
|
|
bool addRequesterReplyParams(const QString& request_name, const CompleteTopicTypeInformation& reply,
|
|
FunctionTopicWrapper* ftw);
|
|
|
|
bool handleIdlStruct(const CompleteTopicTypeInformation& csi, QSet<QString>& idlStructNames,
|
|
QVector<IdlStructWrapper*>& idlStructs);
|
|
bool initIdlStructs();
|
|
|
|
CompleteTopicTypeInformation topicTypeInformationByDerivedTopic(const CompleteTopicTypeInformation& tti) const;
|
|
|
|
const XmlReader* m_reader = nullptr;
|
|
};
|
|
} // namespace CodeGen
|