Example #1
0
    escape_catalogue::escape_catalogue(user_interaction & dialog,
				       const pile_descriptor & x_pdesc,
				       const datetime & root_last_modif,
				       const label & data_name) : catalogue(dialog, root_last_modif, data_name)
    {
	set_esc_and_stack(x_pdesc);
	x_reading_ver = macro_tools_supported_version;
	x_default_algo = none;
	x_lax = false;
	corres.clear();
	status = ec_completed; // yes, with that constructor, the catalogue contains all known object and entree do not miss any field
	cat_det = NULL;
	min_read_offset = 0;
	depth = 0; // we start at the root... of course
	wait_parent_depth = 0; // to disable this feature

	    // dropping the data_name in the archive
	pdesc.stack->sync_write_above(pdesc.esc); // esc is now up to date
	pdesc.esc->add_mark_at_current_position(escape::seqt_data_name);
	data_name.dump(*pdesc.esc);
    }