#ifdef STATISTICS /* * $Id$ * * [ Description ] * */ #include "Behavioural/include/Statistics.h" #include #include #include using namespace std; namespace morpheo { namespace behavioural { void Statistics::generate_file(string stat) { ostringstream filename; filename << _name << ".stat"; cout << "Generate file \""<< filename.str() << "\"" << endl; ofstream file; file.open(filename.str().c_str(),ios::out | ios::trunc); time_t current_time; time (¤t_time); // print header file << "" << endl << endl; file << stat; file.close(); } void Statistics::generate_file(void) { generate_file(print(0)); }; }; // end namespace behavioural }; // end namespace morpheo #endif