35 const std::string& source,
40 FileStream stream(path.c_str(),
"rb");
45 const std::string& name,
47 MemoryStream stream{data, size};
52 const std::string& name,
Data structures to store macromolecular structure models.
GEMMI_DLL Structure read_pdb_from_stream(AnyStream &line_reader, const std::string &source, PdbReadOptions options)
Structure read_pdb(T &&input, PdbReadOptions options={})
GEMMI_DLL std::vector< Op > read_remark_290(const std::vector< std::string > &raw_remarks)
Returns operations corresponding to 1555, 2555, ... N555.
Structure read_pdb_string(const std::string &str, const std::string &name, PdbReadOptions options={})
Structure read_pdb_from_memory(const char *data, size_t size, const std::string &name, PdbReadOptions options={})
bool is_record_type3(const char *s, const char *record)
for record "TER": "TER ", TER , TER\r, TER\t match, TERE, TER1 don't
Structure read_pdb_file(const std::string &path, PdbReadOptions options={})
bool is_record_type4(const char *s, const char *record)
Compare the first 4 letters of s, ignoring case, with uppercase record.
constexpr int ialpha4_id(const char *s)
options affecting how pdb file is read