public override void WriteFile() { var cppWriter = new CppWriter(); cppWriter.BeginWriter(_filename); { //write the beginning of the files cppWriter.HeaderStream.WriteLine("#pragma once"); cppWriter.SourceStream.WriteLine($"#include \"{new FilenameInfo(_filename).Basename}.h\""); WriterHeaderFile(cppWriter.HeaderStream); WriteSourceFile(cppWriter.SourceStream); //write any classes foreach (CppClassBuilder classBuilder in _classes) { cppWriter.HeaderStream.NewLine(); classBuilder.WriteClass(cppWriter); } } cppWriter.EndWriter(); }