#include gemmi::Element el("Mg"); int its_number = el.atomic_number(); double its_weight = el.weight(); const char* its_name = el.name();