Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
c99de817
Commit
c99de817
authored
Sep 01, 2023
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
documentation
parent
600c86a1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
143 additions
and
144 deletions
+143
-144
CMakeLists.txt
+1
-1
docs/CMakeLists.txt
+5
-5
docs/Doxyfile.in
+1
-1
include/cif++/atom_type.hpp
+133
-136
include/cif++/compound.hpp
+3
-1
No files found.
CMakeLists.txt
View file @
c99de817
...
@@ -275,7 +275,7 @@ set(project_headers
...
@@ -275,7 +275,7 @@ set(project_headers
add_library
(
cifpp
${
project_sources
}
${
project_headers
}
${
PROJECT_SOURCE_DIR
}
/src/symop_table_data.hpp
)
add_library
(
cifpp
${
project_sources
}
${
project_headers
}
${
PROJECT_SOURCE_DIR
}
/src/symop_table_data.hpp
)
add_library
(
cifpp::cifpp ALIAS cifpp
)
add_library
(
cifpp::cifpp ALIAS cifpp
)
generate_export_header
(
cifpp EXPORT_FILE_NAME cif++/exports.hpp
)
generate_export_header
(
cifpp EXPORT_FILE_NAME
${
PROJECT_SOURCE_DIR
}
/include/
cif++/exports.hpp
)
if
(
BOOST_REGEX
)
if
(
BOOST_REGEX
)
target_compile_definitions
(
cifpp PRIVATE USE_BOOST_REGEX=1 BOOST_REGEX_STANDALONE=1
)
target_compile_definitions
(
cifpp PRIVATE USE_BOOST_REGEX=1 BOOST_REGEX_STANDALONE=1
)
...
...
docs/CMakeLists.txt
View file @
c99de817
...
@@ -2,11 +2,11 @@ find_package(Doxygen REQUIRED)
...
@@ -2,11 +2,11 @@ find_package(Doxygen REQUIRED)
find_package
(
Sphinx REQUIRED
)
find_package
(
Sphinx REQUIRED
)
# Find all the public headers
# Find all the public headers
# get_target_property(
MCFP_PUBLIC_HEADER_DIR libmcfp
INTERFACE_INCLUDE_DIRECTORIES)
# get_target_property(
CIFPP_PUBLIC_HEADER_DIR libCIFPP
INTERFACE_INCLUDE_DIRECTORIES)
set
(
MCF
P_PUBLIC_HEADER_DIR
${
PROJECT_SOURCE_DIR
}
/include
)
set
(
CIFP
P_PUBLIC_HEADER_DIR
${
PROJECT_SOURCE_DIR
}
/include
)
file
(
GLOB_RECURSE
MCFP_PUBLIC_HEADERS
${
MCF
P_PUBLIC_HEADER_DIR
}
/*.hpp
)
file
(
GLOB_RECURSE
CIFPP_PUBLIC_HEADERS
${
CIFP
P_PUBLIC_HEADER_DIR
}
/*.hpp
)
set
(
DOXYGEN_INPUT_DIR
${
MCF
P_PUBLIC_HEADER_DIR
}
)
set
(
DOXYGEN_INPUT_DIR
${
CIFP
P_PUBLIC_HEADER_DIR
}
)
set
(
DOXYGEN_OUTPUT_DIR
${
CMAKE_CURRENT_BINARY_DIR
}
)
set
(
DOXYGEN_OUTPUT_DIR
${
CMAKE_CURRENT_BINARY_DIR
}
)
set
(
DOXYGEN_INDEX_FILE
${
DOXYGEN_OUTPUT_DIR
}
/xml/index.xml
)
set
(
DOXYGEN_INDEX_FILE
${
DOXYGEN_OUTPUT_DIR
}
/xml/index.xml
)
set
(
DOXYFILE_IN
${
CMAKE_CURRENT_SOURCE_DIR
}
/Doxyfile.in
)
set
(
DOXYFILE_IN
${
CMAKE_CURRENT_SOURCE_DIR
}
/Doxyfile.in
)
...
@@ -17,7 +17,7 @@ configure_file(${DOXYFILE_IN} ${DOXYFILE_OUT} @ONLY)
...
@@ -17,7 +17,7 @@ configure_file(${DOXYFILE_IN} ${DOXYFILE_OUT} @ONLY)
file
(
MAKE_DIRECTORY
${
DOXYGEN_OUTPUT_DIR
}
)
#Doxygen won't create this for us
file
(
MAKE_DIRECTORY
${
DOXYGEN_OUTPUT_DIR
}
)
#Doxygen won't create this for us
add_custom_command
(
OUTPUT
${
DOXYGEN_INDEX_FILE
}
add_custom_command
(
OUTPUT
${
DOXYGEN_INDEX_FILE
}
DEPENDS
${
MCF
P_PUBLIC_HEADERS
}
${
DOXYFILE_OUT
}
DEPENDS
${
CIFP
P_PUBLIC_HEADERS
}
${
DOXYFILE_OUT
}
COMMAND
${
DOXYGEN_EXECUTABLE
}
${
DOXYFILE_OUT
}
COMMAND
${
DOXYGEN_EXECUTABLE
}
${
DOXYFILE_OUT
}
MAIN_DEPENDENCY
${
DOXYFILE_OUT
}
${
DOXYFILE_IN
}
MAIN_DEPENDENCY
${
DOXYFILE_OUT
}
${
DOXYFILE_IN
}
COMMENT
"Generating docs"
)
COMMENT
"Generating docs"
)
...
...
docs/Doxyfile.in
View file @
c99de817
EXCLUDE_SYMBOLS = cif::detail::*, std*
EXCLUDE_SYMBOLS = cif::detail::*, std*
FILE_PATTERNS = *.hpp
FILE_PATTERNS = *.hpp
STRIP_FROM_PATH = @DOXYGEN_INPUT_DIR@
RECURSIVE = YES
RECURSIVE = YES
GENERATE_XML = YES
GENERATE_XML = YES
PREDEFINED += and=&& or=|| not=!
PREDEFINED += and=&& or=|| not=!
PREDEFINED += CIFPP_EXPORT=
GENERATE_HTML = NO
GENERATE_HTML = NO
GENERATE_TODOLIST = NO
GENERATE_TODOLIST = NO
INPUT = @DOXYGEN_INPUT_DIR@
INPUT = @DOXYGEN_INPUT_DIR@
include/cif++/atom_type.hpp
View file @
c99de817
...
@@ -24,18 +24,18 @@
...
@@ -24,18 +24,18 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/
/// \file
/// \file
atom_type.hpp cif++/atom_type.hpp
/// This file contains information about all known elements
/// This file contains information about all known elements
#pragma once
#pragma once
#include "cif++/exports.hpp"
#include <cstdint>
#include <cstdint>
#include <stdexcept>
#include <stdexcept>
#include <string>
#include <string>
#include "exports.hpp"
namespace
cif
namespace
cif
{
{
...
@@ -43,141 +43,138 @@ namespace cif
...
@@ -43,141 +43,138 @@ namespace cif
enum
atom_type
:
uint8_t
enum
atom_type
:
uint8_t
{
{
/// @cond
Nn
=
0
,
//< Unknown
Nn
=
0
,
// Unknown
H
=
1
,
//< Hydrogen
H
=
1
,
// Hydrogen
He
=
2
,
//< Helium
He
=
2
,
// Helium
Li
=
3
,
//< Lithium
Li
=
3
,
// Lithium
Be
=
4
,
//< Beryllium
Be
=
4
,
// Beryllium
B
=
5
,
//< Boron
B
=
5
,
// Boron
C
=
6
,
//< Carbon
C
=
6
,
// Carbon
N
=
7
,
//< Nitrogen
N
=
7
,
// Nitrogen
O
=
8
,
//< Oxygen
O
=
8
,
// Oxygen
F
=
9
,
//< Fluorine
F
=
9
,
// Fluorine
Ne
=
10
,
//< Neon
Ne
=
10
,
// Neon
Na
=
11
,
//< Sodium
Na
=
11
,
// Sodium
Mg
=
12
,
//< Magnesium
Mg
=
12
,
// Magnesium
Al
=
13
,
//< Aluminium
Al
=
13
,
// Aluminium
Si
=
14
,
//< Silicon
Si
=
14
,
// Silicon
P
=
15
,
//< Phosphorus
P
=
15
,
// Phosphorus
S
=
16
,
//< Sulfur
S
=
16
,
// Sulfur
Cl
=
17
,
//< Chlorine
Cl
=
17
,
// Chlorine
Ar
=
18
,
//< Argon
Ar
=
18
,
// Argon
K
=
19
,
//< Potassium
K
=
19
,
// Potassium
Ca
=
20
,
//< Calcium
Ca
=
20
,
// Calcium
Sc
=
21
,
//< Scandium
Sc
=
21
,
// Scandium
Ti
=
22
,
//< Titanium
Ti
=
22
,
// Titanium
V
=
23
,
//< Vanadium
V
=
23
,
// Vanadium
Cr
=
24
,
//< Chromium
Cr
=
24
,
// Chromium
Mn
=
25
,
//< Manganese
Mn
=
25
,
// Manganese
Fe
=
26
,
//< Iron
Fe
=
26
,
// Iron
Co
=
27
,
//< Cobalt
Co
=
27
,
// Cobalt
Ni
=
28
,
//< Nickel
Ni
=
28
,
// Nickel
Cu
=
29
,
//< Copper
Cu
=
29
,
// Copper
Zn
=
30
,
//< Zinc
Zn
=
30
,
// Zinc
Ga
=
31
,
//< Gallium
Ga
=
31
,
// Gallium
Ge
=
32
,
//< Germanium
Ge
=
32
,
// Germanium
As
=
33
,
//< Arsenic
As
=
33
,
// Arsenic
Se
=
34
,
//< Selenium
Se
=
34
,
// Selenium
Br
=
35
,
//< Bromine
Br
=
35
,
// Bromine
Kr
=
36
,
//< Krypton
Kr
=
36
,
// Krypton
Rb
=
37
,
//< Rubidium
Rb
=
37
,
// Rubidium
Sr
=
38
,
//< Strontium
Sr
=
38
,
// Strontium
Y
=
39
,
//< Yttrium
Y
=
39
,
// Yttrium
Zr
=
40
,
//< Zirconium
Zr
=
40
,
// Zirconium
Nb
=
41
,
//< Niobium
Nb
=
41
,
// Niobium
Mo
=
42
,
//< Molybdenum
Mo
=
42
,
// Molybdenum
Tc
=
43
,
//< Technetium
Tc
=
43
,
// Technetium
Ru
=
44
,
//< Ruthenium
Ru
=
44
,
// Ruthenium
Rh
=
45
,
//< Rhodium
Rh
=
45
,
// Rhodium
Pd
=
46
,
//< Palladium
Pd
=
46
,
// Palladium
Ag
=
47
,
//< Silver
Ag
=
47
,
// Silver
Cd
=
48
,
//< Cadmium
Cd
=
48
,
// Cadmium
In
=
49
,
//< Indium
In
=
49
,
// Indium
Sn
=
50
,
//< Tin
Sn
=
50
,
// Tin
Sb
=
51
,
//< Antimony
Sb
=
51
,
// Antimony
Te
=
52
,
//< Tellurium
Te
=
52
,
// Tellurium
I
=
53
,
//< Iodine
I
=
53
,
// Iodine
Xe
=
54
,
//< Xenon
Xe
=
54
,
// Xenon
Cs
=
55
,
//< Caesium
Cs
=
55
,
// Caesium
Ba
=
56
,
//< Barium
Ba
=
56
,
// Barium
La
=
57
,
//< Lanthanum
La
=
57
,
// Lanthanum
Hf
=
72
,
//< Hafnium
Hf
=
72
,
// Hafnium
Ta
=
73
,
//< Tantalum
Ta
=
73
,
// Tantalum
W
=
74
,
//< Tungsten
W
=
74
,
// Tungsten
Re
=
75
,
//< Rhenium
Re
=
75
,
// Rhenium
Os
=
76
,
//< Osmium
Os
=
76
,
// Osmium
Ir
=
77
,
//< Iridium
Ir
=
77
,
// Iridium
Pt
=
78
,
//< Platinum
Pt
=
78
,
// Platinum
Au
=
79
,
//< Gold
Au
=
79
,
// Gold
Hg
=
80
,
//< Mercury
Hg
=
80
,
// Mercury
Tl
=
81
,
//< Thallium
Tl
=
81
,
// Thallium
Pb
=
82
,
//< Lead
Pb
=
82
,
// Lead
Bi
=
83
,
//< Bismuth
Bi
=
83
,
// Bismuth
Po
=
84
,
//< Polonium
Po
=
84
,
// Polonium
At
=
85
,
//< Astatine
At
=
85
,
// Astatine
Rn
=
86
,
//< Radon
Rn
=
86
,
// Radon
Fr
=
87
,
//< Francium
Fr
=
87
,
// Francium
Ra
=
88
,
//< Radium
Ra
=
88
,
// Radium
Ac
=
89
,
//< Actinium
Ac
=
89
,
// Actinium
Rf
=
104
,
//< Rutherfordium
Rf
=
104
,
// Rutherfordium
Db
=
105
,
//< Dubnium
Db
=
105
,
// Dubnium
Sg
=
106
,
//< Seaborgium
Sg
=
106
,
// Seaborgium
Bh
=
107
,
//< Bohrium
Bh
=
107
,
// Bohrium
Hs
=
108
,
//< Hassium
Hs
=
108
,
// Hassium
Mt
=
109
,
//< Meitnerium
Mt
=
109
,
// Meitnerium
Ds
=
110
,
//< Darmstadtium
Ds
=
110
,
// Darmstadtium
Rg
=
111
,
//< Roentgenium
Rg
=
111
,
// Roentgenium
Cn
=
112
,
//< Copernicium
Cn
=
112
,
// Copernicium
Nh
=
113
,
//< Nihonium
Nh
=
113
,
// Nihonium
Fl
=
114
,
//< Flerovium
Fl
=
114
,
// Flerovium
Mc
=
115
,
//< Moscovium
Mc
=
115
,
// Moscovium
Lv
=
116
,
//< Livermorium
Lv
=
116
,
// Livermorium
Ts
=
117
,
//< Tennessine
Ts
=
117
,
// Tennessine
Og
=
118
,
//< Oganesson
Og
=
118
,
// Oganesson
Ce
=
58
,
//< Cerium
Ce
=
58
,
// Cerium
Pr
=
59
,
//< Praseodymium
Pr
=
59
,
// Praseodymium
Nd
=
60
,
//< Neodymium
Nd
=
60
,
// Neodymium
Pm
=
61
,
//< Promethium
Pm
=
61
,
// Promethium
Sm
=
62
,
//< Samarium
Sm
=
62
,
// Samarium
Eu
=
63
,
//< Europium
Eu
=
63
,
// Europium
Gd
=
64
,
//< Gadolinium
Gd
=
64
,
// Gadolinium
Tb
=
65
,
//< Terbium
Tb
=
65
,
// Terbium
Dy
=
66
,
//< Dysprosium
Dy
=
66
,
// Dysprosium
Ho
=
67
,
//< Holmium
Ho
=
67
,
// Holmium
Er
=
68
,
//< Erbium
Er
=
68
,
// Erbium
Tm
=
69
,
//< Thulium
Tm
=
69
,
// Thulium
Yb
=
70
,
//< Ytterbium
Yb
=
70
,
// Ytterbium
Lu
=
71
,
//< Lutetium
Lu
=
71
,
// Lutetium
Th
=
90
,
//< Thorium
Th
=
90
,
// Thorium
Pa
=
91
,
//< Protactinium
Pa
=
91
,
// Protactinium
U
=
92
,
//< Uranium
U
=
92
,
// Uranium
Np
=
93
,
//< Neptunium
Np
=
93
,
// Neptunium
Pu
=
94
,
//< Plutonium
Pu
=
94
,
// Plutonium
Am
=
95
,
//< Americium
Am
=
95
,
// Americium
Cm
=
96
,
//< Curium
Cm
=
96
,
// Curium
Bk
=
97
,
//< Berkelium
Bk
=
97
,
// Berkelium
Cf
=
98
,
//< Californium
Cf
=
98
,
// Californium
Es
=
99
,
//< Einsteinium
Es
=
99
,
// Einsteinium
Fm
=
100
,
//< Fermium
Fm
=
100
,
// Fermium
Md
=
101
,
//< Mendelevium
Md
=
101
,
// Mendelevium
No
=
102
,
//< Nobelium
No
=
102
,
// Nobelium
Lr
=
103
,
//< Lawrencium
Lr
=
103
,
// Lawrencium
D
=
119
,
//< Deuterium
D
=
119
,
// Deuterium
};
};
/// @endcond
// --------------------------------------------------------------------
// --------------------------------------------------------------------
/// An enum used to select the desired radius for an atom
/// An enum used to select the desired radius for an atom
...
...
include/cif++/compound.hpp
View file @
c99de817
...
@@ -26,10 +26,12 @@
...
@@ -26,10 +26,12 @@
#pragma once
#pragma once
/// \file This file contains the definition for the class compound, encapsulating
/// \file compound.hpp cif++/compound.hpp
/// This file contains the definition for the class compound, encapsulating
/// the information found for compounds in the CCD.
/// the information found for compounds in the CCD.
#include "cif++/atom_type.hpp"
#include "cif++/atom_type.hpp"
#include "cif++/exports.hpp"
#include "cif++/point.hpp"
#include "cif++/point.hpp"
#include <map>
#include <map>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment