| 5546 | } |
| 5547 | |
| 5548 | ConstConfigRcPtr Config::Impl::Read(std::istream & istream, const char * filename) |
| 5549 | { |
| 5550 | ConfigRcPtr config = Config::Create(); |
| 5551 | OCIOYaml::Read(istream, config, filename); |
| 5552 | |
| 5553 | config->getImpl()->checkVersionConsistency(); |
| 5554 | |
| 5555 | // An API request always supersedes the env. variable. As the OCIOYaml helper methods |
| 5556 | // use the Config public API, the variable reset highlights that only the |
| 5557 | // env. variable and the config contents are valid after a config file read. |
| 5558 | config->getImpl()->m_inactiveColorSpaceNamesAPI.clear(); |
| 5559 | config->getImpl()->refreshActiveColorSpaces(); |
| 5560 | |
| 5561 | return config; |
| 5562 | } |
| 5563 | |
| 5564 | ConstConfigRcPtr Config::Impl::Read(std::istream & istream, ConfigIOProxyRcPtr ciop) |
| 5565 | { |
nothing calls this directly
no test coverage detected