libpappsomspp
Library for mass spectrometry
pappso::IsotopeCount Struct Reference

#include <chemicalformula.h>

Public Member Functions

const QString toString () const
 

Public Attributes

Isotope isotope
 
std::int16_t count
 

Detailed Description

Definition at line 35 of file chemicalformula.h.

Member Function Documentation

◆ toString()

const QString pappso::IsotopeCount::toString ( ) const

Definition at line 36 of file chemicalformula.cpp.

37{
38 QString atom;
39 switch(isotope)
40 {
42 atom = "C";
43 break;
45 atom = "(13)C";
46 break;
48 atom = "H";
49 break;
51 atom = "(2)H";
52 break;
54 atom = "N";
55 break;
57 atom = "(15)N";
58 break;
60 atom = "O";
61 break;
63 atom = "(17)O";
64 break;
66 atom = "(18)O";
67 break;
69 atom = "P";
70 break;
72 atom = "S";
73 break;
75 atom = "(33)S";
76 break;
78 atom = "(34)S";
79 break;
81 atom = "(36)S";
82 break;
83 }
84 return QString("%1 %2").arg(atom).arg(count);
85}

References pappso::C, pappso::C13, count, pappso::H, pappso::H2, isotope, pappso::N, pappso::N15, pappso::O, pappso::O17, pappso::O18, pappso::P, pappso::S, pappso::S33, pappso::S34, and pappso::S36.

Member Data Documentation

◆ count

std::int16_t pappso::IsotopeCount::count

◆ isotope

Isotope pappso::IsotopeCount::isotope

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