vector<string> vals = GetVals(
object);
47 if(vals.size() > 0) {
133 stringcurr_val = *it;
158 stringcurr_val = *it;
183 if(field_type ==
m_FieldType&& string_constraint) {
223 switch(field_type) {
228rval =
"Extra Accession";
User-defined methods of the data storage class.
void ClearVal(CObject &object) override
static EGBBlockFieldType GetTypeForLabel(string label)
bool SetVal(CObject &object, const string &val, EExistingText existing_text) override
vector< string > GetVals(const CObject &object) override
CRef< CStringConstraint > m_StringConstraint
@ eGBBlockFieldType_Unknown
@ eGBBlockFieldType_Keyword
@ eGBBlockFieldType_ExtraAccession
EGBBlockFieldType m_FieldType
static string GetLabelForType(EGBBlockFieldType field_type)
bool IsEmpty(const CObject &object) const override
bool AllowMultipleValues() override
void SetConstraint(const string &field, CConstRef< CStringConstraint > string_constraint) override
bool DoesTextMatch(const string &text)
void Assign(const CStringConstraint &other)
Include a standard set of the NCBI C++ Toolkit most basic headers.
const char * kGenbankBlockKeyword
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
void Reset(void)
Reset reference object.
#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 IsBlank(const CTempString str, SIZE_TYPE pos=0)
Check if a string is blank (has no text).
static bool EqualNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-insensitive equality of a substring with another string.
static const char label[]
TKeywords & SetKeywords(void)
Assign a value to Keywords data member.
bool IsSetExtra_accessions(void) const
Check if a value has been assigned to Extra_accessions data member.
void ResetKeywords(void)
Reset Keywords data member.
TExtra_accessions & SetExtra_accessions(void)
Assign a value to Extra_accessions data member.
const TExtra_accessions & GetExtra_accessions(void) const
Get the Extra_accessions member data.
const TKeywords & GetKeywords(void) const
Get the Keywords member data.
bool IsSetKeywords(void) const
Check if a value has been assigned to Keywords data member.
void ResetExtra_accessions(void)
Reset Extra_accessions data member.
bool IsGenbank(void) const
Check if variant Genbank is selected.
TGenbank & SetGenbank(void)
Select the variant.
const TGenbank & GetGenbank(void) const
Get the variant data.
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
static int match(PCRE2_SPTR start_eptr, PCRE2_SPTR start_ecode, uint16_t top_bracket, PCRE2_SIZE frame_size, pcre2_match_data *match_data, match_block *mb)
bool AddValueToString(string &str, const string &value, EExistingText existing_text)
Add text to an existing string, using the "existing_text" directive to combine new text with existing...
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4