MCPcopy Create free account
hub / github.com/SuperElastix/elastix / StringToParameterMapStringFormat

Method StringToParameterMapStringFormat

Core/Install/elxConversion.cxx:480–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478
479
480ParameterMapStringFormat
481Conversion::StringToParameterMapStringFormat(const std::string & str)
482{
483 if (str.empty() || str == "txt")
484 {
485 return ParameterMapStringFormat::LegacyTxt;
486 }
487 if (str == "TOML")
488 {
489 return ParameterMapStringFormat::Toml;
490 }
491 itkGenericExceptionMacro("Failed to convert to the following string to ParameterMapStringFormat: \"" << str << '"');
492}
493
494std::string
495Conversion::CreateParameterMapFileNameExtension(const ParameterMapStringFormat format)

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected