ProteoWizard
|
represents a tag-value pair, where the tag comes from the controlled vocabulary More...
#include <ParamTypes.hpp>
Public Member Functions | |
CVParam (CVID _cvid, float _value, CVID _units=CVID_Unknown) | |
CVParam (CVID _cvid, double _value, CVID _units=CVID_Unknown) | |
CVParam (CVID _cvid, int _value, CVID _units=CVID_Unknown) | |
CVParam (CVID _cvid, long _value, CVID _units=CVID_Unknown) | |
CVParam (CVID _cvid, unsigned int _value, CVID _units=CVID_Unknown) | |
CVParam (CVID _cvid, unsigned long _value, CVID _units=CVID_Unknown) | |
CVParam (CVID _cvid, std::string _value, CVID _units=CVID_Unknown) | |
CVParam (CVID _cvid, const char *_value, CVID _units=CVID_Unknown) | |
CVParam (CVID _cvid, bool _value, CVID _units=CVID_Unknown) | |
special case for bool (no lexical_cast) More... | |
CVParam (CVID _cvid=CVID_Unknown) | |
constructor for non-valued CVParams More... | |
~CVParam () | |
template<typename value_type > | |
value_type | valueAs () const |
templated value access with type conversion More... | |
std::string | name () const |
convenience function to return string for the cvid More... | |
std::string | unitsName () const |
convenience function to return string for the units More... | |
double | timeInSeconds () const |
convenience function to return time in seconds (throws if units not a time unit) More... | |
std::string | valueFixedNotation () const |
convenience function to return value without scientific notation (throws if not a double) More... | |
bool | operator== (const CVParam &that) const |
equality operator More... | |
bool | operator!= (const CVParam &that) const |
inequality operator More... | |
bool | empty () const |
template<> | |
bool | valueAs () const |
special case for bool (no lexical_cast) (this has to be outside the class for gcc 3.4, inline for msvc) More... | |
Public Attributes | |
CVID | cvid |
std::string | value |
CVID | units |
represents a tag-value pair, where the tag comes from the controlled vocabulary
Definition at line 44 of file ParamTypes.hpp.
|
inline |
Definition at line 50 of file ParamTypes.hpp.
|
inline |
Definition at line 56 of file ParamTypes.hpp.
|
inline |
Definition at line 62 of file ParamTypes.hpp.
|
inline |
Definition at line 68 of file ParamTypes.hpp.
|
inline |
Definition at line 74 of file ParamTypes.hpp.
|
inline |
Definition at line 80 of file ParamTypes.hpp.
|
inline |
Definition at line 86 of file ParamTypes.hpp.
|
inline |
Definition at line 92 of file ParamTypes.hpp.
|
inline |
|
inline |
pwiz::data::CVParam::~CVParam | ( | ) |
|
inline |
templated value access with type conversion
Definition at line 112 of file ParamTypes.hpp.
References boost::lexical_cast(), and pwiz::msdata::id::value().
Referenced by EvenMS2Predicate::accept(), MSLevelSorter::less(), test(), testParamContainer(), testPrecursor(), verifyPrecursorMZ(), and verifyScanInfo().
std::string pwiz::data::CVParam::name | ( | ) | const |
convenience function to return string for the cvid
std::string pwiz::data::CVParam::unitsName | ( | ) | const |
convenience function to return string for the units
Referenced by pwiz::tradata::TextWriter::operator()(), pwiz::msdata::TextWriter::operator()(), and pwiz::identdata::TextWriter::operator()().
double pwiz::data::CVParam::timeInSeconds | ( | ) | const |
convenience function to return time in seconds (throws if units not a time unit)
Referenced by test().
std::string pwiz::data::CVParam::valueFixedNotation | ( | ) | const |
convenience function to return value without scientific notation (throws if not a double)
|
inline |
|
inline |
inequality operator
Definition at line 137 of file ParamTypes.hpp.
References pwiz::data::operator==().
|
inline |
Definition at line 142 of file ParamTypes.hpp.
References CVID_Unknown.
Referenced by MSLevelSorter::less(), pwiz::identdata::TextWriter::operator()(), testCVParam(), testSearchDatabase(), testSourceFile(), and testSpectraData().
|
inline |
special case for bool (no lexical_cast) (this has to be outside the class for gcc 3.4, inline for msvc)
Definition at line 175 of file ParamTypes.hpp.
References pwiz::data::operator<<(), PWIZ_API_DECL, and pwiz::msdata::id::value().
CVID pwiz::data::CVParam::cvid |
Definition at line 46 of file ParamTypes.hpp.
Referenced by EvenMS2Predicate::accept(), checkSpectrumInfo(), WriteCVParam::operator()(), pwiz::tradata::TextWriter::operator()(), pwiz::msdata::TextWriter::operator()(), pwiz::identdata::TextWriter::operator()(), pwiz::data::CVParamIs::operator()(), pwiz::data::CVParamIsChildOf::operator()(), operator==(), test(), test_v3(), testContactRole(), testCVParam(), testIonType(), testParamContainer(), testSearchDatabase(), testSearchModification(), testSoftware(), testSourceFile(), testSpectraData(), and testSpectrumIdentificationProtocol().
std::string pwiz::data::CVParam::value |
Definition at line 47 of file ParamTypes.hpp.
Referenced by checkSpectrumInfo(), WriteCVParam::operator()(), pwiz::tradata::TextWriter::operator()(), pwiz::msdata::TextWriter::operator()(), pwiz::identdata::TextWriter::operator()(), operator==(), test(), test_v3(), testAmbiguousResidue(), testCVParam(), testParamContainer(), and verifyScanInfo().
CVID pwiz::data::CVParam::units |
Definition at line 48 of file ParamTypes.hpp.
Referenced by WriteCVParam::operator()(), pwiz::tradata::TextWriter::operator()(), pwiz::msdata::TextWriter::operator()(), pwiz::identdata::TextWriter::operator()(), and operator==().