mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 20:20:35 +00:00
Restore ostream format
This commit is contained in:
parent
235aa77357
commit
8eb01075f4
@ -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.";
|
||||||
|
Loading…
Reference in New Issue
Block a user