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;
86 return (dbs->seq ==
seq);
92 const std::string
seq;
97 : seq(seq), accession(accession) {}
101 return boost::iequals(p->seq,
seq) &&
110 return typeid(contact.get()).name() ==
typeid(
Organization*).name();
118 return typeid(contact.get()).name() ==
typeid(
Person*).name();
125 #endif // MZID_MZIDPREDICATE_HPP