// SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute // SPDX-License-Identifier: GPL-3.0-only #pragma once #include #include #include "gemmi/monlib.hpp" // The restraint dictionary refinement uses: the subset of the CCP4 Monomer Library (Vagin et al. 2004, // LGPL-3.0) carried in the binary - the standard amino acids and nucleotides, their links and // modifications, a few common ligands and additives, water and ions; monomers/update_monomers.py holds // the list. Parsed from memory once per process; no file is read. const gemmi::MonLib &EmbeddedMonomerLibrary(); // Whether `code` (a residue name) has a description in it. bool InEmbeddedMonomerLibrary(const std::string &code); // One .cif of monomers/, as CMakeLists.txt embeds it: its name and its text in pieces. struct EmbeddedMonomerFile { const char *name; const char *const *pieces; size_t n_pieces; };