Go to the documentation of this file.Go to the SVN repository for this file.
30 #ifndef _GB_BLOCK_FIELD_H_
31 #define _GB_BLOCK_FIELD_H_
54 eGBBlockFieldType_Keyword = 0,
56 eGBBlockFieldType_Unknown };
59 : m_FieldType(field_type),
61 string GetVal(
const CObject&
object)
override;
62 vector<string> GetVals(
const CObject&
object)
override;
63 bool IsEmpty(
const CObject&
object)
const override;
64 void ClearVal(
CObject&
object)
override;
67 vector<string>
IsValid(
const vector<string>& values)
override {
return vector<string>(); }
69 bool AllowMultipleValues()
override;
71 static EGBBlockFieldType GetTypeForLabel(
string label);
72 static string GetLabelForType(EGBBlockFieldType field_type);
CRef< CStringConstraint > m_StringConstraint
CGBBlockField(EGBBlockFieldType field_type=eGBBlockFieldType_Keyword)
@ eGBBlockFieldType_ExtraAccession
vector< string > IsValid(const vector< string > &values) override
string IsValid(const string &value) override
EGBBlockFieldType m_FieldType
Include a standard set of the NCBI C++ Toolkit most basic headers.
#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.
#define NCBI_XOBJEDIT_EXPORT
static const char label[]
@ e_Genbank
GenBank specific info.