|
PWIZ_API_DECL std::map< std::string, std::string > | parse (const std::string &id) |
| parses an id string into a map<string,string>
|
|
PWIZ_API_DECL std::string | value (const std::string &id, const std::string &name) |
| convenience function to extract a named value from an id string
|
|
template<typename value_type > |
value_type | valueAs (const std::string &id, const std::string &name) |
| templated convenience function to extract a named value from an id string
|
|
PWIZ_API_DECL CVID | getDefaultNativeIDFormat (const MSData &msd) |
| returns the nativeID format from the defaultSourceFilePtr if set, or from sourceFilePtrs[0] if the list isn't empty, or CVID_Unknown
|
|
PWIZ_API_DECL std::string | translateScanNumberToNativeID (CVID nativeIDFormat, const std::string &scanNumber) |
| translates a "scan number" to a string that is correct for the given nativeID format; semantic validity requires that scanNumber be parseable as an integer; some nativeID formats cannot be translated to and will always return an empty string currently supported formats: Thermo, Bruker/Agilent YEP, Bruker BAF, mzXML, MGF, and mzData
|
|
PWIZ_API_DECL std::string | translateNativeIDToScanNumber (CVID nativeIDFormat, const std::string &id) |
| translates a nativeID in the given nativeID format to a simple integer "scan number"; some nativeID formats cannot be translated from and will always return an empty string currently supported formats: Thermo, Bruker/Agilent YEP, Bruker BAF, mzXML, MGF, and mzData
|
|
PWIZ_API_DECL std::string | abbreviate (const std::string &id, char delimiter='.') |
| abbreviates a nativeID ("name1=value1 name2=value2" translates to "value1.value2")
|
|
PWIZ_API_DECL std::string pwiz::msdata::id::translateScanNumberToNativeID |
( |
CVID |
nativeIDFormat, |
|
|
const std::string & |
scanNumber |
|
) |
| |
|
protected |
translates a "scan number" to a string that is correct for the given nativeID format; semantic validity requires that scanNumber be parseable as an integer; some nativeID formats cannot be translated to and will always return an empty string currently supported formats: Thermo, Bruker/Agilent YEP, Bruker BAF, mzXML, MGF, and mzData
Referenced by testIDParsing().
PWIZ_API_DECL std::string pwiz::msdata::id::translateNativeIDToScanNumber |
( |
CVID |
nativeIDFormat, |
|
|
const std::string & |
id |
|
) |
| |
|
protected |
translates a nativeID in the given nativeID format to a simple integer "scan number"; some nativeID formats cannot be translated from and will always return an empty string currently supported formats: Thermo, Bruker/Agilent YEP, Bruker BAF, mzXML, MGF, and mzData
Referenced by testIDParsing().