+/******************************************************************************
+ *
+ * LDC2 source code
+ *
+ * $Date: 2007/03/26 01:00:40 $
+ * $Author: hachti $
+ *
+ * $Log: tape_block.hh,v $
+ * Revision 2.0 2007/03/26 01:00:40 hachti
+ * *** empty log message ***
+ *
+ *
+ ******************************************************************************/
+
#ifndef TAPE_BLOCK_HH
#define TAPE_BLOCK_HH
int get_raw_size();
int get_discarded_bytes();
unsigned char * get_raw_data();
-
+ virtual int dump_to_fd(int fd);
+ virtual bool is_endblock();
+ virtual vector<string> get_exported_symbols();
+ virtual vector<string> get_called_symbols();
+ virtual bool has_known_type();
+
static tape_block * gen_from_fd(int fd,
void(*input_start)(void *)=0,
void (*input_stop)(void *)=0,
protected: // members
int block_type; //!< Type of this block.
+ bool m_has_known_type; //!< Block is of a documented type.
int discarded_bytes; //!< Amount of bytes discarded before beginning.
unsigned char * raw_data; //!< Raw block data in bytes.
int raw_size; //!< Size of the raw data.