00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef IFFGENERICCHUNK_H
00016 #define IFFGENERICCHUNK_H
00017
00018 #include "pandatoolbase.h"
00019
00020 #include "iffChunk.h"
00021
00022 #include "datagram.h"
00023
00024
00025
00026
00027
00028
00029
00030
00031 class IffGenericChunk : public IffChunk {
00032 public:
00033 INLINE IffGenericChunk();
00034
00035 INLINE const Datagram &get_data() const;
00036 INLINE void set_data(const Datagram &data);
00037
00038 virtual bool read_iff(IffInputFile *in, size_t stop_at);
00039 virtual void write(ostream &out, int indent_level = 0) const;
00040
00041 private:
00042 Datagram _data;
00043
00044 public:
00045 virtual TypeHandle get_type() const {
00046 return get_class_type();
00047 }
00048 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00049 static TypeHandle get_class_type() {
00050 return _type_handle;
00051 }
00052 static void init_type() {
00053 IffChunk::init_type();
00054 register_type(_type_handle, "IffGenericChunk",
00055 IffChunk::get_class_type());
00056 }
00057
00058 private:
00059 static TypeHandle _type_handle;
00060 };
00061
00062 #include "iffGenericChunk.I"
00063
00064 #endif
00065
00066