41 #ifndef OBJECTS_MACRO_FIELD_TYPE_BASE_HPP
42 #define OBJECTS_MACRO_FIELD_TYPE_BASE_HPP
55 #ifndef BEGIN_objects_SCOPE
56 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
57 # define END_objects_SCOPE END_SCOPE(objects)
115 virtual void Reset(
void);
313 bool IsPub(
void)
const;
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
TFeature_field & SetFeature_field(void)
Select the variant.
bool IsPub(void) const
Check if variant Pub is selected.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
bool IsCds_gene_prot(void) const
Check if variant Cds_gene_prot is selected.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
CFeature_field TFeature_field
bool IsStruc_comment_field(void) const
Check if variant Struc_comment_field is selected.
bool IsDblink(void) const
Check if variant Dblink is selected.
TCds_gene_prot GetCds_gene_prot(void) const
Get the variant data.
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
EDBLink_field_type TDblink
TRna_field & SetRna_field(void)
Select the variant.
bool IsMisc(void) const
Check if variant Misc is selected.
E_Choice Which(void) const
Which variant is currently selected.
CStructured_comment_field TStruc_comment_field
ECDSGeneProt_field TCds_gene_prot
CMolinfo_field TMolinfo_field
CSource_qual_choice TSource_qual
EPublication_field
publication fields
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
const TMolinfo_field & GetMolinfo_field(void) const
Get the variant data.
const TSource_qual & GetSource_qual(void) const
Get the variant data.
TPub & SetPub(void)
Select the variant.
const TStruc_comment_field & GetStruc_comment_field(void) const
Get the variant data.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
TStruc_comment_field & SetStruc_comment_field(void)
Select the variant.
const TFeature_field & GetFeature_field(void) const
Get the variant data.
bool IsFeature_field(void) const
Check if variant Feature_field is selected.
CField_type_Base & operator=(const CField_type_Base &)
bool IsSource_qual(void) const
Check if variant Source_qual is selected.
const TRna_field & GetRna_field(void) const
Get the variant data.
TDblink & SetDblink(void)
Select the variant.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
TCds_gene_prot & SetCds_gene_prot(void)
Select the variant.
TMolinfo_field & SetMolinfo_field(void)
Select the variant.
ECDSGeneProt_field
Access to ECDSGeneProt_field's attributes (values, names) as defined in spec.
DECLARE_INTERNAL_TYPE_INFO()
bool IsRna_field(void) const
Check if variant Rna_field is selected.
CField_type_Base(const CField_type_Base &)
TMisc & SetMisc(void)
Select the variant.
NCBI_NS_NCBI::CSerialObject * m_object
TCds_gene_prot m_Cds_gene_prot
virtual void Reset(void)
Reset the whole object.
bool IsMolinfo_field(void) const
Check if variant Molinfo_field is selected.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
TPub GetPub(void) const
Get the variant data.
static const char *const sm_SelectionNames[]
TSource_qual & SetSource_qual(void)
Select the variant.
TMisc GetMisc(void) const
Get the variant data.
TCds_gene_prot m_Cds_gene_prot
EMisc_field
misc fields these would not appear in pairs
virtual ~CField_type_Base(void)
EDBLink_field_type
dblink fields
TDblink GetDblink(void) const
Get the variant data.
@ e_MaxChoice
== e_Dblink+1
@ e_not_set
No variant selected.
const GenericPointer< typename T::ValueType > T2 value