ProteoWizard
Public Member Functions | Public Attributes | List of all members
pwiz::identdata::ContactRole Struct Reference

Implementation of ContactRoleType from the mzIdentML schema. More...

#include <IdentData.hpp>

Inheritance diagram for pwiz::identdata::ContactRole:
pwiz::data::CVParam

Public Member Functions

 ContactRole (CVID role_=CVID_Unknown, const ContactPtr &contactPtr_=ContactPtr())
 
bool empty () const
 
- Public Member Functions inherited from pwiz::data::CVParam
 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

ContactPtr contactPtr
 
- Public Attributes inherited from pwiz::data::CVParam
CVID cvid
 
std::string value
 
CVID units
 

Detailed Description

Implementation of ContactRoleType from the mzIdentML schema.

The role that a Contact plays in an organization or with respect to the associating class. A Contact may have several Roles within scope, and as such, associations to ContactRole allow the use of a Contact in a certain manner. Examples might include a provider, or a data analyst.

Definition at line 175 of file IdentData.hpp.

Constructor & Destructor Documentation

§ ContactRole()

pwiz::identdata::ContactRole::ContactRole ( CVID  role_ = CVID_Unknown,
const ContactPtr &  contactPtr_ = ContactPtr() 
)

Member Function Documentation

§ empty()

bool pwiz::identdata::ContactRole::empty ( ) const

Member Data Documentation

§ contactPtr

ContactPtr pwiz::identdata::ContactRole::contactPtr

Definition at line 180 of file IdentData.hpp.

Referenced by pwiz::identdata::TextWriter::operator()(), and testContactRole().


The documentation for this struct was generated from the following file: