16 #ifndef WRITABLECONFIGURABLE_H
17 #define WRITABLECONFIGURABLE_H
23 #include "pandabase.h"
25 #include "typedWritable.h"
47 virtual void config(
void ) { _dirty =
false; }
48 INLINE
void check_config()
const {
60 INLINE
bool is_dirty()
const {
return _dirty; }
61 INLINE
void make_dirty() { _dirty =
true; }
75 static void init_type() {
76 TypedWritable::init_type();
77 register_type(_type_handle,
"WritableConfigurable",
78 TypedWritable::get_class_type());
80 "WriteableConfigurable");
83 return get_class_type();
85 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
Base class for objects that can be written to and read from Bam files.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
Defined as a fix to allow creating Configurable and Writable objects.
void record_alternate_name(TypeHandle type, const string &name)
Indicates an alternate name for the same type.
static TypeRegistry * ptr()
Returns the pointer to the global TypeRegistry object.
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...