ProteoWizard
|
Reader container (composite pattern). More...
#include <Reader.hpp>
Public Member Functions | |
virtual std::string | identify (const std::string &filename) const |
returns child name iff some child identifies, else empty string More... | |
virtual std::string | identify (const std::string &filename, const std::string &head) const |
returns child name iff some child identifies, else empty string More... | |
virtual void | read (const std::string &filename, TraData &result, int runIndex=0) const |
delegates to first child that identifies More... | |
virtual void | read (const std::string &filename, const std::string &head, TraData &result, int runIndex=0) const |
delegates to first child that identifies More... | |
virtual void | read (const std::string &filename, std::vector< TraDataPtr > &results) const |
delegates to first child that identifies; provides support for multi-run input files More... | |
virtual void | read (const std::string &filename, const std::string &head, std::vector< TraDataPtr > &results) const |
delegates to first child that identifies; provides support for multi-run input files More... | |
ReaderList & | operator+= (const ReaderList &rhs) |
delegates to first child that identifies; provides support for multi-run input files More... | |
ReaderList & | operator+= (const ReaderPtr &rhs) |
appends the rhs Reader to the list More... | |
ReaderList | operator+ (const ReaderList &rhs) const |
returns a concatenated list of all the Readers from the lhs and rhs operands More... | |
ReaderList | operator+ (const ReaderPtr &rhs) const |
returns a concatenated list of all the Readers from the lhs and rhs operands More... | |
template<typename reader_type > | |
reader_type * | get () |
returns pointer to Reader of the specified type More... | |
template<typename reader_type > | |
const reader_type * | get () const |
returns const pointer to Reader of the specified type More... | |
virtual 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 More... | |
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; More... | |
virtual void | read (const std::string &uri, ProteomeData &result) const |
fill in the ProteomeData structure from a new URI stream More... | |
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 More... | |
virtual | ~Reader () |
Reader container (composite pattern).
The template get<reader_type>() gives access to child Readers by type, to facilitate Reader-specific configuration at runtime.
Definition at line 104 of file Reader.hpp.
|
virtual |
returns child name iff some child identifies, else empty string
|
virtual |
returns child name iff some child identifies, else empty string
|
virtual |
delegates to first child that identifies
|
virtual |
delegates to first child that identifies
|
virtual |
delegates to first child that identifies; provides support for multi-run input files
|
virtual |
delegates to first child that identifies; provides support for multi-run input files
ReaderList& pwiz::tradata::ReaderList::operator+= | ( | const ReaderList & | rhs | ) |
delegates to first child that identifies; provides support for multi-run input files
delegates to first child that identifies; provides support for multi-run input files appends all of the rhs operand's Readers to the list
ReaderList& pwiz::tradata::ReaderList::operator+= | ( | const ReaderPtr & | rhs | ) |
appends the rhs Reader to the list
ReaderList pwiz::tradata::ReaderList::operator+ | ( | const ReaderList & | rhs | ) | const |
returns a concatenated list of all the Readers from the lhs and rhs operands
ReaderList pwiz::tradata::ReaderList::operator+ | ( | const ReaderPtr & | rhs | ) | const |
returns a concatenated list of all the Readers from the lhs and rhs operands
|
inline |
returns pointer to Reader of the specified type
Definition at line 163 of file Reader.hpp.
|
inline |
returns const pointer to Reader of the specified type
Definition at line 176 of file Reader.hpp.
|
inlinevirtual |
Implements pwiz::proteome::Reader.
Definition at line 181 of file Reader.hpp.
References pwiz::tradata::operator+(), and PWIZ_API_DECL.