MCPcopy Create free account
hub / github.com/ashaduri/gsmartcontrol / get_default_format

Method get_default_format

src/applib/smartctl_version_parser.cpp:87–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85
86
87SmartctlOutputFormat SmartctlVersionParser::get_default_format([[maybe_unused]] SmartctlParserType parser_type)
88{
89 // We no longer differentiate between parser types - they
90 // all either use Text, or Json.
91// switch (parser_type) {
92// case SmartctlParserType::Basic:
93// return SmartctlOutputFormat::Json;
94// case SmartctlParserType::Ata:
95// return SmartctlOutputFormat::Json;
96// case SmartctlParserType::Nvme:
97// return SmartctlOutputFormat::Json;
98// }
99 return s_smartctl_output_default_format;
100}
101
102
103

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected