Skip to content

Commit

Permalink
add Structure::what() -> "Structure" (for use in templates)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojdyr committed Mar 19, 2024
1 parent e71b19c commit 31bd2de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/gemmi/model.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,7 @@ inline const Entity* find_entity_of_subchain(const std::string& subchain_id,
}

struct Structure {
static const char* what() { return "Structure"; }
std::string name;
UnitCell cell;
std::string spacegroup_hm; // usually pdb symbol, cf. SpaceGroup::pdb_name()
Expand Down

0 comments on commit 31bd2de

Please sign in to comment.