MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / Read

Method Read

src/OpenColorIO/Config.cpp:5548–5562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5546}
5547
5548ConstConfigRcPtr 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
5564ConstConfigRcPtr Config::Impl::Read(std::istream & istream, ConfigIOProxyRcPtr ciop)
5565{

Callers

nothing calls this directly

Calls 5

getImplMethod · 0.80
clearMethod · 0.45
setConfigIOProxyMethod · 0.45

Tested by

no test coverage detected