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