18 #include "pandatoolbase.h" 22 #include "typedObject.h" 23 #include "typedReferenceCount.h" 39 virtual bool read_iff(
IffInputFile *in,
size_t stop_at)=0;
41 virtual void output(ostream &out)
const;
42 virtual void write(ostream &out,
int indent_level = 0)
const;
51 return get_class_type();
53 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
57 static void init_type() {
58 TypedReferenceCount::init_type();
59 register_type(_type_handle,
"IffChunk",
60 TypedReferenceCount::get_class_type());
69 INLINE ostream &operator << (ostream &out,
const IffChunk &chunk) {
virtual IffChunk * make_new_chunk(IffInputFile *in, IffId id)
Allocates and returns a new chunk of the appropriate type based on the given ID, according to the con...
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
The basic kind of record in an EA "IFF" file, which the LightWave object file is based on...
void set_id(IffId id)
Changes the ID associated with this chunk.
TypeHandle is the identifier used to differentiate C++ class types.
A four-byte chunk ID appearing in an "IFF" file.
IffId get_id() const
Returns the ID associated with this chunk.