ProteoWizard
|
interface for file readers More...
#include <Reader.hpp>
Public Member Functions | |
bool | accept (const std::string &filename, const std::string &head) const |
return true iff Reader recognizes the file as one it should handle | |
virtual std::string | identify (const std::string &filename, const std::string &head) const =0 |
return file type iff Reader recognizes the file, else empty; | |
virtual void | read (const std::string &filename, const std::string &head, TraData &result, int runIndex=0) const =0 |
fill in the TraData structure from the first (or only) sample | |
virtual void | read (const std::string &filename, const std::string &head, std::vector< TraDataPtr > &results) const =0 |
fill in a vector of TraData structures; provides support for multi-run input files | |
virtual const char * | getType () const =0 |
fill in a vector of MSData.Id values; provides support for multi-run input files | |
virtual | ~Reader () |
interface for file readers
Definition at line 36 of file Reader.hpp.
|
inlinevirtual |
Definition at line 76 of file Reader.hpp.
|
inline |
return true iff Reader recognizes the file as one it should handle
that's not to say one it CAN handle, necessarily, as in Thermo on linux, see comment for identify() below
Definition at line 44 of file Reader.hpp.
|
pure virtual |
return file type iff Reader recognizes the file, else empty;
note: for formats requiring a 3rd party DLL identify() should return true if it recognized the format, even though reading may fail if the 3rd party DLL isn't actually present Reader may filter based on filename and/or head of the file
|
pure virtual |
fill in the TraData structure from the first (or only) sample
|
pure virtual |
fill in a vector of TraData structures; provides support for multi-run input files
|
pure virtual |
fill in a vector of MSData.Id values; provides support for multi-run input files