void CAlnMrgApp::LoadSeqEntry(CNcbiIstream& is) { string se_asn_type; {{ auto_ptr<CObjectIStream> obj_is (CObjectIStream::Open(eSerial_AsnText, is)); se_asn_type = obj_is->ReadFileHeader(); obj_is->Close(); is.seekg(0); }} auto_ptr<CObjectIStream> obj_is (CObjectIStream::Open(eSerial_AsnText, is)); if (se_asn_type == "Seq-entry") { CRef<CSeq_entry> se (new CSeq_entry); *obj_is >> *se; GetScope().AddTopLevelSeqEntry(*se); } else {
WRegion *xwindow_region_of_t(Window win, const ClassDescr *descr) { WRegion *reg=xwindow_region_of(win); if(reg==NULL) return NULL; if(!obj_is((Obj*)reg, descr)) return NULL; return reg; }