}
}
}
private String generateHeader(final CompilationUnitInfo compilationUnitInfo) {
final ASTWriter writer = new ASTWriter();
final StringBuffer output = new StringBuffer();
output.append("#ifndef __").append(compilationUnitInfo.getName()).append("_H_\n");
output.append("#define __").append(compilationUnitInfo.getName()).append("_H_\n");
output.append("\n");
for (final String include : compilationUnitInfo.hppStdIncludes) {
output.append("#include <").append(include).append(">\n");
}
// for (final String include : compilationUnitInfo.hppIncludes) {
// output.append("#include \"").append(include).append(".h\"\n");
// }
output.append("\n");
output.append(writer.write(compilationUnitInfo.getHpp()));
output.append("\n");
output.append("#endif //__").append(compilationUnitInfo.getName()).append("_H_\n");
return output.toString();
}