MCPcopy Create free account
hub / github.com/OpenCppCoverage/OpenCppCoverage / GetExportTypeText

Method GetExportTypeText

CppCoverage/ExportOptionParser.cpp:165–194  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

163
164 //----------------------------------------------------------------------------
165 std::wstring ExportOptionParser::GetExportTypeText() const
166 {
167 const auto separator = ", ";
168 std::vector<std::pair<std::wstring, std::wstring>> exportArgumentInfos =
169 {{Tools::LocalToWString(ExportOptionParser::ExportTypeHtmlValue),
170 L"output folder (optional)"},
171 {Tools::LocalToWString(
172 ExportOptionParser::ExportTypeCoberturaValue),
173 L"output file (optional)"},
174 {Tools::LocalToWString(ExportOptionParser::ExportTypeBinaryValue),
175 L"output file (optional)"}};
176 for (const auto& description : exportPluginDescriptions_)
177 {
178 exportArgumentInfos.push_back(
179 {description.GetPluginName(),
180 description.GetParameterDescription()});
181 }
182
183 std::wstring exports;
184 for (const auto& argumentInfos : exportArgumentInfos)
185 {
186 exports += L" " + argumentInfos.first + L": " +
187 argumentInfos.second + L'\n';
188 }
189 return L"Format: <exportType>[:<parameter>].\n"
190 "<exportType> can be:\n" +
191 exports +
192 L"Example: html:MyFolder\\MySubFolder\n"
193 "This flag can have multiple occurrences.";
194 }
195}

Callers

nothing calls this directly

Calls 1

LocalToWStringFunction · 0.85

Tested by

no test coverage detected