Go to the documentation of this file.
25 #ifndef _CHROMATOGRAMLISTWRAPPER_HPP_
26 #define _CHROMATOGRAMLISTWRAPPER_HPP_
44 dp_(inner->dataProcessingPtr().
get() ? new msdata::
DataProcessing(*inner->dataProcessingPtr())
47 if (!inner.get())
throw std::runtime_error(
"[ChromatogramListWrapper] Null ChromatogramListPtr.");
52 virtual size_t size()
const {
return inner_->size();}
53 virtual bool empty()
const {
return inner_->empty();}
55 virtual size_t find(
const std::string&
id)
const {
return inner_->find(
id);}
58 virtual const boost::shared_ptr<const msdata::DataProcessing>
dataProcessingPtr()
const {
return dp_; }
71 #endif // _CHROMATOGRAMLISTWRAPPER_HPP_
virtual msdata::ChromatogramPtr chromatogram(size_t index, bool getBinaryData=false) const
retrieve a chromatogram by index
msdata::ChromatogramListPtr inner_
virtual const boost::shared_ptr< const msdata::DataProcessing > dataProcessingPtr() const
returns the data processing affecting spectra retrieved through this interface
Identifying information for a chromatogram.
msdata::DataProcessingPtr dp_
virtual bool empty() const
ChromatogramListWrapper(const msdata::ChromatogramListPtr &inner)
boost::shared_ptr< ChromatogramList > ChromatogramListPtr
virtual const msdata::ChromatogramIdentity & chromatogramIdentity(size_t index) const
access to a chromatogram index
T get(const char *name, const T &defaultValue)
static bool accept(const msdata::ChromatogramListPtr &inner)
boost::shared_ptr< DataProcessing > DataProcessingPtr
virtual size_t find(const std::string &id) const
find id in the chromatogram index (returns size() on failure)
Inheritable pass-through implementation for wrapping a ChromatogramList.
Description of the way in which a particular software was used.
boost::shared_ptr< Chromatogram > ChromatogramPtr
virtual size_t size() const
returns the number of chromatograms
Interface for accessing chromatograms, which may be stored in memory or backed by a data file (RAW,...