• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kalzium/libscience

  • sources
  • kde-4.12
  • kdeedu
  • kalzium
  • libscience
chemicaldataobject.h
Go to the documentation of this file.
1 #ifndef CHEMICALDATAOBJECT_H
2 #define CHEMICALDATAOBJECT_H
3 /***************************************************************************
4  * Copyright (C) 2005 by Carsten Niehaus *
5  * cniehaus@kde.org *
6  * *
7  * This program is free software; you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation; either version 2 of the License, or *
10  * (at your option) any later version. *
11  * *
12  * This program is distributed in the hope that it will be useful, *
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15  * GNU General Public License for more details. *
16  * *
17  * You should have received a copy of the GNU General Public License *
18  * along with this program; if not, write to the *
19  * Free Software Foundation, Inc., *
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
21  ***************************************************************************/
22 
23 #include <QtCore/QSharedData>
24 #include <QtCore/QSharedDataPointer>
25 #include <QtCore/QVariant>
26 
27 #include "libkdeedu_science_export.h"
28 
29 class ChemicalDataObjectPrivate;
38 class SCIENCE_EXPORT ChemicalDataObject
39 {
40 public:
47  enum BlueObelisk
48  {
49  atomicNumber = 0 ,
50  symbol,
51  name,
52  mass,
53  exactMass,
54  ionization,
55  electronAffinity,
56  electronegativityPauling,
57  radiusCovalent,
58  radiusVDW,
59  meltingpoint,
60  boilingpoint,
61  periodTableBlock,
62  family,
63  acidicbehaviour,
64  crystalstructure,
65  electronicConfiguration,
66  group,
67  nameOrigin,
68  orbit,
69  period,
70  date,
71  discoverers,
72  relativeAbundance,
73  spin,
74  magneticMoment,
75  halfLife,
76  alphaDecayLikeliness,
77  alphaDecay,
78  betaplusDecayLikeliness,
79  betaplusDecay,
80  betaminusDecayLikeliness,
81  betaminusDecay,
82  ecDecayLikeliness,
83  ecDecay,
84  dangerSymbol,
85  RPhrase,
86  SPhrase,
87  discoveryCountry,
88  oxidation
89  };
90 
94  ChemicalDataObject();
95 
104  ChemicalDataObject( const QVariant& v,
105  BlueObelisk type,
106  const QVariant& errorValue = QVariant(0) );
107 
111  ChemicalDataObject(const ChemicalDataObject &other);
112 
116  ~ChemicalDataObject();
117 
122  void setData( const QVariant& v );
123 
129  void setErrorValue( const QVariant& v );
130 
142  QString valueAsString() const;
143 
151  QVariant value() const;
152 
156  QVariant errorValue() const;
157 
161  BlueObelisk type() const;
162 
166  void setType( BlueObelisk type );
167 
171  void setType( int type );
172 
176  bool operator== ( const int v ) const;
177 
181  bool operator== ( const double v ) const;
182 
186  bool operator== ( const bool v ) const;
187 
191  bool operator== ( const QString& v ) const;
192 
197  QString unitAsString() const;
198 
202  int unit() const;
203 
208  void setUnit( int unit );
209 
210  ChemicalDataObject& operator=(const ChemicalDataObject &other);
211 
212  bool operator==(const ChemicalDataObject &other) const;
213 
214  bool operator!=(const ChemicalDataObject &other) const;
215 
216 private:
217  QSharedDataPointer<ChemicalDataObjectPrivate> d;
218 };
219 
220 #endif // CHEMICALDATAOBJECT_H
libkdeedu_science_export.h
ChemicalDataObject::discoveryCountry
Definition: chemicaldataobject.h:87
ChemicalDataObject
A ChemicalDataObject is an object which contains information about a chemical element.
Definition: chemicaldataobject.h:38
ChemicalDataObject::BlueObelisk
BlueObelisk
The BlueObelisk-project defines in their XML file the dataset with the names of the enum plus "bo:"...
Definition: chemicaldataobject.h:47
SCIENCE_EXPORT
#define SCIENCE_EXPORT
Definition: libkdeedu_science_export.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:31 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kalzium/libscience

Skip menu "kalzium/libscience"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal