mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 07:13:03 +00:00 
			
		
		
		
	Restore ostream format
This commit is contained in:
		| @@ -202,8 +202,10 @@ FileSignalSource::FileSignalSource(ConfigurationInterface* configuration, | |||||||
|                     std::cout << "file_signal_source: Unable to open the samples file " << filename_.c_str() << std::endl; |                     std::cout << "file_signal_source: Unable to open the samples file " << filename_.c_str() << std::endl; | ||||||
|                     LOG(ERROR) << "file_signal_source: Unable to open the samples file " << filename_.c_str(); |                     LOG(ERROR) << "file_signal_source: Unable to open the samples file " << filename_.c_str(); | ||||||
|                 } |                 } | ||||||
|  |             std::streamsize ss = std::cout.precision(); | ||||||
|             std::cout << std::setprecision(16); |             std::cout << std::setprecision(16); | ||||||
|             std::cout << "Processing file " << filename_ << ", which contains " << static_cast<double>(size) << " [bytes]" << std::endl; |             std::cout << "Processing file " << filename_ << ", which contains " << static_cast<double>(size) << " [bytes]" << std::endl; | ||||||
|  |             std::cout.precision (ss); | ||||||
|  |  | ||||||
|             if (size > 0) |             if (size > 0) | ||||||
|                 { |                 { | ||||||
|   | |||||||
| @@ -130,8 +130,10 @@ NsrFileSignalSource::NsrFileSignalSource(ConfigurationInterface* configuration, | |||||||
|                     std::cout << "file_signal_source: Unable to open the samples file " << filename_.c_str() << std::endl; |                     std::cout << "file_signal_source: Unable to open the samples file " << filename_.c_str() << std::endl; | ||||||
|                     LOG(ERROR) << "file_signal_source: Unable to open the samples file " << filename_.c_str(); |                     LOG(ERROR) << "file_signal_source: Unable to open the samples file " << filename_.c_str(); | ||||||
|                 } |                 } | ||||||
|  |             std::streamsize ss = std::cout.precision(); | ||||||
|             std::cout << std::setprecision(16); |             std::cout << std::setprecision(16); | ||||||
|             std::cout << "Processing file " << filename_ << ", which contains " << (double)size << " [bytes]" << std::endl; |             std::cout << "Processing file " << filename_ << ", which contains " << (double)size << " [bytes]" << std::endl; | ||||||
|  |             std::cout.precision (ss); | ||||||
|  |  | ||||||
|             if (size > 0) |             if (size > 0) | ||||||
|                 { |                 { | ||||||
|   | |||||||
| @@ -129,8 +129,10 @@ SpirFileSignalSource::SpirFileSignalSource(ConfigurationInterface* configuration | |||||||
|                     std::cout << "file_signal_source: Unable to open the samples file " << filename_.c_str() << std::endl; |                     std::cout << "file_signal_source: Unable to open the samples file " << filename_.c_str() << std::endl; | ||||||
|                     LOG(ERROR) << "file_signal_source: Unable to open the samples file " << filename_.c_str(); |                     LOG(ERROR) << "file_signal_source: Unable to open the samples file " << filename_.c_str(); | ||||||
|                 } |                 } | ||||||
|  |             std::streamsize ss = std::cout.precision(); | ||||||
|             std::cout << std::setprecision(16); |             std::cout << std::setprecision(16); | ||||||
|             std::cout << "Processing file " << filename_ << ", which contains " << (double)size << " [bytes]" << std::endl; |             std::cout << "Processing file " << filename_ << ", which contains " << (double)size << " [bytes]" << std::endl; | ||||||
|  |             std::cout.precision (ss); | ||||||
|  |  | ||||||
|             if (size > 0) |             if (size > 0) | ||||||
|                 { |                 { | ||||||
|   | |||||||
| @@ -130,8 +130,10 @@ TwoBitCpxFileSignalSource::TwoBitCpxFileSignalSource(ConfigurationInterface* con | |||||||
|                     std::cout << "file_signal_source: Unable to open the samples file " << filename_.c_str() << std::endl; |                     std::cout << "file_signal_source: Unable to open the samples file " << filename_.c_str() << std::endl; | ||||||
|                     LOG(ERROR) << "file_signal_source: Unable to open the samples file " << filename_.c_str(); |                     LOG(ERROR) << "file_signal_source: Unable to open the samples file " << filename_.c_str(); | ||||||
|                 } |                 } | ||||||
|  |             std::streamsize ss = std::cout.precision(); | ||||||
|             std::cout << std::setprecision(16); |             std::cout << std::setprecision(16); | ||||||
|             std::cout << "Processing file " << filename_ << ", which contains " << (double)size << " [bytes]" << std::endl; |             std::cout << "Processing file " << filename_ << ", which contains " << (double)size << " [bytes]" << std::endl; | ||||||
|  |             std::cout.precision (ss); | ||||||
|  |  | ||||||
|             if (size > 0) |             if (size > 0) | ||||||
|                 { |                 { | ||||||
|   | |||||||
| @@ -199,9 +199,10 @@ TwoBitPackedFileSignalSource::TwoBitPackedFileSignalSource(ConfigurationInterfac | |||||||
|                     std::cout << "file_signal_source: Unable to open the samples file " << filename_.c_str() << std::endl; |                     std::cout << "file_signal_source: Unable to open the samples file " << filename_.c_str() << std::endl; | ||||||
|                     LOG(ERROR) << "file_signal_source: Unable to open the samples file " << filename_.c_str(); |                     LOG(ERROR) << "file_signal_source: Unable to open the samples file " << filename_.c_str(); | ||||||
|                 } |                 } | ||||||
|  |             std::streamsize ss = std::cout.precision(); | ||||||
|             std::cout << std::setprecision(16); |             std::cout << std::setprecision(16); | ||||||
|             std::cout << "Processing file " << filename_ << ", which contains " << (double)size << " [bytes]" << std::endl; |             std::cout << "Processing file " << filename_ << ", which contains " << (double)size << " [bytes]" << std::endl; | ||||||
|  |             std::cout.precision (ss); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|     CHECK(samples_ > 0) << "File does not contain enough samples to process."; |     CHECK(samples_ > 0) << "File does not contain enough samples to process."; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez