|
| TestReader () |
|
virtual std::string | identify (const std::string &filename, const std::string &head) const |
|
virtual void | read (const std::string &filename, const std::string &head, MSData &result, int runIndex=0, const Config &config=Config()) const |
|
virtual void | read (const std::string &filename, const std::string &head, std::vector< MSDataPtr > &results, const Config &config=Config()) const |
|
const char * | getType () const |
|
| TestReader () |
|
virtual std::string | identify (const std::string &uri, shared_ptr< istream > uriStreamPtr) const |
|
virtual void | read (const std::string &uri, shared_ptr< istream > uriStreamPtr, ProteomeData &pd) const |
|
const char * | getType () const |
|
bool | accept (const std::string &uri, boost::shared_ptr< std::istream > uriStreamPtr) const |
| return true iff Reader recognizes the file as one it should handle
|
|
virtual std::string | identify (const std::string &uri, boost::shared_ptr< std::istream > uriStreamPtr) const =0 |
| return file type iff Reader recognizes the file, else empty;
|
|
virtual void | read (const std::string &uri, ProteomeData &result) const |
| fill in the ProteomeData structure from a new URI stream
|
|
virtual void | read (const std::string &uri, boost::shared_ptr< std::istream > uriStreamPtr, ProteomeData &result) const =0 |
| fill in the ProteomeData structure from a shared URI stream
|
|
virtual | ~Reader () |
|
Definition at line 286 of file MSDataFileTest.cpp.
◆ TestReader() [1/2]
TestReader::TestReader |
( |
| ) |
|
|
inline |
◆ TestReader() [2/2]
TestReader::TestReader |
( |
| ) |
|
|
inline |
◆ identify() [1/2]
virtual std::string TestReader::identify |
( |
const std::string & |
filename, |
|
|
const std::string & |
head |
|
) |
| const |
|
inlinevirtual |
Definition at line 292 of file MSDataFileTest.cpp.
293 {
294 if (filename.size()<=4 || filename.substr(filename.size()-4)!=".RAW")
295 return std::string("");
296
299 return std::string("");
300
302 return filename;
303 }
References count, and rawHeader_.
◆ read() [1/3]
virtual void TestReader::read |
( |
const std::string & |
filename, |
|
|
const std::string & |
head, |
|
|
MSData & |
result, |
|
|
int |
runIndex = 0 , |
|
|
const Config & |
config = Config() |
|
) |
| const |
|
inlinevirtual |
◆ read() [2/3]
virtual void TestReader::read |
( |
const std::string & |
filename, |
|
|
const std::string & |
head, |
|
|
std::vector< MSDataPtr > & |
results, |
|
|
const Config & |
config = Config() |
|
) |
| const |
|
inlinevirtual |
Definition at line 311 of file MSDataFileTest.cpp.
315 {
317 read(filename, head, *results.back(), 0, config);
318 }
virtual void read(const std::string &filename, const std::string &head, MSData &result, int runIndex=0, const Config &config=Config()) const
boost::shared_ptr< MSData > MSDataPtr
This is the root element of ProteoWizard; it represents the mzML element, defined as: intended to cap...
References read().
◆ getType() [1/2]
const char * TestReader::getType |
( |
| ) |
const |
|
inlinevirtual |
◆ identify() [2/2]
virtual std::string TestReader::identify |
( |
const std::string & |
uri, |
|
|
shared_ptr< istream > |
uriStreamPtr |
|
) |
| const |
|
inlinevirtual |
Definition at line 200 of file ProteomeDataFileTest.cpp.
201 {
203
204 if (!bal::iends_with(uri, ".fasta"))
205 return "";
206
207 string buf;
208 getline(*uriStreamPtr, buf);
209 if (buf[0] != '>')
210 return "";
211
213 }
const char * getType() const
References count, and getType().
◆ read() [3/3]
virtual void TestReader::read |
( |
const std::string & |
uri, |
|
|
shared_ptr< istream > |
uriStreamPtr, |
|
|
ProteomeData & |
pd |
|
) |
| const |
|
inlinevirtual |
◆ getType() [2/2]
const char * TestReader::getType |
( |
| ) |
const |
|
inlinevirtual |
◆ count
The documentation for this class was generated from the following files: