# File pdb.hpp

↰ Parent directory (`cif++`)

## Definition (`cif++/pdb.hpp`)

- Program Listing for File pdb.hpp

## Detailed Description

This file presents the API to read and write files in the legacy and ancient PDB format.

The code works on the basis of best effort since it is impossible to have correct round trip fidelity.

## Includes

- `cif++/file.hpp` (File file.hpp)

- `cif++/validate.hpp` (File validate.hpp)

- `system_error`

## Included By

- File cif++.hpp

## Namespaces

- Namespace cif

- Namespace cif::pdb

## Functions

- Function cif::pdb::fixup_pdbx(file&, const validator&)

- Function cif::pdb::fixup_pdbx(file&)

- Function cif::pdb::get_AUTHOR_line

- Function cif::pdb::get_COMPND_line

- Function cif::pdb::get_HEADER_line

- Function cif::pdb::get_SOURCE_line

- Function cif::pdb::is_valid_pdbx_file(const file&, std::error_code&)

- Function cif::pdb::is_valid_pdbx_file(const file&, const validator&, std::error_code&)

- Function cif::pdb::is_valid_pdbx_file(const file&, const validator&)

- Function cif::pdb::read(std::istream&)

- Function cif::pdb::read(const std::filesystem::path&)

- Function cif::pdb::read_pdb_file

- Function cif::pdb::reconstruct_pdbx(file&, const validator&)

- Function cif::pdb::reconstruct_pdbx(file&)

- Function cif::pdb::write(const std::filesystem::path&, const datablock&)

- Function cif::pdb::write(std::ostream&, const datablock&)

- Function cif::pdb::write(const std::filesystem::path&, const file&)

- Function cif::pdb::write(std::ostream&, const file&)