Gemmi C++ API
Loading...
Searching...
No Matches
Namespaces | Functions
pdb_id.hpp File Reference

Handling PDB ID and $PDB_DIR: is_pdb_code(), expand_pdb_code_to_path(), . . . More...

#include <cctype>
#include <cstdlib>
#include <string>
#include "fail.hpp"
#include "util.hpp"

Go to the source code of this file.

Namespaces

namespace  gemmi
 

Functions

bool gemmi::all_alnums (const char *p)
 
bool gemmi::is_pdb_code (const std::string &str)
 
std::string gemmi::path_in_pdb_dir (const std::string &code, char type)
 
std::string gemmi::expand_pdb_code_to_path (const std::string &code, char type, bool throw_if_unset=false)
 Call it after checking the code with gemmi::is_pdb_code(code).
 
std::string gemmi::expand_if_pdb_code (const std::string &input, char type='M')
 

Detailed Description

Handling PDB ID and $PDB_DIR: is_pdb_code(), expand_pdb_code_to_path(), . . .

Definition in file pdb_id.hpp.