src/csv_output_visitor.cpp
//------------------------------------------------------------------------------
/*! \brief Constructor
 *  \param filename The file to write the csv output to.
 */
\brief Constructor
\param filename The file to write the csv output to.
\ brief Constructor \ param filename The file to write the csv output to .
CSVOutputVisitor::CSVOutputVisitor( const string& filename )
:csvFile( filename.c_str(), ios::out )
{
    csvFile << "# Output from " << MODEL_NAME << " version " << MODEL_VERSION << endl;
    csvFile << "run_name" << DELIMITER << "Year" << DELIMITER << D_ATMOSPHERIC_CO2
        << DELIMITER << D_RF_TOTAL << std::endl;
}
CSVOutputVisitor :: CSVOutputVisitor ( const string & filename ) : csvFile ( filename . c_str ( ) , ios :: out ) { csvFile << " " << MODEL_NAME << " " << MODEL_VERSION << endl ; csvFile << " " << DELIMITER << " " << DELIMITER << D_ATMOSPHERIC_CO2 << DELIMITER << D_RF_TOTAL << std :: endl ; }
\brief Constructor
  \param filename The file to write the csv output to.
\ brief Constructor \ param filename The file to write the csv output to .
// Print model version header // Print table header