File: data.hh

package info (click to toggle)
gelemental 2.0.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,544 kB
  • sloc: cpp: 5,331; sh: 4,360; makefile: 137
file content (110 lines) | stat: -rw-r--r-- 2,583 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
//! \file data.hh
//! Private data structures.
/*
 * This file is part of libelemental, a periodic table library with detailed
 * information on elements.
 *
 * Copyright (C) 2006-2007 Kevin Daughtridge <kevin@kdau.com>
 * Copyright (C) 2003 Jonas Frantz <jonas.frantz@welho.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
 */

#ifndef LIBELEMENTAL__DATA_HH
#define LIBELEMENTAL__DATA_HH

#include <libelemental/value.hh>
#include <libelemental/value-types.hh>

//******************************************************************************

namespace Elemental {

//******************************************************************************

/* Some categories and properties appear out of order here for historical
 * reasons. This header file is not part of the public interface, and this
 * structure may be reordered at any time. */
struct ElementData
{
// General

	Message name;
	String alternate_name;
	std::string symbol;
	AtomicNumber number;
	Series series;
	Int group;
	Int period;
	Block block;

// Physical

	Float density_solid;
	Float density_liquid;
	Float density_gas;
	Message appearance;

// Historical

	Event discovery;
	Message discovered_by;
	Message etymology;

// Atomic

	Float atomic_mass;
	Float atomic_volume;
	Float atomic_radius;
	Float covalent_radius;
	Float van_der_waals_radius;
	String ionic_radii;
	
// Crystallographic

	LatticeType lattice_type;
	Int space_group;
	FloatList lattice_edges;
	FloatList lattice_angles;

// Electronic

	String configuration;
	IntList oxidation_states;
	Float electronegativity;
	Float electron_affinity;
	Float first_energy;

// Thermal

	Float melting_point;
	Float boiling_point;
	Float fusion_heat;
	Float vaporization_heat;
	Float specific_heat;
	Float thermal_conductivity;
	Float debye_temperature;

// Miscellaneous

	ColorValue color;
	Message notes;
};

extern const ElementData table_data[];
extern const unsigned int table_length;

} // namespace Elemental

#endif // LIBELEMENTAL__DATA_HH