44 bool modified =
false;
76 if ((*orgmod)->IsSetSubtype() && (*orgmod)->IsSetSubname() &&
81 orgmods[(*orgmod)->GetSubtype()].push_back((*orgmod)->GetSubname());
88 if ((*subsource)->IsSetSubtype() && (*subsource)->IsSetName())
90 subsources[(*subsource)->GetSubtype()].push_back((*subsource)->GetName());
94 bool modified =
false;
97 if ((*orgmod)->IsSetSubtype() &&
98 (*orgmod)->IsSetSubname() &&
99 orgmods.
find((*orgmod)->GetSubtype()) != orgmods.
end() &&
100 orgmods[(*orgmod)->GetSubtype()].
size() > 1 )
102 if ((*orgmod)->GetSubname() == orgmods[(*orgmod)->GetSubtype()].front())
116 if ((*subsource)->IsSetSubtype() &&
117 (*subsource)->IsSetName() &&
118 subsources.
find((*subsource)->GetSubtype()) != subsources.
end() &&
119 subsources[(*subsource)->GetSubtype()].
size() > 1 )
121 if ((*subsource)->GetName() == subsources[(*subsource)->GetSubtype()].front())
virtual bool x_ApplyToBioSource(objects::CBioSource &biosource)
CRef< CCmdComposite > GetCommand(objects::CSeq_entry_Handle tse)
CRef< CCmdComposite > GetCommand(objects::CSeq_entry_Handle tse)
virtual bool x_ApplyToBioSource(objects::CBioSource &biosource)
CRef< CCmdComposite > x_GetCommand(objects::CSeq_entry_Handle tse, const string &title)
const_iterator end() const
const_iterator find(const key_type &key) const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string Join(const TContainer &arr, const CTempString &delim)
Join strings using the specified delimiter.
@ eSubtype_other
ASN5: old-name (254) will be added to next spec.
@ eSubtype_specimen_voucher
@ eSubtype_culture_collection
#define ERASE_ORGMOD_ON_BIOSOURCE(Itr, Var)
ERASE_ORGMOD_ON_BIOSOURCE.
#define EDIT_EACH_ORGMOD_ON_BIOSOURCE(Itr, Var)
#define ERASE_SUBSOURCE_ON_BIOSOURCE(Itr, Var)
ERASE_SUBSOURCE_ON_BIOSOURCE.
#define FOR_EACH_ORGMOD_ON_BIOSOURCE(Itr, Var)
FOR_EACH_ORGMOD_ON_BIOSOURCE EDIT_EACH_ORGMOD_ON_BIOSOURCE.
#define FOR_EACH_SUBSOURCE_ON_BIOSOURCE(Itr, Var)
FOR_EACH_SUBSOURCE_ON_BIOSOURCE EDIT_EACH_SUBSOURCE_ON_BIOSOURCE.
#define EDIT_EACH_SUBSOURCE_ON_BIOSOURCE(Itr, Var)