NCBI C++ ToolKit
|
Search Toolkit Book for CSubSrcQual
#include <gui/packages/pkg_sequence_edit/srcedit_util.hpp>
Public Member Functions | |
CSubSrcQual () | |
Constructors. More... | |
CSubSrcQual (string name, bool required, bool report_missing=false, string example="") | |
virtual string | GetValue (const objects::CBioSource &src) |
virtual string | GetFormatErrors (string value) |
virtual | ~CSubSrcQual () |
Destructor. More... | |
Public Member Functions inherited from CSrcQual | |
CSrcQual () | |
Constructors. More... | |
CSrcQual (string name, bool required, bool report_missing, string example="") | |
virtual string | GetExample () |
void | SetExample (string example) |
string | GetName (void) |
bool | IsRequired (void) |
bool | ReportMissing (void) |
void | SetRequired (bool required) |
void | SetReportMissing (bool report_missing) |
virtual | ~CSrcQual () |
Destructor. More... | |
Private Attributes | |
objects::CSubSource::TSubtype | m_Subtype |
vector< string > | m_BadIsolationSourceValues |
Additional Inherited Members | |
Protected Attributes inherited from CSrcQual | |
string | m_Name |
string | m_Example |
bool | m_Required |
bool | m_ReportMissing |
Definition at line 146 of file srcedit_util.hpp.
|
inline |
Constructors.
Definition at line 150 of file srcedit_util.hpp.
CSubSrcQual::CSubSrcQual | ( | string | name, |
bool | required, | ||
bool | report_missing = false , |
||
string | example = "" |
||
) |
Definition at line 206 of file srcedit_util.cpp.
References CSubSource::eVocabulary_insdc, CSubSource::GetSubtypeValue(), m_BadIsolationSourceValues, and m_Subtype.
|
inlinevirtual |
Destructor.
Definition at line 156 of file srcedit_util.hpp.
Reimplemented from CSrcQual.
Definition at line 237 of file srcedit_util.cpp.
References NStr::EqualNocase(), CSubSource_Base::eSubtype_country, CSubSource_Base::eSubtype_isolation_source, ITERATE, m_BadIsolationSourceValues, m_Subtype, s_IsAllNumbers(), and rapidjson::value.
Reimplemented from CSrcQual.
Definition at line 224 of file srcedit_util.cpp.
References CBioSource_Base::GetSubtype(), CBioSource_Base::IsSetSubtype(), ITERATE, and m_Subtype.
|
private |
Definition at line 159 of file srcedit_util.hpp.
Referenced by CSubSrcQual(), and GetFormatErrors().
|
private |
Definition at line 158 of file srcedit_util.hpp.
Referenced by CSubSrcQual(), GetFormatErrors(), and GetValue().