OpenMS
2.8.0
|
Helper class for loading .oms files (SQLite format) More...
#include <OpenMS/FORMAT/OMSFileLoad.h>
Public Types | |
using | Key = qint64 |
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... | |
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 QSqlQuery &query) |
Private Attributes | |
QString | db_name_ |
std::unordered_map< Key, IdentificationData::ScoreTypeRef > | score_type_refs_ |
std::unordered_map< Key, IdentificationData::InputFileRef > | input_file_refs_ |
std::unordered_map< Key, IdentificationData::ProcessingSoftwareRef > | processing_software_refs_ |
std::unordered_map< Key, IdentificationData::ProcessingStepRef > | processing_step_refs_ |
std::unordered_map< Key, IdentificationData::SearchParamRef > | search_param_refs_ |
std::unordered_map< Key, IdentificationData::ObservationRef > | observation_refs_ |
std::unordered_map< Key, IdentificationData::ParentSequenceRef > | parent_refs_ |
std::unordered_map< Key, IdentificationData::IdentifiedMolecule > | identified_molecule_vars_ |
std::unordered_map< Key, IdentificationData::ObservationMatchRef > | observation_match_refs_ |
std::unordered_map< Key, IdentificationData::AdductRef > | adduct_refs_ |
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 = qint64 |
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 |
|
private |
|
private |
|
private |
void load | ( | FeatureMap & | features | ) |
Load data from database and populate a FeatureMap object.
void load | ( | IdentificationData & | id_data | ) |
Load data from database and populate an IdentificationData object.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |