44 bool modified =
false;
45 for (
CFeat_CI feat_ci(seh); feat_ci; ++feat_ci)
53 CSeq_feat::TQual::iterator qual_it = new_feat->
SetQual().begin();
54 while (qual_it != new_feat->
SetQual().end())
56 bool to_delete =
false;
57 if ((*qual_it)->IsSetQual())
62 if ((*qual_it)->IsSetVal())
64 string content =
"["+(*qual_it)->GetQual()+
"="+(*qual_it)->GetVal()+
"]";
70 if (!prev_value.empty())
79 qual_it = new_feat->
SetQual().erase(qual_it);
83 if (new_feat->
SetQual().empty())
134 bool modified =
false;
135 for (
CFeat_CI feat_ci(seh); feat_ci; ++feat_ci)
140 bool changed =
false;
143 CSeq_feat::TQual::iterator qual_it = new_feat->
SetQual().begin();
144 while (qual_it != new_feat->
SetQual().end())
146 bool to_delete =
false;
148 if ((*qual_it)->IsSetVal())
149 value = (*qual_it)->GetVal();
151 if ((*qual_it)->IsSetQual())
163 qual_it = new_feat->
SetQual().erase(qual_it);
167 if (new_feat->
SetQual().empty())
187 bool modified =
false;
188 for (
CFeat_CI feat_ci(seh); feat_ci; ++feat_ci)
193 bool changed =
false;
196 CSeq_feat::TQual::iterator qual_it = new_feat->
SetQual().begin();
197 while (qual_it != new_feat->
SetQual().end())
199 bool to_delete =
false;
200 if ((*qual_it)->IsSetQual())
205 if ((*qual_it)->IsSetVal())
207 string content =
"["+(*qual_it)->GetQual()+
"="+(*qual_it)->GetVal()+
"]";
213 if (!prev_value.empty())
222 qual_it = new_feat->
SetQual().erase(qual_it);
226 if (new_feat->
SetQual().empty())
246 bool modified =
false;
247 for (
CFeat_CI feat_ci(seh); feat_ci; ++feat_ci)
252 bool changed =
false;
255 CSeq_feat::TQual::iterator qual_it = new_feat->
SetQual().begin();
256 while (qual_it != new_feat->
SetQual().end())
258 bool to_delete =
false;
259 if ((*qual_it)->IsSetQual())
269 qual_it = new_feat->
SetQual().erase(qual_it);
273 if (new_feat->
SetQual().empty())
294 bool modified =
false;
295 for (
CFeat_CI feat_ci(seh); feat_ci; ++feat_ci)
300 bool changed =
false;
303 CSeq_feat::TQual::iterator qual_it = new_feat->
SetQual().begin();
304 while (qual_it != new_feat->
SetQual().end())
306 bool to_delete =
false;
307 if ((*qual_it)->IsSetQual())
318 qual_it = new_feat->
SetQual().erase(qual_it);
322 if (new_feat->
SetQual().empty())
bool IsLegalQualifier(EQualifier qual) const
Test wheather a certain qualifier is legal for the feature.
EQualifier
List of available qualifiers for feature keys.
ESubtype GetSubtype(void) const
static EQualifier GetQualifierType(CTempString qual)
convert qual string to enumerated value
namespace ncbi::objects::
static void RmWrongQuals(CSeq_entry_Handle seh, ICommandProccessor *cmd_processor)
static void RmWrongOrIllegalQuals(CSeq_entry_Handle seh, ICommandProccessor *cmd_processor)
static void IllegalQualsToNote(CSeq_entry_Handle seh, ICommandProccessor *cmd_processor)
static void WrongQualsToNote(CSeq_entry_Handle seh, ICommandProccessor *cmd_processor)
static void RmIllegalQuals(CSeq_entry_Handle seh, ICommandProccessor *cmd_processor)
Undo/Redo interface for editing operations.
virtual void Execute(IEditCommand *command, wxWindow *window=0)=0
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static bool EqualNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-insensitive equality of a substring with another string.
bool IsSetComment(void) const
Check if a value has been assigned to Comment data member.
bool IsSetQual(void) const
qualifiers Check if a value has been assigned to Qual data member.
void SetComment(const TComment &value)
Assign a value to Comment data member.
const TData & GetData(void) const
Get the Data member data.
const TComment & GetComment(void) const
Get the Comment member data.
TQual & SetQual(void)
Assign a value to Qual data member.
void ResetQual(void)
Reset Qual data member.
where boath are integers</td > n< td ></td > n</tr > n< tr > n< td > tse</td > n< td > optional</td > n< td > String</td > n< td class=\"description\"> TSE option controls what blob is orig
USING_SCOPE(ncbi::objects)
bool s_SpecialRemove(CSeqFeatData::ESubtype subtype, CSeqFeatData::EQualifier qual, const string &value)