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

Method OMSFileLoad

src/openms/source/FORMAT/OMSFileLoad.cpp:45–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44
45 OMSFileLoad::OMSFileLoad(const String& filename, LogType log_type):
46 db_(make_unique<SQLite::Database>(filename))
47 {
48 setLogType(log_type);
49
50 // read version number:
51 try
52 {
53 auto version = db_->execAndGet("SELECT OMSFile FROM version");
54 version_number_ = version.getInt();
55 }
56 catch (...)
57 {
58 raiseDBError_(db_->getErrorMsg(), __LINE__, OPENMS_PRETTY_FUNCTION,
59 "error reading file format version number");
60 }
61 }
62
63
64 OMSFileLoad::~OMSFileLoad()

Callers

nothing calls this directly

Calls 1

raiseDBError_Function · 0.85

Tested by

no test coverage detected