| 152 | } |
| 153 | |
| 154 | void 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 |
no test coverage detected