#include <OpenMS/FORMAT/DTA2DFile.h>
Public Member Functions | |
| PeakFileOptions & | getOptions () |
| Mutable access to the options for loading/storing. More... | |
| const PeakFileOptions & | getOptions () const |
| Non-mutable access to the options for loading/storing. More... | |
| template<typename MapType > | |
| void | load (const String &filename, MapType &map) |
| Loads a map from a DTA2D file. More... | |
| template<typename MapType > | |
| void | store (const String &filename, const MapType &map) const |
| Stores a map in a DTA2D file. More... | |
| template<typename MapType > | |
| void | storeTIC (const String &filename, const MapType &map) const |
| Stores the TIC of a map in a DTA2D file. More... | |
Constructors and Destructor | |
| DTA2DFile () | |
| Default constructor. More... | |
| ~DTA2DFile () | |
| Destructor. More... | |
Public Member Functions inherited from ProgressLogger | |
| ProgressLogger () | |
| Constructor. More... | |
| ~ProgressLogger () | |
| Destructor. 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... | |
Private Attributes | |
| PeakFileOptions | options_ |
Additional Inherited Members | |
Public Types inherited from ProgressLogger | |
| enum | LogType { CMD, GUI, NONE } |
| Possible log types. More... | |
Protected Attributes inherited from ProgressLogger | |
| LogType | type_ |
| SignedSize | begin_ |
| SignedSize | end_ |
| SignedSize | value_ |
| QProgressDialog * | dlg_ |
| StopWatch | stop_watch_ |
| time_t | last_invoke_ |
Static Protected Attributes inherited from ProgressLogger | |
| static int | recursion_depth_ |
DTA2D File adapter.
File adapter for files with three tab/space-separated columns.
The default format is: retention time (seconds) , m/z , intensity.
If the first line starts with '#', a different order is defined by the the order of the keywords 'MIN' (retention time in minutes) or 'SEC' (retention time in seconds), 'MZ', and 'INT'.
Example: '#MZ MIN INT'
The peaks of one retention time have to be in subsequent lines.
| DTA2DFile | ( | ) |
Default constructor.
| ~DTA2DFile | ( | ) |
Destructor.
| PeakFileOptions& getOptions | ( | ) |
Mutable access to the options for loading/storing.
Referenced by FileHandler::loadExperiment(), and FileHandler::storeExperiment().
| const PeakFileOptions& getOptions | ( | ) | const |
Non-mutable access to the options for loading/storing.
|
inline |
Loads a map from a DTA2D file.
map has to be a MSExperiment or have the same interface.
| Exception::FileNotFound | is thrown if the file could not be opened |
| Exception::ParseError | is thrown if an error occurs during parsing |
References String::has(), String::hasPrefix(), String::split(), String::substr(), and String::trim().
Referenced by FileHandler::loadExperiment().
|
inline |
Stores a map in a DTA2D file.
map has to be a MSExperiment or have the same interface.
| Exception::UnableToCreateFile | is thrown if the file could not be created |
References OpenMS::precisionWrapper().
Referenced by FileHandler::storeExperiment().
|
inline |
Stores the TIC of a map in a DTA2D file.
map has to be a MSExperiment or have the same interface.
| Exception::UnableToCreateFile | is thrown if the file could not be created |
References OpenMS::precisionWrapper().
|
private |
| OpenMS / TOPP release 1.11.1 | Documentation generated on Thu Nov 14 2013 11:19:30 using doxygen 1.8.5 |