41 #ifndef OBJECTS_BLAST_BLAST4_CUTOFF_BASE_HPP
42 #define OBJECTS_BLAST_BLAST4_CUTOFF_BASE_HPP
48 #ifndef BEGIN_objects_SCOPE
49 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
50 # define END_objects_SCOPE END_SCOPE(objects)
132 virtual void Reset(
void);
135 virtual void ResetSelection(
void);
141 E_Choice Which(
void)
const;
147 void CheckSelected(E_Choice index)
const;
153 NCBI_NORETURN
void ThrowInvalidSelection(E_Choice index)
const;
161 static string SelectionName(E_Choice index);
192 bool IsE_value(
void)
const;
219 bool IsRaw_score(
void)
const;
249 static const char*
const sm_SelectionNames[];
Other types in alphabetical order.
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_BLAST_EXPORT
bool IsRaw_score(void) const
Check if variant Raw_score is selected.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
CBlast4_cutoff_Base(const CBlast4_cutoff_Base &)
TE_value & SetE_value(void)
Select the variant.
TRaw_score GetRaw_score(void) const
Get the variant data.
TRaw_score & SetRaw_score(void)
Select the variant.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
DECLARE_INTERNAL_TYPE_INFO()
E_Choice Which(void) const
Which variant is currently selected.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
bool IsE_value(void) const
Check if variant E_value is selected.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
TE_value GetE_value(void) const
Get the variant data.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
CBlast4_cutoff_Base & operator=(const CBlast4_cutoff_Base &)
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
@ e_not_set
No variant selected.