libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
pappso::IsotopeCount Struct Reference

#include <chemicalformula.h>

Public Member Functions

const QString toString () const
 

Public Attributes

Enums::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}
Enums::Isotope isotope

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

Member Data Documentation

◆ count

std::int16_t pappso::IsotopeCount::count

◆ isotope

Enums::Isotope pappso::IsotopeCount::isotope

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