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

Method read

src/OpenColorIO/fileformats/FileFormatCCC.cpp:91–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89// Raise an exception if it can't be loaded.
90
91CachedFileRcPtr LocalFileFormat::read(std::istream & istream,
92 const std::string & fileName,
93 Interpolation /*interp*/) const
94{
95 CDLParser parser(fileName);
96 parser.parse(istream);
97
98 LocalCachedFileRcPtr cachedFile = LocalCachedFileRcPtr(new LocalCachedFile());
99
100 parser.getCDLTransforms(cachedFile->m_transformMap,
101 cachedFile->m_transformVec,
102 cachedFile->m_metadata);
103
104 return cachedFile;
105}
106
107void LocalFileFormat::write(const ConstConfigRcPtr & /*config*/,
108 const ConstContextRcPtr & /*context*/,

Callers

nothing calls this directly

Calls 2

getCDLTransformsMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected