MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / extractFloat

Function extractFloat

src/openms/source/FORMAT/SqliteConnector.cpp:270–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268 }
269
270 float extractFloat(sqlite3_stmt* stmt, int pos)
271 {
272 double res; // there is no sqlite3_column_float.. so we extract double and convert
273 if (!extractValue<double>(&res, stmt, pos))
274 {
275 throw Exception::SqlOperationFailed(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, "Conversion of column " + String(pos) + " to double/float failed");
276 }
277 return (float)res;
278 }
279
280 int extractInt(sqlite3_stmt* stmt, int pos)
281 {

Callers 3

setPCMethod · 0.85
setFeatureMethod · 0.85
readTransitions_Method · 0.85

Calls 1

StringClass · 0.50

Tested by

no test coverage detected