Loose-GNSS-IMU/Loose-GNSS-IMU/FileIO.cpp
// A function to generate a LOG File for errors in Observation File
A function to generate a LOG File for errors in Observation File
A function to generate a LOG File for errors in Observation File
void FileIO::logger(string output_filename, string input_filename, ofstream& fout) {
	fout.open(output_filename); fout.close();
	fout.open(output_filename, ios::app);
	fout << "-----------------------------------------------------------------------------------------\n";
	fout << "-----------------------------------------------------------------------------------------\n";
	fout << "THIS FILE CONTAINS RECORDS OF ANY UNEXPECTED BREAKS OR MISSING INFORMATION IN DATA FILES.\n";
	fout << "-----------------------------------------------------------------------------------------\n";
	fout << "-----------------------------------------------------------------------------------------\n";
	fout << "OBSERVATION FILE NAME: " << input_filename << "\n" << "\n";
	fout << std::left
		<< std::setw(30) << "EPOCH INFORMATION"
		<< std::setw(20) << "PRN"
		<< std::setw(20) << "MISSING OBSERVATION" << "\n";
	fout << "-----------------------------------------------------------------------------------------\n";
}
void FileIO :: logger ( string output_filename , string input_filename , ofstream & fout ) { fout . open ( output_filename ) ; fout . close ( ) ; fout . open ( output_filename , ios :: app ) ; fout << " \n " ; fout << " \n " ; fout << " \n " ; fout << " \n " ; fout << " \n " ; fout << " " << input_filename << " \n " << " \n " ; fout << std :: left << std :: setw ( 30 ) << " " << std :: setw ( 20 ) << " " << std :: setw ( 20 ) << " " << " \n " ; fout << " \n " ; }
A function to generate a LOG File for errors in Observation File
A function to generate a LOG File for errors in Observation File
// Creating NEW LOG file // Preparing a format for LOG file