Gemmi C++ API
Loading...
Searching...
No Matches
to_mmcif.hpp
Go to the documentation of this file.
1// Copyright 2017 Global Phasing Ltd.
2//
3// Create cif::Document (for PDBx/mmCIF file) from Structure.
4
5#ifndef GEMMI_TO_MMCIF_HPP_
6#define GEMMI_TO_MMCIF_HPP_
7
8#include "model.hpp"
9#include "cifdoc.hpp"
10
11namespace gemmi {
12
14 bool atoms:1;
15 bool block_name:1;
16 bool entry:1;
18 bool author:1;
19 bool cell:1;
20 bool symmetry:1;
21 bool entity:1;
23 bool struct_ref:1;
24 bool chem_comp:1;
25 bool exptl:1;
26 bool diffrn:1;
27 bool reflns:1;
28 bool refine:1;
30 bool ncs:1;
32 bool origx:1;
36 bool assembly:1;
37 bool conn:1;
38 bool cis:1;
39 bool modres:1;
40 bool scale:1;
41 bool atom_type:1;
43 bool tls:1;
44 bool software:1;
45 bool group_pdb:1; // include _atom_site.group_PDB
46 bool auth_all:1; // include _atom_site.auth_atom_id and auth_comp_id
47
48 explicit MmcifOutputGroups(bool all)
49 : atoms(all), block_name(all), entry(all), database_status(all),
50 author(all), cell(all), symmetry(all), entity(all), entity_poly(all),
51 struct_ref(all), chem_comp(all), exptl(all), diffrn(all),
52 reflns(all), refine(all), title_keywords(all), ncs(all),
53 struct_asym(all), origx(all), struct_conf(all), struct_sheet(all),
54 struct_biol(all), assembly(all), conn(all), cis(all), modres(all),
55 scale(all), atom_type(all), entity_poly_seq(all), tls(all),
56 software(all), group_pdb(all), auth_all(false) {}
57};
58
67
68// temporarily we use it in crd.cpp
71
72} // namespace gemmi
73
74#endif
#define GEMMI_DLL
Definition fail.hpp:53
GEMMI_DLL void write_struct_conn(const Structure &st, cif::Block &block)
GEMMI_DLL void write_cispeps(const Structure &st, cif::Block &block)
GEMMI_DLL void add_minimal_mmcif_data(const Structure &st, cif::Block &block)
GEMMI_DLL cif::Block make_mmcif_block(const Structure &st, MmcifOutputGroups groups=MmcifOutputGroups(true))
GEMMI_DLL void update_mmcif_block(const Structure &st, cif::Block &block, MmcifOutputGroups groups=MmcifOutputGroups(true))
GEMMI_DLL cif::Document make_mmcif_document(const Structure &st, MmcifOutputGroups groups=MmcifOutputGroups(true))
GEMMI_DLL cif::Block make_mmcif_headers(const Structure &st)