generate file function in h file class