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
add_library
(
cifpp
${
project_sources
}
${
project_headers
}
${
PROJECT_SOURCE_DIR
}
/src/symop_table_data.hpp
)
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
)
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)
find_package
(
Sphinx REQUIRED
)
# Find all the public headers
# get_target_property(
MCFP_PUBLIC_HEADER_DIR libmcfp
INTERFACE_INCLUDE_DIRECTORIES)
set
(
MCF
P_PUBLIC_HEADER_DIR
${
PROJECT_SOURCE_DIR
}
/include
)
file
(
GLOB_RECURSE
MCFP_PUBLIC_HEADERS
${
MCF
P_PUBLIC_HEADER_DIR
}
/*.hpp
)
# get_target_property(
CIFPP_PUBLIC_HEADER_DIR libCIFPP
INTERFACE_INCLUDE_DIRECTORIES)
set
(
CIFP
P_PUBLIC_HEADER_DIR
${
PROJECT_SOURCE_DIR
}
/include
)
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_INDEX_FILE
${
DOXYGEN_OUTPUT_DIR
}
/xml/index.xml
)
set
(
DOXYFILE_IN
${
CMAKE_CURRENT_SOURCE_DIR
}
/Doxyfile.in
)
...
...
@@ -17,7 +17,7 @@ configure_file(${DOXYFILE_IN} ${DOXYFILE_OUT} @ONLY)
file
(
MAKE_DIRECTORY
${
DOXYGEN_OUTPUT_DIR
}
)
#Doxygen won't create this for us
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
}
MAIN_DEPENDENCY
${
DOXYFILE_OUT
}
${
DOXYFILE_IN
}
COMMENT
"Generating docs"
)
...
...
docs/Doxyfile.in
View file @
c99de817
EXCLUDE_SYMBOLS = cif::detail::*, std*
FILE_PATTERNS = *.hpp
STRIP_FROM_PATH = @DOXYGEN_INPUT_DIR@
RECURSIVE = YES
GENERATE_XML = YES
PREDEFINED += and=&& or=|| not=!
PREDEFINED += CIFPP_EXPORT=
GENERATE_HTML = NO
GENERATE_TODOLIST = NO
INPUT = @DOXYGEN_INPUT_DIR@
include/cif++/atom_type.hpp
View file @
c99de817
...
...
@@ -24,18 +24,18 @@
* 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
#pragma once
#include "cif++/exports.hpp"
#include <cstdint>
#include <stdexcept>
#include <string>
#include "exports.hpp"
namespace
cif
{
...
...
@@ -43,141 +43,138 @@ namespace cif
enum
atom_type
:
uint8_t
{
/// @cond
Nn
=
0
,
// Unknown
H
=
1
,
// Hydrogen
He
=
2
,
// Helium
Li
=
3
,
// Lithium
Be
=
4
,
// Beryllium
B
=
5
,
// Boron
C
=
6
,
// Carbon
N
=
7
,
// Nitrogen
O
=
8
,
// Oxygen
F
=
9
,
// Fluorine
Ne
=
10
,
// Neon
Na
=
11
,
// Sodium
Mg
=
12
,
// Magnesium
Al
=
13
,
// Aluminium
Si
=
14
,
// Silicon
P
=
15
,
// Phosphorus
S
=
16
,
// Sulfur
Cl
=
17
,
// Chlorine
Ar
=
18
,
// Argon
K
=
19
,
// Potassium
Ca
=
20
,
// Calcium
Sc
=
21
,
// Scandium
Ti
=
22
,
// Titanium
V
=
23
,
// Vanadium
Cr
=
24
,
// Chromium
Mn
=
25
,
// Manganese
Fe
=
26
,
// Iron
Co
=
27
,
// Cobalt
Ni
=
28
,
// Nickel
Cu
=
29
,
// Copper
Zn
=
30
,
// Zinc
Ga
=
31
,
// Gallium
Ge
=
32
,
// Germanium
As
=
33
,
// Arsenic
Se
=
34
,
// Selenium
Br
=
35
,
// Bromine
Kr
=
36
,
// Krypton
Rb
=
37
,
// Rubidium
Sr
=
38
,
// Strontium
Y
=
39
,
// Yttrium
Zr
=
40
,
// Zirconium
Nb
=
41
,
// Niobium
Mo
=
42
,
// Molybdenum
Tc
=
43
,
// Technetium
Ru
=
44
,
// Ruthenium
Rh
=
45
,
// Rhodium
Pd
=
46
,
// Palladium
Ag
=
47
,
// Silver
Cd
=
48
,
// Cadmium
In
=
49
,
// Indium
Sn
=
50
,
// Tin
Sb
=
51
,
// Antimony
Te
=
52
,
// Tellurium
I
=
53
,
// Iodine
Xe
=
54
,
// Xenon
Cs
=
55
,
// Caesium
Ba
=
56
,
// Barium
La
=
57
,
// Lanthanum
Hf
=
72
,
// Hafnium
Ta
=
73
,
// Tantalum
W
=
74
,
// Tungsten
Re
=
75
,
// Rhenium
Os
=
76
,
// Osmium
Ir
=
77
,
// Iridium
Pt
=
78
,
// Platinum
Au
=
79
,
// Gold
Hg
=
80
,
// Mercury
Tl
=
81
,
// Thallium
Pb
=
82
,
// Lead
Bi
=
83
,
// Bismuth
Po
=
84
,
// Polonium
At
=
85
,
// Astatine
Rn
=
86
,
// Radon
Fr
=
87
,
// Francium
Ra
=
88
,
// Radium
Ac
=
89
,
// Actinium
Rf
=
104
,
// Rutherfordium
Db
=
105
,
// Dubnium
Sg
=
106
,
// Seaborgium
Bh
=
107
,
// Bohrium
Hs
=
108
,
// Hassium
Mt
=
109
,
// Meitnerium
Ds
=
110
,
// Darmstadtium
Rg
=
111
,
// Roentgenium
Cn
=
112
,
// Copernicium
Nh
=
113
,
// Nihonium
Fl
=
114
,
// Flerovium
Mc
=
115
,
// Moscovium
Lv
=
116
,
// Livermorium
Ts
=
117
,
// Tennessine
Og
=
118
,
// Oganesson
Ce
=
58
,
// Cerium
Pr
=
59
,
// Praseodymium
Nd
=
60
,
// Neodymium
Pm
=
61
,
// Promethium
Sm
=
62
,
// Samarium
Eu
=
63
,
// Europium
Gd
=
64
,
// Gadolinium
Tb
=
65
,
// Terbium
Dy
=
66
,
// Dysprosium
Ho
=
67
,
// Holmium
Er
=
68
,
// Erbium
Tm
=
69
,
// Thulium
Yb
=
70
,
// Ytterbium
Lu
=
71
,
// Lutetium
Th
=
90
,
// Thorium
Pa
=
91
,
// Protactinium
U
=
92
,
// Uranium
Np
=
93
,
// Neptunium
Pu
=
94
,
// Plutonium
Am
=
95
,
// Americium
Cm
=
96
,
// Curium
Bk
=
97
,
// Berkelium
Cf
=
98
,
// Californium
Es
=
99
,
// Einsteinium
Fm
=
100
,
// Fermium
Md
=
101
,
// Mendelevium
No
=
102
,
// Nobelium
Lr
=
103
,
// Lawrencium
D
=
119
,
// Deuterium
Nn
=
0
,
//< Unknown
H
=
1
,
//< Hydrogen
He
=
2
,
//< Helium
Li
=
3
,
//< Lithium
Be
=
4
,
//< Beryllium
B
=
5
,
//< Boron
C
=
6
,
//< Carbon
N
=
7
,
//< Nitrogen
O
=
8
,
//< Oxygen
F
=
9
,
//< Fluorine
Ne
=
10
,
//< Neon
Na
=
11
,
//< Sodium
Mg
=
12
,
//< Magnesium
Al
=
13
,
//< Aluminium
Si
=
14
,
//< Silicon
P
=
15
,
//< Phosphorus
S
=
16
,
//< Sulfur
Cl
=
17
,
//< Chlorine
Ar
=
18
,
//< Argon
K
=
19
,
//< Potassium
Ca
=
20
,
//< Calcium
Sc
=
21
,
//< Scandium
Ti
=
22
,
//< Titanium
V
=
23
,
//< Vanadium
Cr
=
24
,
//< Chromium
Mn
=
25
,
//< Manganese
Fe
=
26
,
//< Iron
Co
=
27
,
//< Cobalt
Ni
=
28
,
//< Nickel
Cu
=
29
,
//< Copper
Zn
=
30
,
//< Zinc
Ga
=
31
,
//< Gallium
Ge
=
32
,
//< Germanium
As
=
33
,
//< Arsenic
Se
=
34
,
//< Selenium
Br
=
35
,
//< Bromine
Kr
=
36
,
//< Krypton
Rb
=
37
,
//< Rubidium
Sr
=
38
,
//< Strontium
Y
=
39
,
//< Yttrium
Zr
=
40
,
//< Zirconium
Nb
=
41
,
//< Niobium
Mo
=
42
,
//< Molybdenum
Tc
=
43
,
//< Technetium
Ru
=
44
,
//< Ruthenium
Rh
=
45
,
//< Rhodium
Pd
=
46
,
//< Palladium
Ag
=
47
,
//< Silver
Cd
=
48
,
//< Cadmium
In
=
49
,
//< Indium
Sn
=
50
,
//< Tin
Sb
=
51
,
//< Antimony
Te
=
52
,
//< Tellurium
I
=
53
,
//< Iodine
Xe
=
54
,
//< Xenon
Cs
=
55
,
//< Caesium
Ba
=
56
,
//< Barium
La
=
57
,
//< Lanthanum
Hf
=
72
,
//< Hafnium
Ta
=
73
,
//< Tantalum
W
=
74
,
//< Tungsten
Re
=
75
,
//< Rhenium
Os
=
76
,
//< Osmium
Ir
=
77
,
//< Iridium
Pt
=
78
,
//< Platinum
Au
=
79
,
//< Gold
Hg
=
80
,
//< Mercury
Tl
=
81
,
//< Thallium
Pb
=
82
,
//< Lead
Bi
=
83
,
//< Bismuth
Po
=
84
,
//< Polonium
At
=
85
,
//< Astatine
Rn
=
86
,
//< Radon
Fr
=
87
,
//< Francium
Ra
=
88
,
//< Radium
Ac
=
89
,
//< Actinium
Rf
=
104
,
//< Rutherfordium
Db
=
105
,
//< Dubnium
Sg
=
106
,
//< Seaborgium
Bh
=
107
,
//< Bohrium
Hs
=
108
,
//< Hassium
Mt
=
109
,
//< Meitnerium
Ds
=
110
,
//< Darmstadtium
Rg
=
111
,
//< Roentgenium
Cn
=
112
,
//< Copernicium
Nh
=
113
,
//< Nihonium
Fl
=
114
,
//< Flerovium
Mc
=
115
,
//< Moscovium
Lv
=
116
,
//< Livermorium
Ts
=
117
,
//< Tennessine
Og
=
118
,
//< Oganesson
Ce
=
58
,
//< Cerium
Pr
=
59
,
//< Praseodymium
Nd
=
60
,
//< Neodymium
Pm
=
61
,
//< Promethium
Sm
=
62
,
//< Samarium
Eu
=
63
,
//< Europium
Gd
=
64
,
//< Gadolinium
Tb
=
65
,
//< Terbium
Dy
=
66
,
//< Dysprosium
Ho
=
67
,
//< Holmium
Er
=
68
,
//< Erbium
Tm
=
69
,
//< Thulium
Yb
=
70
,
//< Ytterbium
Lu
=
71
,
//< Lutetium
Th
=
90
,
//< Thorium
Pa
=
91
,
//< Protactinium
U
=
92
,
//< Uranium
Np
=
93
,
//< Neptunium
Pu
=
94
,
//< Plutonium
Am
=
95
,
//< Americium
Cm
=
96
,
//< Curium
Bk
=
97
,
//< Berkelium
Cf
=
98
,
//< Californium
Es
=
99
,
//< Einsteinium
Fm
=
100
,
//< Fermium
Md
=
101
,
//< Mendelevium
No
=
102
,
//< Nobelium
Lr
=
103
,
//< Lawrencium
D
=
119
,
//< Deuterium
};
/// @endcond
// --------------------------------------------------------------------
/// An enum used to select the desired radius for an atom
...
...
include/cif++/compound.hpp
View file @
c99de817
...
...
@@ -26,10 +26,12 @@
#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.
#include "cif++/atom_type.hpp"
#include "cif++/exports.hpp"
#include "cif++/point.hpp"
#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