Example #1
0
//  --------------------------------------------------------------------------
CFeatListItem CGff3SofaTypes::MapSofaTermToFeatListItem(
    const string& strSofa )
//  --------------------------------------------------------------------------
{
    TLookupSofaToGenbankCit cit = m_Lookup.find( strSofa );
    if ( cit == m_Lookup.end() ) {
        return CFeatListItem(CSeqFeatData::e_Imp, 
            CSeqFeatData::eSubtype_misc_feature, "", "");
    }
    return cit->second;
}
Example #2
0
 string MappedName(
     CSeqFeatData::E_Choice type,
     CSeqFeatData::ESubtype subtype )
 {
     map< CFeatListItem, SofaType >::const_iterator cit = m_Map.find(
         CFeatListItem( type, subtype, "", "" ) );
     if ( cit != m_Map.end() ) {
         return cit->second.m_name;
     }
     return m_default.m_name;
 }