46 bool open_read(
const Filename &bam_filename,
bool report_errors =
true);
47 bool open_read(std::istream &in,
const std::string &bam_filename =
"stream",
48 bool report_errors =
true);
55 PT(
PandaNode) read_node(
bool report_errors =
true);
57 bool open_write(
const Filename &bam_filename,
bool report_errors =
true);
58 bool open_write(std::ostream &out,
const std::string &bam_filename =
"stream",
59 bool report_errors =
true);
63 INLINE
bool is_valid_read()
const;
64 INLINE
bool is_valid_write()
const;
66 int get_file_major_ver();
67 int get_file_minor_ver();
69 bool get_file_stdfloat_double()
const;
71 int get_current_major_ver();
72 int get_current_minor_ver();
78 EXTENSION(PyObject *get_file_version()
const);
81 MAKE_PROPERTY(file_version, get_file_version);
82 MAKE_PROPERTY(file_endian, get_file_endian);
83 MAKE_PROPERTY(file_stdfloat_double, get_file_stdfloat_double);
85 MAKE_PROPERTY(reader, get_reader);
86 MAKE_PROPERTY(writer, get_writer);
89 bool continue_open_read(
const std::string &bam_filename,
bool report_errors);
90 bool continue_open_write(
const std::string &bam_filename,
bool report_errors);
92 std::string _bam_filename;