-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix symbols visibility Fix macos-13 build It still uses qmake, so new sources should be added there too Signed-off-by: Viktor Kopp <[email protected]>
- Loading branch information
Showing
8 changed files
with
105 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "ecutree.h" | ||
|
||
void EcuTree::add(const QString& ecuId, const qdlt::msg::payload::GetLogInfo& info) | ||
{ | ||
for (const auto& app : info.apps) { | ||
App appData; | ||
appData.description = app.description; | ||
for (const auto& ctx : app.ctxs) { | ||
Ctx ctxData; | ||
ctxData.description = ctx.description; | ||
ctxData.logLevel = ctx.logLevel; | ||
ctxData.traceStatus = ctx.traceStatus; | ||
appData.contexts[ctx.id] = std::move(ctxData); | ||
} | ||
ecus[ecuId][app.id] = std::move(appData); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#ifndef ECUTREEBUILDER_H | ||
#define ECUTREEBUILDER_H | ||
|
||
#include <qdltctrlmsg.h> | ||
|
||
#include <map> | ||
|
||
struct EcuTree | ||
{ | ||
void add(const QString& ecuId, const qdlt::msg::payload::GetLogInfo&); | ||
|
||
using EcuId = QString; | ||
using AppId = QString; | ||
using CtxId = QString; | ||
struct Ctx { | ||
QString description; | ||
int8_t logLevel; | ||
int8_t traceStatus; | ||
}; | ||
struct App { | ||
QString description; | ||
std::map<CtxId, Ctx> contexts; | ||
}; | ||
std::map<EcuId, std::map<AppId, App>> ecus; | ||
}; | ||
|
||
#endif // ECUTREEBUILDER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters