15 #ifndef STATSOUTPUTTASK_HPP 16 #define STATSOUTPUTTASK_HPP 51 bool run ( Data& d ) {
52 if ( statsoutput_() ==
"" )
return false;
54 FORCELINFO (
"Writing stats to " << statsoutput_ ( d.sidx ) );
55 oszfstream o ( statsoutput_ ( d.sidx ) );
56 o <<
"=================================================================" <<
58 o <<
"Sentence " << d.sidx <<
": Time (ms):" << endl;
59 writeSpeedStats ( o );
60 o <<
"-----------------------------------------------------------------" <<
62 o <<
"Other:" << endl;
63 o << d_->stats->message << endl;
64 o <<
"=================================================================" <<
79 void writeSpeedStats ( oszfstream& o ) {
80 d_->stats->write ( o );
Wrapper stream class that writes to pipes, text files or gzipped files.
class that expands a wildcard into its actual value. This is useful e.g. for filenames ranging severa...
Templated (hybrid) Interface for Task classes.
std::string const kStatsWrite
void close()
Closes the file.