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

Method __init__

tools/standardTextToCode/writeTablesC++.py:41–50  ·  view source on GitHub ↗
(self, path, name, namespace)

Source from the content-addressed store, hash-verified

39
40class HeaderFile:
41 def __init__ (self, path, name, namespace):
42 self.f = open(f"{path}/{name}.h", "w")
43 writeLicense(self.f)
44 self.f.write("#pragma once\n\n")
45 self.f.write("#include \"NalUnitVVC.h\"\n")
46 self.f.write("#include \"parser/common/SubByteReaderLogging.h\"\n\n")
47 self.f.write(f"""namespace {namespace}""")
48 self.f.write("\n{\n\n")
49 self.namespace = namespace
50 self.spaces = 0
51 def __del__(self):
52 self.f.write(f"""}} // namespace {self.namespace}""")
53 self.f.write("\n")

Callers

nothing calls this directly

Calls 2

writeLicenseFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected