|
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) | |
| CVParam (CVID _cvid=CVID_Unknown) | |
| constructor for non-valued CVParams | |
| ~CVParam () | |
| template<typename value_type > | |
| value_type | valueAs () const |
| templated value access with type conversion | |
| std::string | name () const |
| convenience function to return string for the cvid | |
| std::string | unitsName () const |
| convenience function to return string for the units | |
| double | timeInSeconds () const |
| convenience function to return time in seconds (throws if units not a time unit) | |
| std::string | valueFixedNotation () const |
| convenience function to return value without scientific notation (throws if not a double) | |
| bool | operator== (const CVParam &that) const |
| equality operator | |
| bool | operator!= (const CVParam &that) const |
| inequality operator | |
| 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) | |
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 |
special case for bool (no lexical_cast)
Definition at line 99 of file ParamTypes.hpp.
|
inline |
constructor for non-valued CVParams
Definition at line 104 of file ParamTypes.hpp.
| pwiz::data::CVParam::~CVParam | ( | ) |
|
inline |
templated value access with type conversion
Definition at line 112 of file ParamTypes.hpp.
Referenced by EvenMS2Predicate::accept(), pwiz::data::ParamContainer::cvParamChildValueOrDefault(), pwiz::data::ParamContainer::cvParamValueOrDefault(), MSLevelSorter::less(), test(), test(), test_v3(), testParamContainer(), verifyPrecursorInfo(), verifyPrecursorInfo(), 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::identdata::TextWriter::operator()(), pwiz::msdata::TextWriter::operator()(), and pwiz::tradata::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.
|
inline |
Definition at line 142 of file ParamTypes.hpp.
References CVID_Unknown.
Referenced by pwiz::data::ParamContainer::cvParamChildValueOrDefault(), pwiz::data::ParamContainer::cvParamValueOrDefault(), MSLevelSorter::less(), pwiz::identdata::TextWriter::operator()(), pwiz::identdata::TextWriter::operator()(), pwiz::identdata::TextWriter::operator()(), pwiz::identdata::TextWriter::operator()(), and pwiz::identdata::TextWriter::operator()().
|
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 value.
| CVID pwiz::data::CVParam::cvid |
Definition at line 46 of file ParamTypes.hpp.
Referenced by EvenMS2Predicate::accept(), checkSpectrumInfo(), pwiz::identdata::TextWriter::operator()(), pwiz::msdata::TextWriter::operator()(), pwiz::tradata::TextWriter::operator()(), WriteCVParam::operator()(), pwiz::data::CVParamIs::operator()(), pwiz::data::CVParamIsChildOf::operator()(), operator==(), test(), 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(), pwiz::identdata::TextWriter::operator()(), pwiz::msdata::TextWriter::operator()(), pwiz::tradata::TextWriter::operator()(), WriteCVParam::operator()(), operator==(), test(), test_v3(), testCVParam(), testParamContainer(), valueAs(), verifyPrecursorInfo(), verifyPrecursorInfo(), verifyPrecursorMZ(), and verifyScanInfo().
| CVID pwiz::data::CVParam::units |
Definition at line 48 of file ParamTypes.hpp.
Referenced by pwiz::identdata::TextWriter::operator()(), pwiz::msdata::TextWriter::operator()(), pwiz::tradata::TextWriter::operator()(), WriteCVParam::operator()(), and operator==().