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

Method read

src/OpenColorIO/fileformats/FileFormatCDL.cpp:114–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112// Raise an exception if it can't be loaded.
113
114CachedFileRcPtr LocalFileFormat::read(std::istream & istream,
115 const std::string & fileName,
116 Interpolation /*interp*/) const
117{
118 CDLParser parser(fileName);
119 parser.parse(istream);
120
121 LocalCachedFileRcPtr cachedFile = LocalCachedFileRcPtr(new LocalCachedFile());
122
123 parser.getCDLTransforms(cachedFile->m_transformMap,
124 cachedFile->m_transformVec,
125 cachedFile->m_metadata);
126
127 return cachedFile;
128}
129
130void LocalFileFormat::write(const ConstConfigRcPtr & /*config*/,
131 const ConstContextRcPtr & /*context*/,

Callers

nothing calls this directly

Calls 2

getCDLTransformsMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected