NCBI C++ ToolKit
|
Search Toolkit Book for CAppendModToOrg
#include <gui/packages/pkg_sequence_edit/append_mod_to_org.hpp>
Public Member Functions | |
CAppendModToOrg (bool isOrgMod, int subtype, string abbr, bool use_abbr, bool only_sp, bool only_cf, bool only_aff, bool only_nr, bool no_taxid, bool EndsWith=false, CRef< CEditingActionConstraint > constraint=CRef< CEditingActionConstraint >(NULL)) | |
CRef< CCmdComposite > | GetCommand (objects::CSeq_entry_Handle tse) |
Private Member Functions | |
void | apply_to_seq_and_feat (objects::CSeq_entry_Handle tse, CCmdComposite *composite) |
void | x_ApplyToDescriptors (const objects::CSeq_entry &se, CCmdComposite *composite) |
bool | x_ApplyToBioSource (objects::CBioSource &biosource) |
Private Attributes | |
bool | m_IsOrgMod |
int | m_Subtype |
string | m_Abbreviation |
bool | m_Use_Abbreviation |
bool | m_Only_sp |
bool | m_Only_cf |
bool | m_Only_aff |
bool | m_Only_nr |
bool | m_No_taxid |
bool | m_EndsWith |
CRef< CEditingActionConstraint > | m_constraint |
CRef< objects::CScope > | m_Scope |
Definition at line 40 of file append_mod_to_org.hpp.
|
inline |
Definition at line 43 of file append_mod_to_org.hpp.
|
private |
Definition at line 52 of file append_mod_to_org.cpp.
References CCmdComposite::AddCommand(), CSerialObject::Assign(), cmd, CSeqFeatData_Base::e_Biosrc, CSeq_entry_Handle::GetCompleteSeq_entry(), m_constraint, CEditingActionConstraint::Match(), CSeq_feat_Base::SetData(), x_ApplyToBioSource(), and x_ApplyToDescriptors().
Referenced by GetCommand().
CRef< CCmdComposite > CAppendModToOrg::GetCommand | ( | objects::CSeq_entry_Handle | tse | ) |
Definition at line 41 of file append_mod_to_org.cpp.
References apply_to_seq_and_feat(), CSeq_entry_Handle::GetScope(), m_Scope, and CRef< C, Locker >::Reset().
Referenced by CAppendModToOrgDlg::GetCommand(), and CEditingBtnsPanel::StrainToSp().
|
private |
Definition at line 91 of file append_mod_to_org.cpp.
References NMacroUtil::CleanupForTaxnameChange(), NStr::EndsWith(), NStr::eNocase, NStr::Equal(), COrgMod_Base::eSubtype_bio_material, COrgMod_Base::eSubtype_culture_collection, COrgMod_Base::eSubtype_specimen_voucher, FOR_EACH_DBXREF_ON_ORGREF, FOR_EACH_ORGMOD_ON_BIOSOURCE, FOR_EACH_SUBSOURCE_ON_BIOSOURCE, CBioSource_Base::GetOrg(), COrg_ref_Base::GetOrgname(), CBioSource::GetTaxname(), COrg_ref_Base::GetTaxname(), COrg_ref_Base::IsSetDb(), COrgName_Base::IsSetMod(), CBioSource_Base::IsSetOrg(), COrg_ref_Base::IsSetOrgname(), CBioSource_Base::IsSetSubtype(), CBioSource::IsSetTaxname(), COrg_ref_Base::IsSetTaxname(), m_Abbreviation, m_EndsWith, m_IsOrgMod, m_No_taxid, m_Only_aff, m_Only_cf, m_Only_nr, m_Only_sp, m_Subtype, m_Use_Abbreviation, NStr::ReplaceInPlace(), CBioSource_Base::SetOrg(), NStr::StartsWith(), str(), and NStr::TruncateSpacesInPlace().
Referenced by apply_to_seq_and_feat(), and x_ApplyToDescriptors().
|
private |
Definition at line 68 of file append_mod_to_org.cpp.
References CCmdComposite::AddCommand(), CSerialObject::Assign(), cmd, FOR_EACH_SEQDESC_ON_SEQENTRY, FOR_EACH_SEQENTRY_ON_SEQSET, CSeq_entry_Base::GetSet(), CSeq_entry_Base::IsSet(), m_constraint, m_Scope, CEditingActionConstraint::Match(), CSeqdesc_Base::SetSource(), and x_ApplyToBioSource().
Referenced by apply_to_seq_and_feat().
|
private |
Definition at line 57 of file append_mod_to_org.hpp.
Referenced by x_ApplyToBioSource().
|
private |
Definition at line 61 of file append_mod_to_org.hpp.
Referenced by apply_to_seq_and_feat(), and x_ApplyToDescriptors().
|
private |
Definition at line 60 of file append_mod_to_org.hpp.
Referenced by x_ApplyToBioSource().
|
private |
Definition at line 55 of file append_mod_to_org.hpp.
Referenced by x_ApplyToBioSource().
|
private |
Definition at line 59 of file append_mod_to_org.hpp.
Referenced by x_ApplyToBioSource().
|
private |
Definition at line 59 of file append_mod_to_org.hpp.
Referenced by x_ApplyToBioSource().
|
private |
Definition at line 59 of file append_mod_to_org.hpp.
Referenced by x_ApplyToBioSource().
|
private |
Definition at line 59 of file append_mod_to_org.hpp.
Referenced by x_ApplyToBioSource().
|
private |
Definition at line 59 of file append_mod_to_org.hpp.
Referenced by x_ApplyToBioSource().
|
private |
Definition at line 62 of file append_mod_to_org.hpp.
Referenced by GetCommand(), and x_ApplyToDescriptors().
|
private |
Definition at line 56 of file append_mod_to_org.hpp.
Referenced by x_ApplyToBioSource().
|
private |
Definition at line 58 of file append_mod_to_org.hpp.
Referenced by x_ApplyToBioSource().