14 #ifndef TYPEDWRITABLE_H 15 #define TYPEDWRITABLE_H 46 virtual void update_bam_nested(
BamWriter *manager);
49 virtual bool require_fully_complete()
const;
55 virtual void finalize(
BamReader *manager);
60 INLINE
void mark_bam_modified();
61 INLINE
UpdateSeq get_bam_modified()
const;
63 EXTENSION(PyObject *__reduce__(PyObject *
self)
const);
64 EXTENSION(PyObject *__reduce_persist__(PyObject *
self, PyObject *pickler)
const);
66 INLINE vector_uchar encode_to_bam_stream()
const;
67 bool encode_to_bam_stream(vector_uchar &data,
BamWriter *writer =
nullptr)
const;
75 void remove_bam_writer(
BamWriter *writer);
80 struct BamWriterLink {
84 AtomicAdjust::Pointer _bam_writers;
95 TypedObject::get_class_type());
99 return get_class_type();
103 return get_class_type();
static void init_type()
This function is declared non-inline to work around a compiler bug in g++ 2.96.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
Base class for objects that can be written to and read from Bam files.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
void record_alternate_name(TypeHandle type, const std::string &name)
Indicates an alternate name for the same type.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is an abstract class that all classes which use TypeHandle, and also provide virtual functions t...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static TypeRegistry * ptr()
Returns the pointer to the global TypeRegistry object.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A base class for all things that want to be reference-counted.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A class to retrieve the individual data elements previously stored in a Datagram.
TypeHandle is the identifier used to differentiate C++ class types.
This is a sequence number that increments monotonically.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...