OpenMS  2.8.0
Public Member Functions | Protected Attributes | List of all members
OMSFile Class Reference

This class supports reading and writing of OMS files. More...

#include <OpenMS/FORMAT/OMSFile.h>

Inheritance diagram for OMSFile:
[legend]
Collaboration diagram for OMSFile:
[legend]

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 load (const String &filename, IdentificationData &id_data)
 Read in a OMS file and construct an IdentificationData object. More...
 
void load (const String &filename, FeatureMap &features)
 Read in a OMS file and construct a feature map. More...
 
- Public Member Functions inherited from ProgressLogger
 ProgressLogger ()
 Constructor. More...
 
virtual ~ProgressLogger ()
 Destructor. More...
 
 ProgressLogger (const ProgressLogger &other)
 Copy constructor. More...
 
ProgressLoggeroperator= (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...
 

Protected Attributes

LogType log_type_
 
- Protected Attributes inherited from ProgressLogger
LogType type_
 
time_t last_invoke_
 
ProgressLoggerImplcurrent_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_
 

Detailed Description

This class supports reading and writing of OMS files.

OMS files are SQLite databases consisting of several tables.

Constructor & Destructor Documentation

◆ OMSFile()

OMSFile ( LogType  log_type = LogType::NONE)
inlineexplicit

Constructor (with option to set log type)

Member Function Documentation

◆ load() [1/2]

void load ( const String filename,
FeatureMap features 
)

Read in a OMS file and construct a feature map.

Parameters
filenameThe input file
featuresThe feature map

◆ load() [2/2]

void load ( const String filename,
IdentificationData id_data 
)

Read in a OMS file and construct an IdentificationData object.

Parameters
filenameThe input file
id_dataThe IdentificationData object

Referenced by NucleicAcidSearchEngine::main_().

◆ store() [1/2]

void store ( const String filename,
const FeatureMap features 
)

Write out a feature map to SQL-based OMS file.

Parameters
filenameThe output file
featuresThe feature map

◆ store() [2/2]

void store ( const String filename,
const IdentificationData id_data 
)

Write out an IdentificationData object to SQL-based OMS file.

Parameters
filenameThe output file
id_dataThe IdentificationData object

Referenced by NucleicAcidSearchEngine::main_().

Member Data Documentation

◆ log_type_

LogType log_type_
protected