#include "obj_reader.h"

class xref_reader_t : public obj_reader_t {
	static xref_reader_t the_instance;

	xref_reader_t() { register_reader(); }

protected:
	void register_obj(obj_besch_t*&) OVERRIDE;

public:
	static xref_reader_t*instance() { return &the_instance; }

	obj_type get_type() const OVERRIDE { return obj_xref; }
	char const* get_type_name() const OVERRIDE { return "reference"; }

	obj_besch_t* read_node(FILE*, obj_node_info_t&) OVERRIDE;
};
