No more date to avoid triggering svn changes
parent
819d3273f4
commit
c2e14b9f06
|
@ -8,12 +8,10 @@
|
||||||
#include "FileWriter.h"
|
#include "FileWriter.h"
|
||||||
#include "utilities.h"
|
#include "utilities.h"
|
||||||
|
|
||||||
#include <boost/date_time/gregorian/gregorian.hpp>
|
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace boost::gregorian;
|
|
||||||
using namespace wrap;
|
using namespace wrap;
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
|
@ -41,10 +39,8 @@ void FileWriter::emit(bool add_header, bool force_overwrite) const {
|
||||||
if (!ofs) throw CantOpenFile(filename_);
|
if (!ofs) throw CantOpenFile(filename_);
|
||||||
|
|
||||||
// header
|
// header
|
||||||
if (add_header) {
|
if (add_header)
|
||||||
date today = day_clock::local_day();
|
ofs << comment_str_ << " automatically generated by wrap" << endl;
|
||||||
ofs << comment_str_ << " automatically generated by wrap on " << today << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
// dump in stringstream
|
// dump in stringstream
|
||||||
ofs << new_contents;
|
ofs << new_contents;
|
||||||
|
|
Loading…
Reference in New Issue