![]() |
OpenMS
3.0.0
|
Helper class for loading .oms files (SQLite format) More...
#include <OpenMS/FORMAT/OMSFileLoad.h>
Public Types | |
| using | Key = OMSFileStore::Key |
| Type used for database keys. More... | |
Public Types inherited from ProgressLogger | |
| enum | LogType { CMD, GUI, NONE } |
| Possible log types. More... | |
Public Member Functions | |
| OMSFileLoad (const String &filename, LogType log_type) | |
| Constructor. More... | |
| ~OMSFileLoad () | |
| Destructor. More... | |
| void | load (IdentificationData &id_data) |
| Load data from database and populate an IdentificationData object. More... | |
| void | load (FeatureMap &features) |
| Load data from database and populate a FeatureMap object. More... | |
| void | exportToJSON (std::ostream &output) |
| Export database contents in JSON format, write to stream. More... | |
Public Member Functions inherited from ProgressLogger | |
| ProgressLogger () | |
| Constructor. More... | |
| virtual | ~ProgressLogger () |
| Destructor. More... | |
| ProgressLogger (const ProgressLogger &other) | |
| Copy constructor. More... | |
| ProgressLogger & | operator= (const ProgressLogger &other) |
| Assignment Operator. More... | |
| void | setLogType (LogType type) const |
| Sets the progress log that should be used. The default type is NONE! More... | |
| LogType | getLogType () const |
| Returns the type of progress log being used. More... | |
| void | startProgress (SignedSize begin, SignedSize end, const String &label) const |
| Initializes the progress display. More... | |
| void | setProgress (SignedSize value) const |
| Sets the current progress. More... | |
| void | endProgress () const |
| Ends the progress display. More... | |
| void | nextProgress () const |
| increment progress by 1 (according to range begin-end) More... | |
Static Private Member Functions | |
| static DataValue | makeDataValue_ (const SQLite::Statement &query) |
Static Private Attributes | |
| static std::map< QString, QString > | export_order_by_ |
Additional Inherited Members | |
Static Protected Member Functions inherited from ProgressLogger | |
| static String | logTypeToFactoryName_ (LogType type) |
| Return the name of the factory product used for this log type. More... | |
Protected Attributes inherited from ProgressLogger | |
| LogType | type_ |
| time_t | last_invoke_ |
| ProgressLoggerImpl * | current_logger_ |
Static Protected Attributes inherited from ProgressLogger | |
| static int | recursion_depth_ |
Helper class for loading .oms files (SQLite format)
This class encapsulates the SQLite database stored in a .oms file and allows to load data from it.
| using Key = OMSFileStore::Key |
Type used for database keys.
| OMSFileLoad | ( | const String & | filename, |
| LogType | log_type | ||
| ) |
Constructor.
Opens the connection to the database file (in read-only mode).
| filename | Path to the .oms input file (SQLite database) |
| log_type | Type of logging to use |
| Exception::FailedAPICall | Database cannot be opened |
| ~OMSFileLoad | ( | ) |
Destructor.
Closes the connection to the database file.
|
private |
| void exportToJSON | ( | std::ostream & | output | ) |
Export database contents in JSON format, write to stream.
|
private |
|
private |
|
private |
|
private |
| void load | ( | IdentificationData & | id_data | ) |
Load data from database and populate an IdentificationData object.
| void load | ( | FeatureMap & | features | ) |
Load data from database and populate a FeatureMap object.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
The database connection (read)
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
query for score types used in JSON export
|
private |
schema version number