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

Method serialize

src/OpenColorIO/Config.cpp:5317–5331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5315// Serialization
5316
5317void 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
5333ProcessorCacheFlags Config::getProcessorCacheFlags() const noexcept
5334{

Callers 15

test_interfaceMethod · 0.95
mainFunction · 0.45
mainFunction · 0.45
save_configMethod · 0.45
save_config_asMethod · 0.45
__enter__Method · 0.45
__exit__Method · 0.45
archiveConfigFunction · 0.45
Config.cppFile · 0.45

Calls 3

WriteFunction · 0.85
getImplFunction · 0.50

Tested by 13

test_interfaceMethod · 0.76
OCIO_ADD_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36