41 #ifndef OBJECTS_MACRO_FIELD_PAIR_TYPE_BASE_HPP
42 #define OBJECTS_MACRO_FIELD_PAIR_TYPE_BASE_HPP
48 #ifndef BEGIN_objects_SCOPE
49 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
50 # define END_objects_SCOPE END_SCOPE(objects)
108 virtual void Reset(
void);
CCDSGeneProt_field_pair –.
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
CDBLink_field_pair TDblink
bool IsSource_qual(void) const
Check if variant Source_qual is selected.
CMolinfo_field_pair TMolinfo_field
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
TMolinfo_field & SetMolinfo_field(void)
Select the variant.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
CFeature_field_pair TFeature_field
bool IsDblink(void) const
Check if variant Dblink is selected.
E_Choice Which(void) const
Which variant is currently selected.
bool IsFeature_field(void) const
Check if variant Feature_field is selected.
TStruc_comment_field & SetStruc_comment_field(void)
Select the variant.
CCDSGeneProt_field_pair TCds_gene_prot
static const char *const sm_SelectionNames[]
const TFeature_field & GetFeature_field(void) const
Get the variant data.
CRna_qual_pair TRna_field
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
const TStruc_comment_field & GetStruc_comment_field(void) const
Get the variant data.
virtual void Reset(void)
Reset the whole object.
NCBI_NS_NCBI::CSerialObject * m_object
CField_pair_type_Base(void)
bool IsMolinfo_field(void) const
Check if variant Molinfo_field is selected.
CField_pair_type_Base & operator=(const CField_pair_type_Base &)
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
const TDblink & GetDblink(void) const
Get the variant data.
bool IsRna_field(void) const
Check if variant Rna_field is selected.
DECLARE_INTERNAL_TYPE_INFO()
virtual ~CField_pair_type_Base(void)
const TMolinfo_field & GetMolinfo_field(void) const
Get the variant data.
const TSource_qual & GetSource_qual(void) const
Get the variant data.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
CSource_qual_pair TSource_qual
TDblink & SetDblink(void)
Select the variant.
bool IsStruc_comment_field(void) const
Check if variant Struc_comment_field is selected.
TSource_qual & SetSource_qual(void)
Select the variant.
TRna_field & SetRna_field(void)
Select the variant.
bool IsCds_gene_prot(void) const
Check if variant Cds_gene_prot is selected.
const TRna_field & GetRna_field(void) const
Get the variant data.
TFeature_field & SetFeature_field(void)
Select the variant.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
const TCds_gene_prot & GetCds_gene_prot(void) const
Get the variant data.
TCds_gene_prot & SetCds_gene_prot(void)
Select the variant.
CStructured_comment_field_pair TStruc_comment_field
CField_pair_type_Base(const CField_pair_type_Base &)
@ e_MaxChoice
== e_Dblink+1
@ e_not_set
No variant selected.
const GenericPointer< typename T::ValueType > T2 value