( lines )
| 48 | includeMap[oldInclude] = include |
| 49 | |
| 50 | def convertIncludes( lines ) : |
| 51 | |
| 52 | newLines = [] |
| 53 | sceneIncludes = [] |
| 54 | lastCoreInclude = 0 |
| 55 | for line in lines : |
| 56 | newLine = line |
| 57 | for old, new in includeMap.items() : |
| 58 | newLine = newLine.replace( old, new ) |
| 59 | if newLine != line : |
| 60 | sceneIncludes.append( newLine ) |
| 61 | else : |
| 62 | newLines.append( line ) |
| 63 | if line.startswith( "#include \"IECore/" ) : |
| 64 | lastCoreInclude = len( newLines ) |
| 65 | |
| 66 | if sceneIncludes : |
| 67 | newLines[lastCoreInclude:lastCoreInclude] = sceneIncludes |
| 68 | |
| 69 | return newLines |
| 70 | |
| 71 | ieCoreSceneTypes = [ x for x in dir( IECoreScene ) if x[0].isupper() ] |
| 72 | ieCoreSceneTypes += [ x + "Ptr" for x in ieCoreSceneTypes ] + [ "Const" + x + "Ptr" for x in ieCoreSceneTypes ] |
no test coverage detected