void MapAgent::clear_map(UAS_Pointer<UAS_Common> &lib) { if(lib->lid() == f_doc_ptr->lid()) { clear_it(); f_doc_ptr = NULL; } }
UAS_BookcaseEntry::UAS_BookcaseEntry(UAS_Pointer<UAS_Common> &bookcase, int searchable) : f_searchable(searchable), f_name(0), f_base_num(-1) { const char *bc_path = bookcase->id(); if (! bc_path) { f_name = f_path = NULL; } else { const char *bc_name = UASbasename(bc_path); f_name = new char[strlen(bc_name)+1]; strcpy(f_name, bc_name); f_path = new char[strlen(bc_path)+1]; strcpy (f_path, bc_path); } f_infolib_id = bookcase->lid(); f_bookcase_id = bookcase->bid(); }