MCPcopy Create free account
hub / github.com/GENIVI/CANdevStudio / genGuiInt

Function genGuiInt

tools/templategen/main.cpp:574–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572}
573
574std::string genGuiInt(const std::string& name)
575{
576 using namespace fmt::literals;
577
578 return fmt::format(R"(#ifndef {nameUpper}GUIINT_H
579#define {nameUpper}GUIINT_H
580
581#include <Qt>
582#include <functional>
583
584class QWidget;
585
586struct {name}GuiInt {{
587 virtual ~{name}GuiInt() {{}}
588 virtual QWidget* mainWidget() = 0;
589}};
590
591#endif // {nameUpper}GUIINT_H
592)",
593 "name"_a = name, "nameUpper"_a = str_toupper(name));
594}
595
596std::string genGuiImpl(const std::string& name)
597{

Callers 1

mainFunction · 0.85

Calls 1

str_toupperFunction · 0.85

Tested by

no test coverage detected