6#ifndef GEMMI_MMCIF_IMPL_HPP_
7#define GEMMI_MMCIF_IMPL_HPP_
16inline void set_cell_from_mmcif(cif::Block& block, UnitCell& cell,
18 cif::Table tab = block.find((mmcif ?
"_cell." :
"_cell_"),
19 {
"length_a",
"length_b",
"length_c",
20 "angle_alpha",
"angle_beta",
"angle_gamma"});
29inline const std::string* find_spacegroup_hm_value(
const cif::Block& block) {
30 const char* hm_tag =
"_symmetry.space_group_name_H-M";
31 return block.find_value(hm_tag);
struct Document that represents the CIF file (but can also be read from a different representation,...
double as_number(const std::string &s, double nan=NAN)
bool is_null(const std::string &value)
Utilities for parsing CIF numbers (the CIF spec calls them 'numb').