15 #ifndef BAMCACHEINDEX_H
16 #define BAMCACHEINDEX_H
18 #include "pandabase.h"
19 #include "bamCacheRecord.h"
20 #include "pointerTo.h"
22 #include "typedWritable.h"
23 #include "linkedListNode.h"
43 void write(ostream &out,
int indent_level = 0)
const;
46 void process_new_records();
47 void release_records();
51 bool remove_record(
const Filename &source_pathname);
57 streamsize _cache_size;
65 static void register_with_read_factory();
77 static void init_type() {
78 TypedWritable::init_type();
79 register_type(_type_handle,
"BamCacheIndex",
80 TypedWritable::get_class_type());
83 return get_class_type();
85 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
93 #include "bamCacheIndex.I"
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This class maintains a cache of Bam and/or Txo objects generated from model files and texture images ...
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 ...
This is our own Panda specialization on the default STL list.
virtual void fillin(DatagramIterator &scan, BamReader *manager)
This internal function is intended to be called by each class's make_from_bam() method to read in all...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
This just stores the pointers to implement a doubly-linked list of some kind of object.
This represents the in-memory index that records the list of files stored in the BamCache.
The name of a file, such as a texture file or an Egg file.
virtual int complete_pointers(TypedWritable **p_list, BamReader *manager)
Receives an array of pointers, one for each time manager->read_pointer() was called in fillin()...
An instance of this class is written to the front of a Bam or Txo file to make the file a cached inst...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
A class to retrieve the individual data elements previously stored in a Datagram. ...
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 ...