How to generate a function header file when using CodeGen?

I wrote a script to generate the corresponding header file,and it works(without GetFunction.).