void write() { std::ofstream of(_cpp.c_str()); of << headertxtcpp; of << "/* Compile with: \n" << _gcccmd << "\n" << " */\n"; _code->writeTo(of); of.flush(); of.close(); }
void writeHeader(const StreamTreePtr& h) { std::ofstream of((theObjDir+"/"GENHEADER).c_str()); h->writeTo(of); of.flush(); of.close(); }