OpenMS
|
This class supports reading and writing of OMS files. More...
#include <OpenMS/FORMAT/OMSFile.h>
Public Member Functions | |
OMSFile (LogType log_type=LogType::NONE) | |
Constructor (with option to set log type) More... | |
void | store (const String &filename, const IdentificationData &id_data) |
Write out an IdentificationData object to SQL-based OMS file. More... | |
void | store (const String &filename, const FeatureMap &features) |
Write out a feature map to SQL-based OMS file. More... | |
void | store (const String &filename, const ConsensusMap &consensus) |
Write out a consensus map to SQL-based OMS file. More... | |
void | load (const String &filename, IdentificationData &id_data) |
Read in an OMS file and construct an IdentificationData object. More... | |
void | load (const String &filename, FeatureMap &features) |
Read in an OMS file and construct a feature map. More... | |
void | load (const String &filename, ConsensusMap &consensus) |
Read in an OMS file and construct a consensus map. More... | |
void | exportToJSON (const String &filename_in, const String &filename_out) |
Read in an OMS file and write out the contents in JSON format. 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 (UInt64 bytes_processed=0) const |
void | nextProgress () const |
increment progress by 1 (according to range begin-end) More... | |
Protected Attributes | |
LogType | log_type_ |
Protected Attributes inherited from ProgressLogger | |
LogType | type_ |
time_t | last_invoke_ |
ProgressLoggerImpl * | current_logger_ |
Additional Inherited Members | |
Public Types inherited from ProgressLogger | |
enum | LogType { CMD , GUI , NONE } |
Possible log types. More... | |
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... | |
Static Protected Attributes inherited from ProgressLogger | |
static int | recursion_depth_ |
This class supports reading and writing of OMS files.
OMS files are SQLite databases consisting of several tables.
Constructor (with option to set log type)
Read in an OMS file and write out the contents in JSON format.
filename_in | The input file (OMS) |
filename_out | The output file (JSON) |
void load | ( | const String & | filename, |
ConsensusMap & | consensus | ||
) |
Read in an OMS file and construct a consensus map.
filename | The input file |
consensus | The consensus map |
void load | ( | const String & | filename, |
FeatureMap & | features | ||
) |
Read in an OMS file and construct a feature map.
filename | The input file |
features | The feature map |
void load | ( | const String & | filename, |
IdentificationData & | id_data | ||
) |
Read in an OMS file and construct an IdentificationData object.
filename | The input file |
id_data | The IdentificationData object |
Referenced by NucleicAcidSearchEngine::main_().
void store | ( | const String & | filename, |
const ConsensusMap & | consensus | ||
) |
Write out a consensus map to SQL-based OMS file.
filename | The output file |
consensus | The consensus map |
void store | ( | const String & | filename, |
const FeatureMap & | features | ||
) |
Write out a feature map to SQL-based OMS file.
filename | The output file |
features | The feature map |
void store | ( | const String & | filename, |
const IdentificationData & | id_data | ||
) |
Write out an IdentificationData object to SQL-based OMS file.
filename | The output file |
id_data | The IdentificationData object |
Referenced by NucleicAcidSearchEngine::main_().
|
protected |