MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / validate

Function validate

framework/configfile.cpp:521–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519float ConfigOptionFloat::get() const { return config().getFloat(getKey()); }
520
521void validate(boost::any &v, const std::vector<std::string> &values, UString *, int)
522{
523 if (values.size() == 1)
524 v = boost::any(UString(values[0]));
525 else
526 throw po::validation_error(po::validation_error::invalid_option_value);
527}
528
529}; // namespace OpenApoc

Callers 1

initStateMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected