MCPcopy Create free account
hub / github.com/IENT/YUView / writeTablesToCpp

Function writeTablesToCpp

tools/standardTextToCode/writeTablesC++.py:186–195  ·  view source on GitHub ↗
(parsedTables, path)

Source from the content-addressed store, hash-verified

184 writeEndToHeader(files[0])
185
186def writeTablesToCpp(parsedTables, path):
187 Path(path).mkdir(parents=True, exist_ok=True)
188
189 namespace = "parser::vvc"
190
191 for table in parsedTables:
192 assert(type(table) == ContainerTable)
193 print(f"Writing {table.name}")
194 files = (HeaderFile(path, table.name, namespace), CppFile(path, table.name, namespace))
195 writeTableToFiles(table, files)
196
197def main():
198 parsedTables = pickle.load(open("tempPiclkle.p", "rb"))

Callers 1

mainFunction · 0.85

Calls 3

HeaderFileClass · 0.85
CppFileClass · 0.85
writeTableToFilesFunction · 0.85

Tested by

no test coverage detected