@@ -13,7 +13,7 @@ std::string toString(const std::vector<Type> &options)
1313 if (options.empty ()) return " " ;
1414 for (size_t i = 0 ; i < options.size (); i++)
1515 {
16- if (not ss.str ().empty ()) ss << " , " ;
16+ if (! ss.str ().empty ()) ss << " , " ;
1717 ss << options[i];
1818 }
1919 return ss.str ();
@@ -34,12 +34,12 @@ std::string toString(const SoapySDR::RangeList &range, const double scale)
3434 std::stringstream ss;
3535 for (size_t i = 0 ; i < range.size (); i++)
3636 {
37- if (range.size () >= MAXRLEN and i >= MAXRLEN/2 and i < (range.size ()-MAXRLEN/2 ))
37+ if (range.size () >= MAXRLEN && i >= MAXRLEN/2 && i < (range.size ()-MAXRLEN/2 ))
3838 {
3939 if (i == MAXRLEN) ss << " , ..." ;
4040 continue ;
4141 }
42- if (not ss.str ().empty ()) ss << " , " ;
42+ if (! ss.str ().empty ()) ss << " , " ;
4343 if (range[i].minimum () == range[i].maximum ()) ss << (range[i].minimum ()/scale);
4444 else ss << " [" << (range[i].minimum ()/scale) << " , " << (range[i].maximum ()/scale) << " ]" ;
4545 }
@@ -58,7 +58,7 @@ std::string toString(const std::vector<double> &nums, const double scale)
5858
5959 for (size_t i = 0 ; i < nums.size (); i++)
6060 {
61- if (not ss.str ().empty ()) ss << " , " ;
61+ if (! ss.str ().empty ()) ss << " , " ;
6262 ss << (nums[i]/scale);
6363 }
6464 return " [" + ss.str () + " ]" ;
@@ -80,12 +80,12 @@ std::string toString(const SoapySDR::ArgInfo &argInfo, const std::string indent
8080 {
8181 desc.replace (pos, 1 , replace);
8282 }
83- if (not desc.empty ()) ss << " - " << desc << std::endl << indent << " " ;
83+ if (! desc.empty ()) ss << " - " << desc << std::endl << indent << " " ;
8484
8585 // other fields
8686 ss << " [key=" << argInfo.key ;
87- if (not argInfo.units .empty ()) ss << " , units=" << argInfo.units ;
88- if (not argInfo.value .empty ()) ss << " , default=" << argInfo.value ;
87+ if (! argInfo.units .empty ()) ss << " , units=" << argInfo.units ;
88+ if (! argInfo.value .empty ()) ss << " , default=" << argInfo.value ;
8989
9090 // type
9191 switch (argInfo.type )
@@ -98,7 +98,7 @@ std::string toString(const SoapySDR::ArgInfo &argInfo, const std::string indent
9898
9999 // optional range/enumeration
100100 if (argInfo.range .minimum () < argInfo.range .maximum ()) ss << " , range=" << toString (argInfo.range );
101- if (not argInfo.options .empty ()) ss << " , options=(" << toString (argInfo.options ) << " )" ;
101+ if (! argInfo.options .empty ()) ss << " , options=(" << toString (argInfo.options ) << " )" ;
102102
103103 ss << " ]" ;
104104
@@ -133,14 +133,14 @@ std::string sensorReadings(SoapySDR::Device *device)
133133 std::string reading = device->readSensor (key);
134134
135135 ss << " * " << sensors[i];
136- if (not info.name .empty ()) ss << " (" << info.name << " )" ;
136+ if (! info.name .empty ()) ss << " (" << info.name << " )" ;
137137 ss << " :" ;
138138 if (info.range .maximum () > std::numeric_limits<double >::min ()) ss << toString (info.range );
139139 ss << toString (info.options );
140140 ss << " " << reading;
141- if (not info.units .empty ()) ss << " " << info.units ;
141+ if (! info.units .empty ()) ss << " " << info.units ;
142142 ss << std::endl;
143- if (not info.description .empty ()) ss << " " << info.description << std::endl;
143+ if (! info.description .empty ()) ss << " " << info.description << std::endl;
144144 }
145145
146146 return ss.str ();
@@ -162,14 +162,14 @@ std::string channelSensorReadings(SoapySDR::Device *device, const int dir, const
162162 std::string reading = device->readSensor (dir, chan, key);
163163
164164 ss << " * " << sensors[i];
165- if (not info.name .empty ()) ss << " (" << info.name << " )" ;
165+ if (! info.name .empty ()) ss << " (" << info.name << " )" ;
166166 ss << " :" ;
167167 if (info.range .maximum () > std::numeric_limits<double >::min ()) ss << toString (info.range );
168168 ss << toString (info.options );
169169 ss << " " << reading;
170- if (not info.units .empty ()) ss << " " << info.units ;
170+ if (! info.units .empty ()) ss << " " << info.units ;
171171 ss << std::endl;
172- if (not info.description .empty ()) ss << " " << info.description << std::endl;
172+ if (! info.description .empty ()) ss << " " << info.description << std::endl;
173173 }
174174
175175 return ss.str ();
@@ -201,7 +201,7 @@ static std::string probeChannel(SoapySDR::Device *device, const int dir, const s
201201
202202 // formats
203203 std::string formats = toString (device->getStreamFormats (dir, chan));
204- if (not formats.empty ()) ss << " Stream formats: " << formats << std::endl;
204+ if (! formats.empty ()) ss << " Stream formats: " << formats << std::endl;
205205
206206 // native
207207 double fullScale = 0.0 ;
@@ -210,19 +210,19 @@ static std::string probeChannel(SoapySDR::Device *device, const int dir, const s
210210
211211 // stream args
212212 std::string streamArgs = toString (device->getStreamArgsInfo (dir, chan));
213- if (not streamArgs.empty ()) ss << " Stream args:" << std::endl << streamArgs;
213+ if (! streamArgs.empty ()) ss << " Stream args:" << std::endl << streamArgs;
214214
215215 // antennas
216216 std::string antennas = toString (device->listAntennas (dir, chan));
217- if (not antennas.empty ()) ss << " Antennas: " << antennas << std::endl;
217+ if (! antennas.empty ()) ss << " Antennas: " << antennas << std::endl;
218218
219219 // corrections
220220 std::vector<std::string> correctionsList;
221221 if (device->hasDCOffsetMode (dir, chan)) correctionsList.push_back (" DC removal" );
222222 if (device->hasDCOffset (dir, chan)) correctionsList.push_back (" DC offset" );
223223 if (device->hasIQBalance (dir, chan)) correctionsList.push_back (" IQ balance" );
224224 std::string corrections = toString (correctionsList);
225- if (not corrections.empty ()) ss << " Corrections: " << corrections << std::endl;
225+ if (! corrections.empty ()) ss << " Corrections: " << corrections << std::endl;
226226
227227 // gains
228228 ss << " Full gain range: " << toString (device->getGainRange (dir, chan)) << " dB" << std::endl;
@@ -244,23 +244,23 @@ static std::string probeChannel(SoapySDR::Device *device, const int dir, const s
244244
245245 // freq args
246246 std::string freqArgs = toString (device->getFrequencyArgsInfo (dir, chan));
247- if (not freqArgs.empty ()) ss << " Tune args:" << std::endl << freqArgs;
247+ if (! freqArgs.empty ()) ss << " Tune args:" << std::endl << freqArgs;
248248
249249 // rates
250250 ss << " Sample rates: " << toString (device->getSampleRateRange (dir, chan), 1e6 ) << " MSps" << std::endl;
251251
252252 // bandwidths
253253 const auto bws = device->getBandwidthRange (dir, chan);
254- if (not bws.empty ()) ss << " Filter bandwidths: " << toString (bws, 1e6 ) << " MHz" << std::endl;
254+ if (! bws.empty ()) ss << " Filter bandwidths: " << toString (bws, 1e6 ) << " MHz" << std::endl;
255255
256256 // sensors
257257 std::string sensors = toString (device->listSensors (dir, chan));
258- if (not sensors.empty ()) ss << " Sensors: " << sensors << std::endl;
258+ if (! sensors.empty ()) ss << " Sensors: " << sensors << std::endl;
259259 ss << channelSensorReadings (device, dir, chan);
260260
261261 // settings
262262 std::string settings = toString (device->getSettingInfo (dir, chan));
263- if (not settings.empty ()) ss << " Other Settings:" << std::endl << settings;
263+ if (! settings.empty ()) ss << " Other Settings:" << std::endl << settings;
264264
265265 return ss.str ();
266266}
@@ -299,26 +299,26 @@ std::string SoapySDRDeviceProbe(SoapySDR::Device *device)
299299 ss << " Timestamps: " << (device->hasHardwareTime ()?" YES" :" NO" ) << std::endl;
300300
301301 std::string clockSources = toString (device->listClockSources ());
302- if (not clockSources.empty ()) ss << " Clock sources: " << clockSources << std::endl;
302+ if (! clockSources.empty ()) ss << " Clock sources: " << clockSources << std::endl;
303303
304304 std::string timeSources = toString (device->listTimeSources ());
305- if (not timeSources.empty ()) ss << " Time sources: " << timeSources << std::endl;
305+ if (! timeSources.empty ()) ss << " Time sources: " << timeSources << std::endl;
306306
307307 std::string sensors = toString (device->listSensors ());
308- if (not sensors.empty ()) ss << " Sensors: " << sensors << std::endl;
308+ if (! sensors.empty ()) ss << " Sensors: " << sensors << std::endl;
309309 ss << sensorReadings (device);
310310
311311 std::string registers = toString (device->listRegisterInterfaces ());
312- if (not registers.empty ()) ss << " Registers: " << registers << std::endl;
312+ if (! registers.empty ()) ss << " Registers: " << registers << std::endl;
313313
314314 std::string settings = toString (device->getSettingInfo ());
315- if (not settings.empty ()) ss << " Other Settings:" << std::endl << settings;
315+ if (! settings.empty ()) ss << " Other Settings:" << std::endl << settings;
316316
317317 std::string gpios = toString (device->listGPIOBanks ());
318- if (not gpios.empty ()) ss << " GPIOs: " << gpios << std::endl;
318+ if (! gpios.empty ()) ss << " GPIOs: " << gpios << std::endl;
319319
320320 std::string uarts = toString (device->listUARTs ());
321- if (not uarts.empty ()) ss << " UARTs: " << uarts << std::endl;
321+ if (! uarts.empty ()) ss << " UARTs: " << uarts << std::endl;
322322
323323 /* ******************************************************************
324324 * Per-channel info
0 commit comments