| 319 | } |
| 320 | |
| 321 | CDLStyle CDLStyleFromString(const char * style) |
| 322 | { |
| 323 | const char * p = (style ? style : ""); |
| 324 | const std::string str = StringUtils::Lower(p); |
| 325 | |
| 326 | if (str == "asc") return CDL_ASC; |
| 327 | else if (str == "noclamp") return CDL_NO_CLAMP; |
| 328 | |
| 329 | std::ostringstream oss; |
| 330 | oss << "Wrong CDL style: '" << p << "'."; |
| 331 | throw Exception(oss.str().c_str()); |
| 332 | } |
| 333 | |
| 334 | const char * RangeStyleToString(RangeStyle style) |
| 335 | { |