41class EXPCL_PANDA_PGRAPH BamFile :
public BamEnums {
47 bool open_read(std::istream &in,
const std::string &bam_filename =
"stream",
48 bool report_errors =
true);
58 bool open_write(std::ostream &out,
const std::string &bam_filename =
"stream",
59 bool report_errors =
true);
78 EXTENSION(PyObject *get_file_version()
const);
81 MAKE_PROPERTY(file_version, get_file_version);
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;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
get_file_stdfloat_double
Returns true if the file stores all "standard" floats as 64-bit doubles, or false if they are 32-bit ...
int get_current_major_ver()
Returns the system current major version number.
void close()
Closes the input or output stream.
int get_current_minor_ver()
Returns the system current minor version number.
int get_file_minor_ver()
Returns the minor version number of the file currently being read, or the system current minor versio...
PointerTo< PandaNode > read_node(bool report_errors=true)
Although the bam file format is general enough to store a list of objects of arbitrary type,...
bool open_write(const Filename &bam_filename, bool report_errors=true)
Attempts to open the indicated file for writing.
TypedWritable * read_object()
Reads and returns the next object from the Bam file, or NULL if the end of the file has been reached,...
int get_file_major_ver()
Returns the major version number of the file currently being read, or the system current major versio...
get_file_endian
Returns the endian preference indicated by the Bam file currently being read or written.
bool is_valid_write() const
Returns true if the Bam file is open and ready for writing with no errors so far detected,...
bool open_read(const Filename &bam_filename, bool report_errors=true)
Attempts to open the indicated filename for reading.
get_writer
Returns the BamWriter in charge of performing the write operations.
get_reader
Returns the BamReader in charge of performing the read operations.
bool is_valid_read() const
Returns true if the Bam file is open and ready for reading with no errors so far detected,...
bool resolve()
This must be called after one or more objects have been read via calls to read_object() in order to r...
bool is_eof() const
Returns true if the reader has reached end-of-file, false otherwise.
bool write_object(const TypedWritable *object)
Writes the indicated object to the Bam file.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This class can be used to write a binary file that consists of an arbitrary header followed by a numb...
The name of a file, such as a texture file or an Egg file.
A basic node of the scene graph or data graph.
Base class for objects that can be written to and read from Bam files.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.