Adds ktexttemplate as apt package to new_docker_build.sh and builds successfully

This commit is contained in:
torsten committed 2026-09-21 15:43:39 +02:00
1 parent 9e38583785
commit 7cd3e43959
39 files changed
+647 -208

No files matched your search

@@ -116,9 +116,17 @@ static T buildErrorReason(int reason, int requestId)
}
T reply;
reply.id(requestId);
reply.errorString(errString);
reply.errorParams(errArgs);
{% if ft.isCoreFt %}
reply.setId(requestId);
reply.setStr(errString.c_str());
for (const auto& arg : errArgs)
reply.arg(arg);
{% else %}
reply.id = requestId;
reply.errorString = errString.c_str();
for (const auto& arg : errArgs)
reply.errorParams.push_back(arg);
{% endif %}
return reply;
}
@@ -195,9 +203,12 @@ int64_t FtcImpl::{{ ft.requestFlc }}(const {{ ft.requestType }} &request, const
{% if ft.isCoreFt %}
const auto _reply = future.get(); // throws if exception set
Core::FunctionReplyObject fro(
{% for rp in ft.replyParams %} _reply.{{ rp.nameGetter }}(){% if not forloop.last %},{% endif %} {% endfor %}
);
Core::FunctionReplyObject fro;
fro.setId(_reply.id);
fro.setStr(_reply.errorString.c_str());
for (const auto& arg : _reply.errorParams)
fro.arg(arg);
fro.setAdditionalInfo(_reply.additionalInfo.c_str());
fro.setUniqueId(m_last{{ ft.request }}UniqueId);
if (fro.error())
@@ -232,10 +243,12 @@ void FtcImpl::{{ ft.onReply }}(const {{ namespace }}::{{ ft.reply }} &reply, int
m_last{{ ft.request }}UniqueId = uniqueId + {{ ft.replyHandlerHash }};
{% if ft.isCoreFt %}
Core::FunctionReplyObject fro(
{% for rp in ft.replyParams %}
reply.{{ rp.nameGetter }}(){% if not forloop.last %},{% endif %} {% endfor %}
);
Core::FunctionReplyObject fro;
fro.setId(reply.id);
fro.setStr(reply.errorString.c_str());
for (const auto& arg : reply.errorParams)
fro.arg(arg);
fro.setAdditionalInfo(reply.additionalInfo.c_str());
fro.setUniqueId(m_last{{ ft.request }}UniqueId);
cb(fro);
{% else %}