Go to the source code of this file.
◆ testParamContainer()
void testParamContainer |
( |
| ) |
|
Definition at line 32 of file TraDataTest.cpp.
52 string result =
"goober";
References CVID_Unknown, pwiz::data::ParamContainer::cvParam(), pwiz::data::ParamContainer::cvParamChild(), pwiz::data::ParamContainer::cvParams, pwiz::data::UserParam::empty(), pwiz::data::ParamContainer::hasCVParam(), pwiz::data::ParamContainer::hasCVParamChild(), MS_deisotoping, MS_ionization_type, MS_ms_level, MS_MSn_spectrum, MS_reflectron_off, MS_reflectron_on, MS_selected_ion_m_z, MS_spectrum_type, pwiz::data::UserParam::name, pwiz::data::ParamContainer::set(), pwiz::data::UserParam::type, unit_assert, pwiz::data::UserParam::units, UO_minute, UO_second, pwiz::data::ParamContainer::userParam(), pwiz::data::ParamContainer::userParams, pwiz::data::CVParam::value, pwiz::data::CVParam::valueAs(), and pwiz::data::UserParam::valueAs().
Referenced by main().
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Uncontrolled user parameters (essentially allowing free text). Before using these,...
std::string type
the datatype of the parameter, where appropriate (e.g.: xsd:float).
MS_deisotoping
deisotoping: The removal of isotope peaks to represent the fragment ion as one data point and is comm...
std::vector< UserParam > userParams
a collection of uncontrolled user terms
MS_MSn_spectrum
MSn spectrum: MSn refers to multi-stage MS2 experiments designed to record product ion spectra where ...
value_type valueAs() const
Templated value access with type conversion.
CVID units
an optional CV parameter for the unit term associated with the value, if any (e.g....
UO_second
second: A time unit which is equal to the duration of 9 192 631 770 periods of the radiation correspo...
MS_ionization_type
ionization type: The method by which gas phase ions are generated from the sample.
value_type valueAs() const
templated value access with type conversion
void testParamContainer()
UserParam userParam(const std::string &) const
finds UserParam with specified name
CVParam cvParam(CVID cvid) const
finds cvid in the container:
The base class for elements that may contain cvParams, userParams, or paramGroup references.
bool hasCVParamChild(CVID cvid) const
returns true iff cvParams contains a child (is_a) of cvid (recursive)
bool hasCVParam(CVID cvid) const
returns true iff cvParams contains exact cvid (recursive)
CVParam cvParamChild(CVID cvid) const
finds child of cvid in the container:
MS_selected_ion_m_z
selected ion m/z: Mass-to-charge ratio of an selected ion.
MS_spectrum_type
spectrum type: Spectrum type.
#define TEST_PROLOG(argc, argv)
MS_ms_level
ms level: Stages of ms achieved in a multi stage mass spectrometry experiment.
void set(CVID cvid, const std::string &value="", CVID units=CVID_Unknown)
set/add a CVParam (not recursive)
MS_reflectron_on
reflectron on: Reflectron is on.
bool empty() const
returns true iff name, value, type, and units are all empty
MS_reflectron_off
reflectron off: Reflectron is off.
UO_minute
minute: A time unit which is equal to 60 seconds.
represents a tag-value pair, where the tag comes from the controlled vocabulary
std::string name
the name for the parameter.
std::vector< CVParam > cvParams
a collection of controlled vocabulary terms