From: Carsten Niehaus Date: Sun, 24 Jul 2005 14:30:45 +0000 (+0000) Subject: * add API-DOCS X-Git-Tag: v3.80.2~300^2~26 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=f2296aeee0a455b9bd9192fdf17d99c22b7abd8b;p=libqmvoc.git * add API-DOCS * QString --> const QString& svn path=/trunk/KDE/kdeedu/kalzium/src/isotope.h; revision=438158 --- diff --git a/kalzium/src/isotope.cpp b/kalzium/src/isotope.cpp index bb3d541..3f2881f 100644 --- a/kalzium/src/isotope.cpp +++ b/kalzium/src/isotope.cpp @@ -22,7 +22,7 @@ #include #include -Isotope::Isotope( int neutrons, double percentage, double weight, double halflife, QString format, bool alphadecay, bool betaplusdecay, bool betaminusdecay, double alphapercentage, double betaminuspercentage, double betapluspercentage, bool ecdecay, double decayenergy, QString spin, QString magmoment) +Isotope::Isotope( int neutrons, double percentage, double weight, double halflife, const QString& format, bool alphadecay, bool betaplusdecay, bool betaminusdecay, double alphapercentage, double betaminuspercentage, double betapluspercentage, bool ecdecay, double decayenergy, const QString& spin, const QString& magmoment) { m_neutrons = neutrons; m_percentage = percentage; @@ -32,10 +32,15 @@ Isotope::Isotope( int neutrons, double percentage, double weight, double halflif m_alphadecay = alphadecay; m_betaplusdecay = betaplusdecay; m_betaminusdecay = betaminusdecay; + m_ecdecay = ecdecay; m_decayenergy = decayenergy; m_spin = spin; m_magmoment = magmoment; + + m_alphapercentage = alphapercentage; + m_betaminusdecay = betaminuspercentage; + m_betaplusdecay = betapluspercentage; } QString Isotope::halflifeToHtml() diff --git a/kalzium/src/isotope.h b/kalzium/src/isotope.h index 5051c66..7bba33d 100644 --- a/kalzium/src/isotope.h +++ b/kalzium/src/isotope.h @@ -31,7 +31,7 @@ class Isotope { public: - Isotope( int neutrons, double percentage, double weight, double halflife, QString format, bool alphadecay, bool betaplusdecay, bool betaminusdecay, double alphapercentage, double betaminuspercentage, double betapluspercentage, bool ecdecay, double decayenergy, QString spin, QString magmoment); + Isotope( int neutrons, double percentage, double weight, double halflife, const QString& format, bool alphadecay, bool betaplusdecay, bool betaminusdecay, double alphapercentage, double betaminuspercentage, double betapluspercentage, bool ecdecay, double decayenergy, const QString& spin, const QString& magmoment); bool seconds() const{ if ( m_format == "seconds" ) @@ -59,18 +59,30 @@ class Isotope return m_neutrons; } + /** + * the weight of the isotope + */ double weight() const{ return m_weight; } + /** + * @return true if the isotopes decays in alpha rays + */ bool alphadecay() const{ return m_alphadecay; } + /** + * @return true if the isotopes decays in beta plus rays + */ bool betaplusdecay() const{ return m_betaplusdecay; } + /** + * @return true if the isotopes decays in beta-minus rays + */ bool betaminusdecay() const{ return m_betaminusdecay; } @@ -143,6 +155,21 @@ class Isotope * magnetic moment */ QString m_magmoment; + + /** + * the percentage with which the istope decays as alpha-rays + */ + double m_alphapercentage; + + /** + * the percentage with which the istope decays as beta-plus + */ + double m_betapluspercentage; + + /** + * the percentage with which the istope decays as beta-minus + */ + double m_betaminuspercentage; }; #endif // ISOTOPE_H