| 5315 | // Serialization |
| 5316 | |
| 5317 | void Config::serialize(std::ostream& os) const |
| 5318 | { |
| 5319 | try |
| 5320 | { |
| 5321 | getImpl()->checkVersionConsistency(); |
| 5322 | |
| 5323 | OCIOYaml::Write(os, *this); |
| 5324 | } |
| 5325 | catch (const std::exception & e) |
| 5326 | { |
| 5327 | std::ostringstream error; |
| 5328 | error << "Error building YAML: " << e.what(); |
| 5329 | throw Exception(error.str().c_str()); |
| 5330 | } |
| 5331 | } |
| 5332 | |
| 5333 | ProcessorCacheFlags Config::getProcessorCacheFlags() const noexcept |
| 5334 | { |