41 #ifndef OBJECTS_SEQALIGN_SPLICED_SEG_MODIFIER_BASE_HPP
42 #define OBJECTS_SEQALIGN_SPLICED_SEG_MODIFIER_BASE_HPP
48 #ifndef BEGIN_objects_SCOPE
49 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
50 # define END_objects_SCOPE END_SCOPE(objects)
93 virtual void Reset(
void);
96 virtual void ResetSelection(
void);
102 E_Choice Which(
void)
const;
108 void CheckSelected(E_Choice index)
const;
114 NCBI_NORETURN
void ThrowInvalidSelection(E_Choice index)
const;
122 static string SelectionName(E_Choice index);
153 bool IsStart_codon_found(
void)
const;
180 bool IsStop_codon_found(
void)
const;
210 static const char*
const sm_SelectionNames[];
Base class for all serializable objects.
CSpliced_seg_modifier_Base –.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_SEQALIGN_EXPORT
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
DECLARE_INTERNAL_TYPE_INFO()
E_Choice Which(void) const
Which variant is currently selected.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
TStart_codon_found & SetStart_codon_found(void)
Select the variant.
TStart_codon_found m_Start_codon_found
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
bool IsStop_codon_found(void) const
Check if variant Stop_codon_found is selected.
CSpliced_seg_modifier_Base & operator=(const CSpliced_seg_modifier_Base &)
TStart_codon_found m_Start_codon_found
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
TStart_codon_found GetStart_codon_found(void) const
Get the variant data.
TStop_codon_found GetStop_codon_found(void) const
Get the variant data.
CSpliced_seg_modifier_Base(const CSpliced_seg_modifier_Base &)
TStop_codon_found m_Stop_codon_found
TStop_codon_found & SetStop_codon_found(void)
Select the variant.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
TStop_codon_found m_Stop_codon_found
bool IsStart_codon_found(void) const
Check if variant Start_codon_found is selected.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
@ e_Start_codon_found
protein aligns from the start and the first codon on both product and genomic is start codon
@ e_Stop_codon_found
protein aligns to it's end and there is stop codon on the genomic right after the alignment
@ e_not_set
No variant selected.