|
Rosetta
|
Utilities for working with Gemmi CIF file data. More...
#include <utility/gemmi_util.fwd.hh>#include <gemmi/cif.hpp>#include <string>#include <vector>#include <initializer_list>Namespaces | |
| utility | |
| unresizable vector whose size is known at compile time, which may be allocated on the stack, and which indexes from 0. | |
Functions | |
| char | utility::as_char (std::string const &value, char null) |
| As the default as_char() is not robust to empty strings. More... | |
| int | utility::find_gemmi_column (gemmi::cif::Table &table, std::string const &name) |
| find the index for the given column name in the table. If it can't be found, return a negative number More... | |
| gemmi::cif::Loop & | utility::gemmi_add_table (gemmi::cif::Block &block, std::string table_name, std::vector< std::string > const &columns) |
Adds a new table (actually a 'Loop' object) to the given block, with the given column names Returns a reference to the newly added loop object (which can be augmented with the gemmi_add_row() function) More... | |
| template<class Iterable > | |
| void | utility::gemmi_add_row (gemmi::cif::Loop &loop, Iterable const &value) |
| Adds a row to the table. Takes care of quoting the entries properly. More... | |
| void | utility::gemmi_add_row (gemmi::cif::Loop &loop, std::initializer_list< std::string > const &init_list) |
Utilities for working with Gemmi CIF file data.