59 return (field.IsSetLabel() &&
60 field.GetLabel().IsStr() &&
68 for (
auto pUserField : user.
SetData()) {
70 if (pUserField->IsSetData()) {
71 if (pUserField->GetData().IsInt()) {
72 const auto old_val = pUserField->GetData().GetInt();
73 if (old_val != error_code) {
74 pUserField->SetData().SetInts().push_back(old_val);
75 pUserField->SetData().SetInts().push_back(error_code);
78 }
else if (pUserField->GetData().IsInts()) {
79 const auto& ints = pUserField->GetData().GetInts();
80 if (find(ints.cbegin(), ints.cend(), error_code) == ints.cend()) {
81 pUserField->SetData().SetInts().push_back(error_code);
92 pField->
SetData().SetInts().push_back(error_code);
93 user.
SetData().push_back(pField);
104 for (
const auto& pUserField : user.
GetData()) {
106 if (pUserField->GetData().IsInt()) {
107 errCodes.
insert(pUserField->GetData().GetInt());
108 }
else if (pUserField->GetData().IsInts()) {
109 for (
const auto&
code : pUserField->GetData().GetInts()) {
112 }
else if (pUserField->GetData().IsStr()) {
117 }
else if (pUserField->GetData().IsStrs()) {
118 for (
const auto& errStr : pUserField->GetData().GetStrs()) {
134 }
else if (se.
IsSet()) {
136 if (
set.IsSetDescr()) {
137 for (
const auto& pDesc :
set.GetDescr().Get()) {
138 if (pDesc->IsUser() &&
144 if (
set.IsSetSeq_set()) {
145 for (
const auto& pEntry :
set.GetSeq_set()) {
173 if (pDesc->IsUser() &&
User-defined methods of the data storage class.
bool IsEntrys(void) const
@ eObjectType_ValidationSuppression
static unsigned int ConvertToErrCode(const string &str)
static void AddSuppression(CUser_object &user, TErrCode errCode)
CValidErrItem::TErrIndex TErrCode
static void SetSuppressedCodes(const CUser_object &user, TCodes &errCodes)
iterator_bool insert(const value_type &val)
Include a standard set of the NCBI C++ Toolkit most basic headers.
CConstRef< CSeq_entry > GetCompleteSeq_entry(void) const
Complete and get const reference to the seq-entry.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
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 IsSetData(void) const
the object itself Check if a value has been assigned to Data data member.
TData & SetData(void)
Assign a value to Data data member.
void SetLabel(TLabel &value)
Assign a value to Label data member.
const TData & GetData(void) const
Get the Data member data.
void SetData(TData &value)
Assign a value to Data data member.
const TSeq & GetSeq(void) const
Get the variant data.
const TSet & GetSet(void) const
Get the variant data.
bool IsSeq(void) const
Check if variant Seq is selected.
bool IsSet(void) const
Check if variant Set is selected.
const Tdata & Get(void) const
Get the member data.
bool IsSetDescr(void) const
descriptors Check if a value has been assigned to Descr data member.
const TDescr & GetDescr(void) const
Get the Descr member data.
const TEntrys & GetEntrys(void) const
Get the variant data.
const TData & GetData(void) const
Get the Data member data.
static const string kSuppressFieldLabel
static bool s_IsSuppressField(const CUser_field &field)