24 #ifndef MZID_MZIDPREDICATE_HPP 25 #define MZID_MZIDPREDICATE_HPP 30 #include <boost/shared_ptr.hpp> 31 #include <boost/algorithm/string/predicate.hpp> 41 id_p(
const std::string
id) : id(id) {}
60 result = p->softwareName.hasCVParam(
id);
68 const std::string
seq;
74 return (p->peptideSequence == seq);
80 const std::string
seq;
82 seq_p(
const std::string& seq) : seq(seq) {}
86 return (dbs->seq == seq);
92 const std::string
seq;
96 const std::string accession)
97 : seq(seq), accession(accession) {}
101 return boost::iequals(p->seq, seq) &&
102 boost::iequals(p->accession, accession);
110 return typeid(contact.get()).name() ==
typeid(
Organization*).name();
118 return typeid(contact.get()).name() ==
typeid(
Person*).name();
125 #endif // MZID_MZIDPREDICATE_HPP
seq_p(const std::string &seq)
bool operator()(const boost::shared_ptr< T > &t) const
bool operator()(const DBSequencePtr &p) const
sequence_p(const std::string &seq)
Implementation of PersonType from the mzIdentML schema.
bool operator()(ContactPtr contact)
boost::shared_ptr< Contact > ContactPtr
bool operator()(const PeptidePtr &p) const
boost::shared_ptr< Peptide > PeptidePtr
dbsequence_p(const std::string &seq, const std::string accession)
bool operator()(const AnalysisSoftwarePtr p)
Implementation of AbstractOrganizationType from the mzIdentML schema.
bool operator()(const DBSequencePtr &dbs) const
id_p(const std::string id)
software_p(const CVID id)
const std::string accession
bool operator()(ContactPtr contact)