Gemmi C++ API
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
gemmi::cif::WriteOptions Struct Reference

#include <to_cif.hpp>

Public Member Functions

 WriteOptions ()
 
 WriteOptions (Style style)
 
std::string str () const
 

Public Attributes

bool prefer_pairs = false
 write single-row loops as pairs
 
bool compact = false
 no blank lines between categories, only between blocks
 
bool misuse_hash = false
 put '#' (empty comments) before/after categories
 
std::uint16_t align_pairs = 0
 width reserved for tags in pairs (e.g. 34 = value starts at 35th column)
 
std::uint16_t align_loops = 0
 if non-zero, determines max width of each column in a loop and aligns all values to this width; the width is capped with the given value
 

Detailed Description

Definition at line 24 of file to_cif.hpp.

Constructor & Destructor Documentation

◆ WriteOptions() [1/2]

gemmi::cif::WriteOptions::WriteOptions ( )
inline

Definition at line 37 of file to_cif.hpp.

◆ WriteOptions() [2/2]

gemmi::cif::WriteOptions::WriteOptions ( Style  style)
inline

Definition at line 39 of file to_cif.hpp.

Member Function Documentation

◆ str()

std::string gemmi::cif::WriteOptions::str ( ) const
inline

Definition at line 62 of file to_cif.hpp.

Member Data Documentation

◆ prefer_pairs

bool gemmi::cif::WriteOptions::prefer_pairs = false

write single-row loops as pairs

Definition at line 26 of file to_cif.hpp.

◆ compact

bool gemmi::cif::WriteOptions::compact = false

no blank lines between categories, only between blocks

Definition at line 28 of file to_cif.hpp.

◆ misuse_hash

bool gemmi::cif::WriteOptions::misuse_hash = false

put '#' (empty comments) before/after categories

Definition at line 30 of file to_cif.hpp.

◆ align_pairs

std::uint16_t gemmi::cif::WriteOptions::align_pairs = 0

width reserved for tags in pairs (e.g. 34 = value starts at 35th column)

Definition at line 32 of file to_cif.hpp.

◆ align_loops

std::uint16_t gemmi::cif::WriteOptions::align_loops = 0

if non-zero, determines max width of each column in a loop and aligns all values to this width; the width is capped with the given value

Definition at line 35 of file to_cif.hpp.


The documentation for this struct was generated from the following file: