MCPcopy Create free account
hub / github.com/NVIDIA-RTX/STBN / FloatValueDistanceFunctionStrToEnum

Function FloatValueDistanceFunctionStrToEnum

Tools/VectorApp/CMDOptionsParser.cpp:77–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77FLOAT_VALUE_DISTANCE_FUNCTION FloatValueDistanceFunctionStrToEnum(const std::string& valueDistanceStr)
78{
79 if (valueDistanceStr == AbsStr)
80 return FLOAT_VALUE_DISTANCE_FUNCTION::ABSOLUTE_VALUE;
81 else
82 {
83 std::cout << "Error: Unrecognized float value distance function type \'" << valueDistanceStr << "\'. Exiting." << std::endl;
84 exit(-1);
85 }
86}
87
88FLOAT2_GENERATOR_TYPE Float2GeneratorStrToEnum(const std::string& generatorStr)
89{

Callers 1

ParsedOptionsToMakeTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected