Description
The examples and the app skeleton of the vehicle-app-cpp-template contain repeated code for launching the Vehicle App. This could be replaced by a helper class provided by the SDK:
template<typename TAppClass>
class Launcher {
public:
Launcher() = default;
~Launcher() = default;
void signalHandler() { ... }
template<typename... TArgs>
void launch(TArgs... args) {
m_app = std::make_unique<TAppClass>(args...);
signal(SIGINT, &Launcher<TAppClass>::signalHandler);
}
private:
std::unique_ptr<TAppClass> m_app;
}
// usage
Launcher<SeatAdjusterApp>().launch();
Suggested Solution
No response
Alternatives
No response
Additional Context
No response
Description
The examples and the app skeleton of the vehicle-app-cpp-template contain repeated code for launching the Vehicle App. This could be replaced by a helper class provided by the SDK:
Suggested Solution
No response
Alternatives
No response
Additional Context
No response