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

Function GetFileReferences

src/OpenColorIO/Config.cpp:154–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void GetFileReferences(std::set<std::string> & files, const ConstTransformRcPtr & transform)
155{
156 if(!transform) return;
157
158 if(ConstGroupTransformRcPtr groupTransform = \
159 DynamicPtrCast<const GroupTransform>(transform))
160 {
161 for(int i=0; i<groupTransform->getNumTransforms(); ++i)
162 {
163 GetFileReferences(files, groupTransform->getTransform(i));
164 }
165 }
166 else if(ConstFileTransformRcPtr fileTransform = \
167 DynamicPtrCast<const FileTransform>(transform))
168 {
169 files.insert(fileTransform->getSrc());
170 }
171}
172
173// Return the list of all color spaces referenced by the transform (including all sub-transforms in
174// a group). All legal context variables are expanded, so if any are remaining, the caller may want

Callers 3

validateMethod · 0.85
getCacheIDMethod · 0.85
isArchivableMethod · 0.85

Calls 4

insertMethod · 0.80
getNumTransformsMethod · 0.45
getTransformMethod · 0.45
getSrcMethod · 0.45

Tested by

no test coverage detected